summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-05-14 23:50:25 +0200
committerGünther Deschner <gd@samba.org>2008-05-14 23:53:23 +0200
commit847d385f7bac1c02727d7655f4e277813d4fe42c (patch)
tree78d987d908ad1d435f10f9ad145b774e3f9116a5 /source3/libads
parent5e70a25116f4b7355e3995a74e586da7832dff39 (diff)
downloadsamba-847d385f7bac1c02727d7655f4e277813d4fe42c.tar.gz
samba-847d385f7bac1c02727d7655f4e277813d4fe42c.tar.bz2
samba-847d385f7bac1c02727d7655f4e277813d4fe42c.zip
Fix Bug #5465 (joining with createcomputer=ou1/ou2/ou3).
Guenther (This used to be commit f3251ba03a69c2fd0335861177159a32b2bc9477)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 24eb114f51..99fd645a3d 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -3595,18 +3595,18 @@ const char *ads_get_extended_right_name_by_guid(ADS_STRUCT *ads,
ADS_STATUS ads_check_ou_dn(TALLOC_CTX *mem_ctx,
ADS_STRUCT *ads,
- const char *account_ou)
+ const char **account_ou)
{
struct ldb_dn *name_dn = NULL;
const char *name = NULL;
char *ou_string = NULL;
- name_dn = ldb_dn_explode(mem_ctx, account_ou);
+ name_dn = ldb_dn_explode(mem_ctx, *account_ou);
if (name_dn) {
return ADS_SUCCESS;
}
- ou_string = ads_ou_string(ads, account_ou);
+ ou_string = ads_ou_string(ads, *account_ou);
if (!ou_string) {
return ADS_ERROR_LDAP(LDAP_INVALID_DN_SYNTAX);
}
@@ -3623,8 +3623,8 @@ ADS_STATUS ads_check_ou_dn(TALLOC_CTX *mem_ctx,
return ADS_ERROR_LDAP(LDAP_INVALID_DN_SYNTAX);
}
- account_ou = talloc_strdup(mem_ctx, name);
- if (!account_ou) {
+ *account_ou = talloc_strdup(mem_ctx, name);
+ if (!*account_ou) {
return ADS_ERROR_LDAP(LDAP_NO_MEMORY);
}