diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-05-10 13:21:32 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-05-10 13:21:32 +0000 |
commit | a71d9b291c5365f08250b77d281f4cc8f24ec2e2 (patch) | |
tree | 00ad8f32bdfb348fb6233b132ef173b08263bf1a /source3/smbd | |
parent | b3d4c0c9f56bd654ba92f3967eb4330354b84c63 (diff) | |
download | samba-a71d9b291c5365f08250b77d281f4cc8f24ec2e2.tar.gz samba-a71d9b291c5365f08250b77d281f4cc8f24ec2e2.tar.bz2 samba-a71d9b291c5365f08250b77d281f4cc8f24ec2e2.zip |
treat a blank "password server =" line as a "*" if in domain security
(This used to be commit 5a617c013cce65434d315dc33279a4bc28dc63de)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 325600e92e..3953c5b0e3 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -1457,7 +1457,8 @@ BOOL domain_client_validate( char *user, char *domain, * PDC/BDC. Contact each in turn and try and authenticate. */ - pserver = strdup(lp_passwordserver()); + pserver = lp_passwordserver(); + if (! *pserver) pserver = "*"; p = pserver; while (!connected_ok && @@ -1469,8 +1470,6 @@ BOOL domain_client_validate( char *user, char *domain, } } - free(pserver); - if (!connected_ok) { DEBUG(0,("domain_client_validate: Domain password server not available.\n")); cli_shutdown(&cli); |