summaryrefslogtreecommitdiff
path: root/source4/include
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include')
-rw-r--r--source4/include/credentials.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/include/credentials.h b/source4/include/credentials.h
index 7b223dad5a..a97bcfa333 100644
--- a/source4/include/credentials.h
+++ b/source4/include/credentials.h
@@ -51,3 +51,5 @@ struct cli_credentials {
void *priv_data;
};
+
+#define cli_credentials_is_anonymous(c) (!(c) || !(c)->username || !(c)->username[0])