This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # License: AS-IS | |
| # UNMAINTAINED | |
| import ldap3 | |
| import ldap3.utils.dn | |
| from radicale.auth import BaseAuth | |
| class Auth(BaseAuth): | |
| """Authenticate user with LDAP server. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import urllib | |
| if len(sys.argv) > 1: | |
| for arg in sys.argv[1:]: print(urllib.unquote_plus(arg)) | |
| else: | |
| for line in sys.stdin.xreadlines(): | |
| sys.stdout.write(urllib.unquote_plus(line)) |