r871: add a comment about how samdb_set_password() works
authorAndrew Tridgell <tridge@samba.org>
Tue, 25 May 2004 03:31:46 +0000 (03:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:14 +0000 (12:56 -0500)
(This used to be commit 2fdf33c6e5f5666629adaf849b97fa4d4fd5968e)

source4/rpc_server/samr/samr_password.c

index bc31d82a6afc058bccfd4ac7ea94421985fc81b1..5b99e04fab98382418e369ee558150e0ec6382a6 100644 (file)
@@ -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,