diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-24 15:11:27 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-24 15:11:27 -0600 |
commit | 39dfffd280bb9df257a57c31ca185bc88dfc4bd5 (patch) | |
tree | dd478b743d80e1395639e0e371129fc099518583 /ipa_server | |
parent | f80beb948bb8914df922e85ef20d9152ca47b527 (diff) | |
parent | 8788afe18403e7585e4fc2b6a52a352a035fee0b (diff) | |
download | freeipa.git-39dfffd280bb9df257a57c31ca185bc88dfc4bd5.tar.gz freeipa.git-39dfffd280bb9df257a57c31ca185bc88dfc4bd5.tar.xz freeipa.git-39dfffd280bb9df257a57c31ca185bc88dfc4bd5.zip |
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
Diffstat (limited to 'ipa_server')
-rw-r--r-- | ipa_server/plugins/b_ldap.py | 2 | ||||
-rw-r--r-- | ipa_server/servercore.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ipa_server/plugins/b_ldap.py b/ipa_server/plugins/b_ldap.py index a7a3c8b3..2c65ba45 100644 --- a/ipa_server/plugins/b_ldap.py +++ b/ipa_server/plugins/b_ldap.py @@ -88,7 +88,7 @@ class ldap(CrudBackend): attribute = attribute.lower() object_type = None if attribute == "uid": # User - object_type = "person" + object_type = "posixAccount" elif attribute == "cn": # Group object_type = "posixGroup" elif attribute == "krbprincipalname": # Service diff --git a/ipa_server/servercore.py b/ipa_server/servercore.py index e69967a9..052c386b 100644 --- a/ipa_server/servercore.py +++ b/ipa_server/servercore.py @@ -168,7 +168,7 @@ def get_user_by_uid(uid, sattrs): """Get a specific user's entry.""" # FIXME: should accept a container to look in # uid = self.__safe_filter(uid) - searchfilter = "(&(uid=%s)(objectclass=person))" % uid + searchfilter = "(&(uid=%s)(objectclass=posixAccount))" % uid return get_sub_entry("cn=accounts," + api.env.basedn, searchfilter, sattrs) |