problem lsa-lookupnames does not look at pdb-rid

Gerald Carter jerry at samba.org
Thu Jun 6 15:47:02 GMT 2002


On Thu, 6 Jun 2002, Gerald Carter wrote:

> Volker,
> 
> So the bottom line is that if you set the rid attribute to be something
> that does not match the algorithm, things break?  This little code resuse 
> would be one problem :-\  Should be a full search based on the rid value.
> I'll look into it.
> 
> and before bartlt says anything....i realize that things like 
> already work in HEAD :-)
> 
> 
> /*******************************************************************
>  run the search by rid.
> ******************************************************************/
> static int ldap_search_one_user_by_rid (LDAP * ldap_struct, uint32 rid,
>                             LDAPMessage ** result)
> {
>         pstring filter;
>         int rc;
> 
>         /* check if the user rid exsists, if not, try searching on the uid 
> */
> 
>         snprintf(filter, sizeof(filter) - 1, "rid=%i", rid);
>         rc = ldap_search_one_user(ldap_struct, filter, result);

Never mind.  I messed this above line.  I'll keep looking.....








cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba-technical mailing list