summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-05-27 16:56:16 +0000
committerGerald Carter <jerry@samba.org>2003-05-27 16:56:16 +0000
commitd9e59358f73382fb1c53820c656d9bc86112ed1e (patch)
treead0d00f0a9a801c0ee3094c181a5ee6cd1ff1ede
parentd84a2ead1577ae5e659342e447d680d6485f8121 (diff)
downloadsamba-d9e59358f73382fb1c53820c656d9bc86112ed1e.tar.gz
samba-d9e59358f73382fb1c53820c656d9bc86112ed1e.tar.bz2
samba-d9e59358f73382fb1c53820c656d9bc86112ed1e.zip
fix bug 118; replace hard coded 'next[User|Group]Rid' attribute names
(This used to be commit dc18ffcc5a215975a90232374a84ffbe6b6903ea)
-rw-r--r--source3/passdb/pdb_ldap.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index ef88c09efa..5f5d75c6f5 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -1701,18 +1701,20 @@ static NTSTATUS ldapsam_next_rid(struct ldapsam_privates *ldap_state, uint32 *ri
switch (rid_type) {
case USER_RID_TYPE:
- if (!get_single_attribute(ldap_state->ldap_struct,
- entry, "nextUserRid",
- old_rid_string)) {
+ if (!get_single_attribute(ldap_state->ldap_struct, entry,
+ get_attr_key2string(dominfo_attr_list, LDAP_ATTR_NEXT_GROUPRID),
+ old_rid_string))
+ {
ldap_memfree(dn);
ldap_msgfree(result);
return ret;
}
break;
case GROUP_RID_TYPE:
- if (!get_single_attribute(ldap_state->ldap_struct,
- entry, "nextGroupRid",
- old_rid_string)) {
+ if (!get_single_attribute(ldap_state->ldap_struct, entry,
+ get_attr_key2string(dominfo_attr_list, LDAP_ATTR_NEXT_GROUPRID),
+ old_rid_string))
+ {
ldap_memfree(dn);
ldap_msgfree(result);
return ret;