mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r18909: use newer functions that were introduced after this code was made
This commit is contained in:
parent
ca8827d8f9
commit
3ce1796eb4
@ -218,7 +218,6 @@ static int ldapsrv_load_limits(struct ldapsrv_connection *conn)
|
||||
TALLOC_CTX *tmp_ctx;
|
||||
const char *attrs[] = { "configurationNamingContext", NULL };
|
||||
const char *attrs2[] = { "lDAPAdminLimits", NULL };
|
||||
const char *conf_dn_s;
|
||||
struct ldb_message_element *el;
|
||||
struct ldb_result *res = NULL;
|
||||
struct ldb_dn *basedn;
|
||||
@ -238,7 +237,7 @@ static int ldapsrv_load_limits(struct ldapsrv_connection *conn)
|
||||
return -1;
|
||||
}
|
||||
|
||||
basedn = ldb_dn_explode(tmp_ctx, "");
|
||||
basedn = ldb_dn_new(tmp_ctx);
|
||||
if (basedn == NULL) {
|
||||
goto failed;
|
||||
}
|
||||
@ -249,11 +248,7 @@ static int ldapsrv_load_limits(struct ldapsrv_connection *conn)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
conf_dn_s = ldb_msg_find_attr_as_string(res->msgs[0], "configurationNamingContext", NULL);
|
||||
if (conf_dn_s == NULL) {
|
||||
goto failed;
|
||||
}
|
||||
conf_dn = ldb_dn_explode(tmp_ctx, conf_dn_s);
|
||||
conf_dn = ldb_msg_find_attr_as_dn(tmp_ctx, res->msgs[0], "configurationNamingContext");
|
||||
if (conf_dn == NULL) {
|
||||
goto failed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user