git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b6c07f
)
auth/credentials: let cli_credentials_parse_file() handle 'username' with cli_credent...
author
Stefan Metzmacher
<metze@samba.org>
Sun, 11 Dec 2016 21:50:53 +0000
(22:50 +0100)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 20 Dec 2016 00:11:24 +0000
(
01:11
+0100)
Some existing source3 tests (test_smbclient_s3.sh test_auth_file()) use a credentials file
that looks like this:
username=DOMAIN/username
password=password
domain=DOMAIN
This change allows us to parse the same.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/credentials.c
patch
|
blob
|
history
diff --git
a/auth/credentials/credentials.c
b/auth/credentials/credentials.c
index 14c84034ac6e39e6ff62fc5374da71eaa78d6092..0ffcc5c2cfbe25b62d0163afcd39f7a9e4dd3b17 100644
(file)
--- a/
auth/credentials/credentials.c
+++ b/
auth/credentials/credentials.c
@@
-1149,7
+1149,7
@@
_PUBLIC_ bool cli_credentials_parse_file(struct cli_credentials *cred, const cha
if (strwicmp("password", param) == 0) {
cli_credentials_set_password(cred, val, obtained);
} else if (strwicmp("username", param) == 0) {
- cli_credentials_
set_username
(cred, val, obtained);
+ cli_credentials_
parse_string
(cred, val, obtained);
} else if (strwicmp("domain", param) == 0) {
cli_credentials_set_domain(cred, val, obtained);
} else if (strwicmp("realm", param) == 0) {