Windows 2000 - Samaba-2.2.2 LDAP: Change of Relative ID.

Ignacio Coupeau icoupeau at unav.es
Mon Oct 29 10:29:03 GMT 2001


Joachim.Tork at gad.de wrote:
> 
> Hello everybody,
> 
> Thanks to Ignacio Coupeaus Patch I was able to join a Windows 2000 client
> to samba domain with ldap backend.
> 
> But I see the following problem:
> When I create the machine account a rid != 0 is created, in my case
> 3006.

test this (change the // lines) in
passdb/pdb_ldap.c|init_ldap_from_sam():
--
        if ( !sampass->user_rid) sampass->user_rid =
pdb_uid_to_user_rid(pdb_get_uid(sampass));
        //slprintf(temp, sizeof(temp) - 1, "%i", sampass->user_rid);
        slprintf(temp, sizeof(temp) - 1, "%x", sampass->user_rid);
        make_a_mod(mods, ldap_state, "rid", temp);
        
        if ( !sampass->group_rid) sampass->group_rid =
pdb_gid_to_group_rid(pdb_get_gid(sampass));
        //slprintf(temp, sizeof(temp) - 1, "%i", sampass->group_rid);
        slprintf(temp, sizeof(temp) - 1, "%x", sampass->group_ri
-- 


this works for me...
but some other parameters should be stored in hex (times and so),

Ignacio
____________________________________________________
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