diff options
author | Simo Sorce <idra@samba.org> | 2007-09-10 19:19:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:38 -0500 |
commit | bd45eab008c79d944e44b6e93ee40572b9932ce0 (patch) | |
tree | 0767ba843796f433de4197fc6c425f8495c9267c /source3/nsswitch/idmap_ldap.c | |
parent | ac1642508fb2f4f8e628e3309a89624a8b2ec1bf (diff) | |
download | samba-bd45eab008c79d944e44b6e93ee40572b9932ce0.tar.gz samba-bd45eab008c79d944e44b6e93ee40572b9932ce0.tar.bz2 samba-bd45eab008c79d944e44b6e93ee40572b9932ce0.zip |
r25064: We use BOOL/True/False not bool/true/false
(This used to be commit f624a269bf242630e9bda7a89b9b0e8e12646982)
Diffstat (limited to 'source3/nsswitch/idmap_ldap.c')
-rw-r--r-- | source3/nsswitch/idmap_ldap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/idmap_ldap.c b/source3/nsswitch/idmap_ldap.c index 3e6e65727e..3b63915b05 100644 --- a/source3/nsswitch/idmap_ldap.c +++ b/source3/nsswitch/idmap_ldap.c @@ -78,7 +78,7 @@ static NTSTATUS get_credentials( TALLOC_CTX *mem_ctx, char *secret = NULL; const char *tmp = NULL; char *user_dn = NULL; - bool anon = false; + BOOL anon = False; /* assume anonymous if we don't have a specified user */ @@ -87,10 +87,10 @@ static NTSTATUS get_credentials( TALLOC_CTX *mem_ctx, if ( tmp ) { if (!dom) { /* only the alloc backend can pass in a NULL dom */ - secret = idmap_fetch_secret("ldap", true, + secret = idmap_fetch_secret("ldap", True, NULL, tmp); } else { - secret = idmap_fetch_secret("ldap", false, + secret = idmap_fetch_secret("ldap", False, dom->name, tmp); } @@ -107,7 +107,7 @@ static NTSTATUS get_credentials( TALLOC_CTX *mem_ctx, if (!fetch_ldap_pw(&user_dn, &secret)) { DEBUG(2, ("get_credentials: Failed to lookup ldap " "bind creds. Using anonymous connection.\n")); - anon = true; + anon = True; } else { *dn = talloc_strdup(mem_ctx, user_dn); SAFE_FREE( user_dn ); |