search for: pdb_getgrsid

Displaying 2 results from an estimated 2 matches for "pdb_getgrsid".

2005 Mar 17
0
usrmgr.exe and problems
...d ); @@ -4466,18 +4486,27 @@ pdb_init_sam(&sam_pass); - if ( pdb_getsampwsid(sam_pass, &delete_sid) ) { - is_user = True; + become_root(); + + ret = pdb_getsampwsid(sam_pass, &delete_sid); + + if ( ret ) { + is_user = True; } else { - /* maybe it is a group */ - if( !pdb_getgrsid(&map, delete_sid) ) { - DEBUG(3,("_samr_remove_sid_foreign_domain: %s is not a user or a group!\n", - sid_string_static(&delete_sid))); - result = NT_STATUS_INVALID_SID; - goto done; - } + /* maybe it is a group */ + ret = pdb_getgrsid(&map, delete_sid); + } + +...
2005 May 11
1
SV: Error with usrmgr and groups.
It's exactly the same. Except that I use tdbsam instead of ldap and the error message therefore also is different in the log file. But the example and result is the same. Do you have any idea of workaround or fix? Cheers, Joel -----Ursprungligt meddelande----- Fr?n: Doug Campbell [mailto:doug@bpta.net] Skickat: den 11 maj 2005 10:49 Till: Joel Larsson, PF, Posten; samba@lists.samba.org