Now that Volker fixed the real issues with ldapsam and adding null attributes
authorAndrew Bartlett <abartlet@samba.org>
Wed, 23 Apr 2003 01:04:20 +0000 (01:04 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 23 Apr 2003 01:04:20 +0000 (01:04 +0000)
commit846a773bda69ecbf512f8e455e5695dbf868cda7
tree8d449d023229fe77d6f8938f04fb9d4071526bec
parentda6b12b93151e42aa561d8cceecdc50f7ce29eb4
Now that Volker fixed the real issues with ldapsam and adding null attributes
etc, move the SAMR create_user code back to using the 'pdb_init_sam_pw' method
to fill out the attributes.

This is basicly the same code, but we really didn't need the duplication.

Also, take advantage of the fact that RIDs will always be returned back into
the SAM_ACCOUNT on ADD, so we don't need to duplicate the 'get'.

This should also help in sites with replicated LDAP - the second fetch might
occour before the first is replicated back.

Andrew Bartlett
(This used to be commit 39714c24fd9da4701d4fe69ddd3d61a25254409f)
source3/rpc_server/srv_samr_nt.c