mirror of
https://github.com/samba-team/samba.git
synced 2025-11-28 12:23:49 +03:00
sync 3.0 branch with head
This commit is contained in:
@@ -55,10 +55,10 @@ ADS_STATUS ads_add_user_acct(ADS_STRUCT *ads, const char *user,
|
||||
|
||||
status = ADS_ERROR(LDAP_NO_MEMORY);
|
||||
|
||||
if (!(upn = talloc_asprintf(ctx, "%s@%s", user, ads->realm)))
|
||||
if (!(upn = talloc_asprintf(ctx, "%s@%s", user, ads->config.realm)))
|
||||
goto done;
|
||||
if (!(new_dn = talloc_asprintf(ctx, "cn=%s,cn=Users,%s", name,
|
||||
ads->bind_path)))
|
||||
ads->config.bind_path)))
|
||||
goto done;
|
||||
if (!(controlstr = talloc_asprintf(ctx, "%u", UF_NORMAL_ACCOUNT)))
|
||||
goto done;
|
||||
@@ -94,7 +94,7 @@ ADS_STATUS ads_add_group_acct(ADS_STRUCT *ads, const char *group,
|
||||
status = ADS_ERROR(LDAP_NO_MEMORY);
|
||||
|
||||
if (!(new_dn = talloc_asprintf(ctx, "cn=%s,cn=Users,%s", group,
|
||||
ads->bind_path)))
|
||||
ads->config.bind_path)))
|
||||
goto done;
|
||||
if (!(mods = ads_init_mods(ctx)))
|
||||
goto done;
|
||||
|
||||
Reference in New Issue
Block a user