summaryrefslogtreecommitdiff
path: root/source3/groupdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-01-21 11:55:10 +0100
committerStefan Metzmacher <metze@samba.org>2011-02-02 15:45:19 +0100
commitcecf54b32bf15b0e05af899ab12f06f110dd45ec (patch)
treee3ea511ddb43541de95e0177f33d5db54a973316 /source3/groupdb
parent255f2e06991aa543cd2c6f4d0123664b2a76c99d (diff)
downloadsamba-cecf54b32bf15b0e05af899ab12f06f110dd45ec.tar.gz
samba-cecf54b32bf15b0e05af899ab12f06f110dd45ec.tar.bz2
samba-cecf54b32bf15b0e05af899ab12f06f110dd45ec.zip
s3:groupdb: allow machine accounts as members.
metze
Diffstat (limited to 'source3/groupdb')
-rw-r--r--source3/groupdb/mapping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/groupdb/mapping.c b/source3/groupdb/mapping.c
index 0c6da8c2b9..837f84a724 100644
--- a/source3/groupdb/mapping.c
+++ b/source3/groupdb/mapping.c
@@ -324,8 +324,8 @@ int smb_add_user_group(const char *unix_group, const char *unix_user)
if (!add_script) {
return -1;
}
- add_script = talloc_string_sub(ctx,
- add_script, "%u", unix_user);
+ add_script = talloc_string_sub2(ctx,
+ add_script, "%u", unix_user, true, false, true);
if (!add_script) {
return -1;
}
@@ -364,8 +364,8 @@ int smb_delete_user_group(const char *unix_group, const char *unix_user)
if (!del_script) {
return -1;
}
- del_script = talloc_string_sub(ctx,
- del_script, "%u", unix_user);
+ del_script = talloc_string_sub2(ctx,
+ del_script, "%u", unix_user, true, false, true);
if (!del_script) {
return -1;
}