svn commit: samba r13693 - branches/SAMBA_3_0/source/include
branches/SAMBA_3_0/source/lib
branches/SAMBA_3_0/source/passdb trunk/source/include
trunk/source/lib trunk/source/passdb
vlendec at samba.org
vlendec at samba.org
Sun Feb 26 12:25:36 GMT 2006
Author: vlendec
Date: 2006-02-26 12:25:34 +0000 (Sun, 26 Feb 2006)
New Revision: 13693
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13693
Log:
More Solaris/LDAP fixes from Bjoern <bjoern at j3e.de>
Modified:
branches/SAMBA_3_0/source/include/includes.h
branches/SAMBA_3_0/source/lib/smbldap.c
branches/SAMBA_3_0/source/passdb/pdb_nds.c
trunk/source/include/includes.h
trunk/source/lib/smbldap.c
trunk/source/passdb/pdb_nds.c
Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===================================================================
--- branches/SAMBA_3_0/source/include/includes.h 2006-02-26 06:06:53 UTC (rev 13692)
+++ branches/SAMBA_3_0/source/include/includes.h 2006-02-26 12:25:34 UTC (rev 13693)
@@ -474,6 +474,12 @@
#if defined(LDAP_SASL_BIND_INPROGRESS) && !defined(LDAP_SASL_BIND_IN_PROGRESS)
#define LDAP_SASL_BIND_IN_PROGRESS LDAP_SASL_BIND_INPROGRESS
#endif
+/* Solaris 8 defines SSL_LDAP_PORT, not LDAPS_PORT and it only does so if
+ LDAP_SSL is defined - but SSL is not working. We just want the
+ port number! Let's just define LDAPS_PORT correct. */
+#if !defined(LDAPS_PORT)
+#define LDAPS_PORT 636
+#endif
#else
#undef HAVE_LDAP
#endif
Modified: branches/SAMBA_3_0/source/lib/smbldap.c
===================================================================
--- branches/SAMBA_3_0/source/lib/smbldap.c 2006-02-26 06:06:53 UTC (rev 13692)
+++ branches/SAMBA_3_0/source/lib/smbldap.c 2006-02-26 12:25:34 UTC (rev 13693)
@@ -999,7 +999,7 @@
#endif
if (reopen) {
/* the other end has died. reopen. */
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
ldap_state->last_ping = (time_t)0;
} else {
@@ -1017,7 +1017,7 @@
}
if ((rc = smbldap_connect_system(ldap_state, ldap_state->ldap_struct))) {
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
return rc;
}
@@ -1039,7 +1039,7 @@
return NT_STATUS_INVALID_PARAMETER;
if (ldap_state->ldap_struct != NULL) {
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
}
Modified: branches/SAMBA_3_0/source/passdb/pdb_nds.c
===================================================================
--- branches/SAMBA_3_0/source/passdb/pdb_nds.c 2006-02-26 06:06:53 UTC (rev 13692)
+++ branches/SAMBA_3_0/source/passdb/pdb_nds.c 2006-02-26 12:25:34 UTC (rev 13693)
@@ -819,7 +819,7 @@
rc = ldap_simple_bind_s(ld, dn, clear_text_pw);
if (rc == LDAP_SUCCESS) {
DEBUG(5,("pdb_nds_update_login_attempts: ldap_simple_bind_s Successful for %s\n", username));
- ldap_unbind_ext(ld, NULL, NULL);
+ ldap_unbind(ld);
} else {
NTSTATUS nt_status = NT_STATUS_ACCOUNT_RESTRICTION;
DEBUG(5,("pdb_nds_update_login_attempts: ldap_simple_bind_s Failed for %s\n", username));
Modified: trunk/source/include/includes.h
===================================================================
--- trunk/source/include/includes.h 2006-02-26 06:06:53 UTC (rev 13692)
+++ trunk/source/include/includes.h 2006-02-26 12:25:34 UTC (rev 13693)
@@ -474,6 +474,12 @@
#if defined(LDAP_SASL_BIND_INPROGRESS) && !defined(LDAP_SASL_BIND_IN_PROGRESS)
#define LDAP_SASL_BIND_IN_PROGRESS LDAP_SASL_BIND_INPROGRESS
#endif
+/* Solaris 8 defines SSL_LDAP_PORT, not LDAPS_PORT and it only does so if
+ LDAP_SSL is defined - but SSL is not working. We just want the
+ port number! Let's just define LDAPS_PORT correct. */
+#if !defined(LDAPS_PORT)
+#define LDAPS_PORT 636
+#endif
#else
#undef HAVE_LDAP
#endif
Modified: trunk/source/lib/smbldap.c
===================================================================
--- trunk/source/lib/smbldap.c 2006-02-26 06:06:53 UTC (rev 13692)
+++ trunk/source/lib/smbldap.c 2006-02-26 12:25:34 UTC (rev 13693)
@@ -999,7 +999,7 @@
#endif
if (reopen) {
/* the other end has died. reopen. */
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
ldap_state->last_ping = (time_t)0;
} else {
@@ -1017,7 +1017,7 @@
}
if ((rc = smbldap_connect_system(ldap_state, ldap_state->ldap_struct))) {
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
return rc;
}
@@ -1039,7 +1039,7 @@
return NT_STATUS_INVALID_PARAMETER;
if (ldap_state->ldap_struct != NULL) {
- ldap_unbind_ext(ldap_state->ldap_struct, NULL, NULL);
+ ldap_unbind(ldap_state->ldap_struct);
ldap_state->ldap_struct = NULL;
}
Modified: trunk/source/passdb/pdb_nds.c
===================================================================
--- trunk/source/passdb/pdb_nds.c 2006-02-26 06:06:53 UTC (rev 13692)
+++ trunk/source/passdb/pdb_nds.c 2006-02-26 12:25:34 UTC (rev 13693)
@@ -819,7 +819,7 @@
rc = ldap_simple_bind_s(ld, dn, clear_text_pw);
if (rc == LDAP_SUCCESS) {
DEBUG(5,("pdb_nds_update_login_attempts: ldap_simple_bind_s Successful for %s\n", username));
- ldap_unbind_ext(ld, NULL, NULL);
+ ldap_unbind(ld);
} else {
NTSTATUS nt_status = NT_STATUS_ACCOUNT_RESTRICTION;
DEBUG(5,("pdb_nds_update_login_attempts: ldap_simple_bind_s Failed for %s\n", username));
More information about the samba-cvs
mailing list