From 39b2178fc998c9811636a67546d0818df6ca14c7 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 26 Apr 2005 07:10:43 +0000 Subject: r6483: fix anonymous connections, '-U %' or '-U ""%""' can be used for this metze (This used to be commit d31b4d7df375c0d4ea962a0df1693778d56f03ec) --- source4/lib/credentials.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/lib/credentials.c') 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; -- cgit