Author: vlendec
Date: 2006-01-16 16:46:49 +0000 (Mon, 16 Jan 2006)
New Revision: 12962

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12962

Log:
Implement 'net sam', 'net lookup name' and 'net lookup sid'.

net sam is meant to replace net groupmap and pdbedit in the future as a
direct, local access to our passdb. If you extend this, please make sure that
the user interface is *usable*...

To support this better:

The alias member functions how return NTSTATUS instead of bool.

Get better error codes out of ldapsam. We can tell that if an alias member to
be added already existed etc.

Another thing: To speed things up, with ldapsam:trusted=yes feed the
sid2[ug]id caches. In sid2uid, fail if we find a gid and vice versa. This
avoids unnecessary round trips to the LDAP server.

Implement ldapsam_sid_to_id for ldapsam:trusted=yes. One round trip less.

Volker

Added:
   trunk/source/utils/net_sam.c
Modified:
   trunk/source/Makefile.in
   trunk/source/nsswitch/winbindd_passdb.c
   trunk/source/passdb/lookup_sid.c
   trunk/source/passdb/pdb_interface.c
   trunk/source/passdb/pdb_ldap.c
   trunk/source/rpc_server/srv_samr_nt.c
   trunk/source/utils/net.c
   trunk/source/utils/net_groupmap.c
   trunk/source/utils/net_help.c
   trunk/source/utils/net_lookup.c


Changeset:
Sorry, the patch is too large (1007 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12962

Reply via email to