diff options
author | Gerald Carter <jerry@samba.org> | 2003-05-27 16:55:53 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-05-27 16:55:53 +0000 |
commit | 52f92cf577bcee96f8ff32c38b0b0ea0e655812a (patch) | |
tree | 1220cc66e5d52ff1f7c01090dfb1146cc18492b7 /source3 | |
parent | 3a6d0a23cd226214778959d021a4a6d3eabc0c4b (diff) | |
download | samba-52f92cf577bcee96f8ff32c38b0b0ea0e655812a.tar.gz samba-52f92cf577bcee96f8ff32c38b0b0ea0e655812a.tar.bz2 samba-52f92cf577bcee96f8ff32c38b0b0ea0e655812a.zip |
fix bug 118; replace hard coded 'next[User|Group]Rid' attribute names
(This used to be commit f7ebb3c9e5d38d86d48459b7962a3da6d4900285)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/passdb/pdb_ldap.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c index da3c8ab517..1c305a361c 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; |