summaryrefslogtreecommitdiff
path: root/source3/passdb/passgrpldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/passgrpldap.c')
-rw-r--r--source3/passdb/passgrpldap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/passdb/passgrpldap.c b/source3/passdb/passgrpldap.c
index 3d647cd776..1092a3c5b1 100644
--- a/source3/passdb/passgrpldap.c
+++ b/source3/passdb/passgrpldap.c
@@ -66,7 +66,7 @@ static void ldappassgrp_member(char *attribute, uint32 **rids, int *numrids)
static void *ldappassgrp_enumfirst(BOOL update)
{
- if (!ldap_open_connection(False))
+ if (!ldap_connect())
return NULL;
ldap_search_for("&(objectclass=sambaAccount)(|(group=*)(alias=*))");
@@ -76,7 +76,7 @@ static void *ldappassgrp_enumfirst(BOOL update)
static void ldappassgrp_enumclose(void *vp)
{
- ldap_close_connection();
+ ldap_disconnect();
}
@@ -106,7 +106,7 @@ static struct smb_passwd *ldappassgrp_getpwbynam(const char *name,
{
struct smb_passwd *ret;
- if(!ldap_open_connection(False))
+ if(!ldap_connect())
return NULL;
ldap_search_by_ntname(name);
@@ -114,7 +114,7 @@ static struct smb_passwd *ldappassgrp_getpwbynam(const char *name,
ldappassgrp_member("alias", als_rids, num_alss);
ret = ldap_getpw();
- ldap_close_connection();
+ ldap_disconnect();
return ret;
}
@@ -124,7 +124,7 @@ static struct smb_passwd *ldappassgrp_getpwbyuid(uid_t userid,
{
struct smb_passwd *ret;
- if(!ldap_open_connection(False))
+ if(!ldap_connect())
return NULL;
ldap_search_by_uid(userid);
@@ -132,7 +132,7 @@ static struct smb_passwd *ldappassgrp_getpwbyuid(uid_t userid,
ldappassgrp_member("alias", als_rids, num_alss);
ret = ldap_getpw();
- ldap_close_connection();
+ ldap_disconnect();
return ret;
}
@@ -142,7 +142,7 @@ static struct smb_passwd *ldappassgrp_getpwbyrid(uint32 user_rid,
{
struct smb_passwd *ret;
- if(!ldap_open_connection(False))
+ if(!ldap_connect())
return NULL;
ldap_search_by_rid(user_rid);
@@ -150,7 +150,7 @@ static struct smb_passwd *ldappassgrp_getpwbyrid(uint32 user_rid,
ldappassgrp_member("alias", als_rids, num_alss);
ret = ldap_getpw();
- ldap_close_connection();
+ ldap_disconnect();
return ret;
}