diff options
author | Torsten Rehn <torsten@rehn.tel> | 2012-07-18 14:09:24 +0200 |
---|---|---|
committer | Torsten Rehn <torsten@rehn.tel> | 2012-07-18 14:09:24 +0200 |
commit | 4a9b9f9420ccdcbd5a0e79ca493ea85e4683f41e (patch) | |
tree | 3d4796286ee0d970cb7cfa79b2fb9bdc21c4bcef /src | |
parent | 843634dbfdd330a91daaefdecc9804c585be3dca (diff) | |
download | bcfg2-4a9b9f9420ccdcbd5a0e79ca493ea85e4683f41e.tar.gz bcfg2-4a9b9f9420ccdcbd5a0e79ca493ea85e4683f41e.tar.bz2 bcfg2-4a9b9f9420ccdcbd5a0e79ca493ea85e4683f41e.zip |
LDAP plugin: special characters in search filters need double escaping
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Ldap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Ldap.py b/src/lib/Bcfg2/Server/Plugins/Ldap.py index 29abf5b13..9883085db 100644 --- a/src/lib/Bcfg2/Server/Plugins/Ldap.py +++ b/src/lib/Bcfg2/Server/Plugins/Ldap.py @@ -139,7 +139,7 @@ class LdapConnection(object): result = self.conn.search_s( query.base, SCOPE_MAP[query.scope], - query.filter, + query.filter.replace("\\", "\\\\"), query.attrs, ) break |