mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
a3f891dbd2
Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.
This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live. This caught a pile of examples, and these have
beeen fixed.
The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.
I've also added some debugs to the pdb get and set, they can be removed if
requested.
I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.
The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.
Finally, any and all testing is always appriciated - but the basics seem to
work.
Andrew Bartlett
(This used to be commit
|
||
---|---|---|
.. | ||
debug2html.c | ||
make_printerdef.c | ||
net_ads.c | ||
net_lookup.c | ||
net_rap.c | ||
net_rpc_join.c | ||
net_rpc.c | ||
net_time.c | ||
net.c | ||
net.h | ||
nmblookup.c | ||
pdbedit.c | ||
rpccheck.c | ||
smbcacls.c | ||
smbcontrol.c | ||
smbfilter.c | ||
smbgroupedit.c | ||
smbpasswd.c | ||
smbtree.c | ||
smbw_sample.c | ||
status.c | ||
testparm.c | ||
testprns.c |