r20215: Next step trying to fix the Solaris build.
authorVolker Lendecke <vlendec@samba.org>
Sat, 16 Dec 2006 17:54:16 +0000 (17:54 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:33 +0000 (12:16 -0500)
I think "anonimous" is correctly spelled "anonymous". The Solaris compile is
referring to this as "anonymous" in line 814 of smbldap.c. Simo, please check.

Thanks,

Volker
(This used to be commit a77d8fa08e5a7c9c0c7c415ce3b7848b265b4b95)

source3/include/smbldap.h
source3/lib/smbldap.c

index b261ca82fd2a428656e13f6d4c063d992f499201..390b8f681a4a62dcb785a4a5c10113452b9be7ca 100644 (file)
@@ -160,7 +160,7 @@ struct smbldap_state {
        const char *uri;
 
        /* credentials */
-       BOOL anonimous;
+       BOOL anonymous;
        char *bind_dn;
        char *bind_secret;
 
index 2fe0d5b86e17d957aaef1b71d4c5882db1eaff2e..aa039294d2ef93579e4fcd969caaa31f16afd112 100644 (file)
@@ -934,7 +934,7 @@ static int smbldap_connect_system(struct smbldap_state *ldap_state, LDAP * ldap_
        int rc;
        int version;
 
-       if (!ldap_state->anonimous && !ldap_state->bind_dn) {
+       if (!ldap_state->anonymous && !ldap_state->bind_dn) {
 
                /* get the default dn and password only if they are not set already */
                if (!fetch_ldap_pw(&ldap_state->bind_dn, &ldap_state->bind_secret)) {
@@ -1708,7 +1708,7 @@ BOOL smbldap_has_naming_context(LDAP *ld, const char *naming_context)
 
 BOOL smbldap_set_creds(struct smbldap_state *ldap_state, BOOL anon, const char *dn, const char *secret)
 {
-       ldap_state->anonimous = anon;
+       ldap_state->anonymous = anon;
 
        /* free any previously set credential */