summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/smbldap.c8
-rw-r--r--source3/passdb/pdb_nds.c2
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c
index a3ebe72df2..609816b877 100644
--- a/source3/lib/smbldap.c
+++ b/source3/lib/smbldap.c
@@ -664,21 +664,21 @@ int smb_ldap_upgrade_conn(LDAP *ldap_struct, int *new_version)
open a connection to the ldap server (just until the bind)
******************************************************************/
-int smb_ldap_setup_full_conn(LDAP *ldap_struct, const char *uri)
+int smb_ldap_setup_full_conn(LDAP **ldap_struct, const char *uri)
{
int rc, version;
- rc = smb_ldap_setup_conn(&ldap_struct, uri);
+ rc = smb_ldap_setup_conn(ldap_struct, uri);
if (rc) {
return rc;
}
- rc = smb_ldap_upgrade_conn(ldap_struct, &version);
+ rc = smb_ldap_upgrade_conn(*ldap_struct, &version);
if (rc) {
return rc;
}
- rc = smb_ldap_start_tls(ldap_struct, version);
+ rc = smb_ldap_start_tls(*ldap_struct, version);
if (rc) {
return rc;
}
diff --git a/source3/passdb/pdb_nds.c b/source3/passdb/pdb_nds.c
index 1ec9693223..cf2d1d7c8a 100644
--- a/source3/passdb/pdb_nds.c
+++ b/source3/passdb/pdb_nds.c
@@ -807,7 +807,7 @@ static NTSTATUS pdb_nds_update_login_attempts(struct pdb_methods *methods,
if((success != True) || (got_clear_text_pw == True)) {
- rc = smb_ldap_setup_full_conn(ld, ldap_state->location);
+ rc = smb_ldap_setup_full_conn(&ld, ldap_state->location);
if (rc) {
return NT_STATUS_INVALID_CONNECTION;
}