summaryrefslogtreecommitdiff
path: root/source4/lib/credentials.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/credentials.c')
-rw-r--r--source4/lib/credentials.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/credentials.c b/source4/lib/credentials.c
index f5ce886ed0..db796cde35 100644
--- a/source4/lib/credentials.c
+++ b/source4/lib/credentials.c
@@ -363,6 +363,11 @@ void cli_credentials_parse_string(struct cli_credentials *credentials, const cha
{
char *uname, *p;
+ if (strcmp("%",data) == 0) {
+ cli_credentials_set_anonymous(credentials);
+ return;
+ }
+
uname = talloc_strdup(credentials, data);
if ((p = strchr_m(uname,'%'))) {
*p = 0;