r26205: Pass loadparm_context to secrets_db_connect() rather than using global context.
[jelmer/samba4-debian.git] / source / auth / credentials / credentials_files.c
index db69fc1cb4f3ac2c4deca1665a9cc67bb3ef8dbf..2d850956e2ced0ed5cd69cafb71b424283e7bce7 100644 (file)
@@ -212,7 +212,7 @@ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred,
 
        if (!ldb) {
                /* Local secrets are stored in secrets.ldb */
-               ldb = secrets_db_connect(mem_ctx);
+               ldb = secrets_db_connect(mem_ctx, global_loadparm);
                if (!ldb) {
                        /* set anonymous as the fallback, if the machine account won't work */
                        cli_credentials_set_anonymous(cred);