selftest: Add the user running the test to passwd.
authorAndreas Schneider <asn@samba.org>
Wed, 3 Jul 2013 12:08:04 +0000 (14:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 17 Apr 2014 12:56:06 +0000 (14:56 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/target/Samba4.pm

index 7003713ac449880ec89e05c8876f33b71b91fbcd..a4fabd3b71c49365806bb200c90786f37ecfd462 100644 (file)
@@ -667,6 +667,7 @@ sub provision_raw_step1($$)
        open(PWD, ">$ctx->{nsswrap_passwd}");
        print PWD "
 root:x:0:0:root gecos:$ctx->{prefix_abs}:/bin/false
+$ctx->{unix_name}:x:$ctx->{unix_uid}:100:$ctx->{unix_name} gecos:$ctx->{prefix_abs}:/bin/false
 nobody:x:65534:65533:nobody gecos:$ctx->{prefix_abs}:/bin/false
 pdbtest:x:65533:65533:pdbtest gecos:$ctx->{prefix_abs}:/bin/false
 ";