summaryrefslogtreecommitdiffstats
path: root/ipa_server
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2008-10-24 11:40:47 -0400
committerRob Crittenden <rcritten@redhat.com>2008-10-24 11:41:39 -0400
commit8788afe18403e7585e4fc2b6a52a352a035fee0b (patch)
tree55fd07c27eff7c54f8e5faf5f9b002c5c4709a4a /ipa_server
parent6a8026f974c4ab65313729eb9e61303b5395a0c0 (diff)
downloadfreeipa-8788afe18403e7585e4fc2b6a52a352a035fee0b.tar.gz
freeipa-8788afe18403e7585e4fc2b6a52a352a035fee0b.tar.xz
freeipa-8788afe18403e7585e4fc2b6a52a352a035fee0b.zip
Use posixAccount instead of person to identify users
Add output_for_cli to service-find
Diffstat (limited to 'ipa_server')
-rw-r--r--ipa_server/plugins/b_ldap.py2
-rw-r--r--ipa_server/servercore.py2
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)