summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-05-25 03:31:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:14 -0500
commit81e8de9ca85fe9a6658beb1dab0d231c13cda063 (patch)
tree72743c9b3bf4874d5e7db85c2a44fec4222f2b6f /source4
parenta4939a43ff5d7a04b72d9e3adef3df92c497e079 (diff)
downloadsamba-81e8de9ca85fe9a6658beb1dab0d231c13cda063.tar.gz
samba-81e8de9ca85fe9a6658beb1dab0d231c13cda063.tar.bz2
samba-81e8de9ca85fe9a6658beb1dab0d231c13cda063.zip
r871: add a comment about how samdb_set_password() works
(This used to be commit 2fdf33c6e5f5666629adaf849b97fa4d4fd5968e)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/samr/samr_password.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/samr/samr_password.c b/source4/rpc_server/samr/samr_password.c
index bc31d82a6a..5b99e04fab 100644
--- a/source4/rpc_server/samr/samr_password.c
+++ b/source4/rpc_server/samr/samr_password.c
@@ -261,6 +261,12 @@ BOOL samdb_password_complexity_ok(const char *pass)
/*
set the user password using plaintext, obeying any user or domain
password restrictions
+
+ note that this function doesn't actually store the result in the
+ database, it just fills in the "mod" structure with ldb modify
+ elements to setup the correct change when samdb_replace() is
+ called. This allows the caller to combine the change with other
+ changes (as is needed by some of the set user info levels)
*/
NTSTATUS samdb_set_password(void *ctx, TALLOC_CTX *mem_ctx,
const char *user_dn, const char *domain_dn,