HEAD --with-ldapsam integer problem (uidNumber and rid)

Ignacio Coupeau icoupeau at unav.es
Wed Dec 19 07:00:06 GMT 2001


In the latest CVS HEAD (with RH 7.1, Intel) i found thatr with the
smbpasswd -a -m <machine_account> 
perhaps in: 
passdb/pdb_ldap.c:
---
*********************************************************************/
static BOOL init_sam_from_ldap (SAM_ACCOUNT * sampass,
                   LDAP * ldap_struct, LDAPMessage * entry)
{
---

some uid conversion has been damaged recently, because the uidNumber (in
this example, 531) and the rid (about 1062) in the init_sam_from_ldap:

-----> init_ldap_from_sam 
Setting entry for user: grabador$
--> init_ldap_from_sam: uidNumber 135149184 135149184 135149184,
135149184 
--> init_ldap_from_sam: rid 270299368 270299368 270299368, 270299368 
-- 
and stored in the ldap as 135149184 , 270299368  and the ldap account is
broken.

If not passwd is replaced, the accounts runs well.

____________________________________________________
Ignacio Coupeau, Ph.D.     e-mail: icoupeau at unav.es
CTI, Director              fax:    948 425619
University of Navarra      voice:  948 425600
Pamplona, SPAIN            http://www.unav.es/cti/




More information about the samba-technical mailing list