s3-selftest: add add and delete group scripts using nss_wrapper.
authorGünther Deschner <gd@samba.org>
Wed, 20 May 2009 00:12:17 +0000 (02:12 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 20 May 2009 10:37:44 +0000 (12:37 +0200)
Guenther

selftest/target/Samba3.pm
source3/script/tests/selftest.sh

index bf27f36a50a2ac53b913d5da6eaff327da47bd35..30453f2e9b90f960a81881dcd3b59f9d484a3d11 100644 (file)
@@ -459,8 +459,10 @@ sub provision($$$$$$)
        time server = yes
 
        add user script = $nss_wrapper_pl --path $nss_wrapper_passwd --type passwd --action add --name %u
+       add group script = $nss_wrapper_pl --path $nss_wrapper_group --type group --action add --name %g
        add machine script = $nss_wrapper_pl --path $nss_wrapper_passwd --type passwd --action add --name %u
        delete user script = $nss_wrapper_pl --path $nss_wrapper_passwd --type passwd --action delete --name %u
+       delete group script = $nss_wrapper_pl --path $nss_wrapper_group --type group --action delete --name %g
 
        kernel oplocks = no
        kernel change notify = no
index 8f078d238310de064807f938de284df0371d329b..1e84d1c0b8312844a68cbf90697d77e5e16aacd2 100755 (executable)
@@ -217,8 +217,10 @@ cat >$SERVERCONFFILE<<EOF
        time server = yes
 
        add user script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl --path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u
+       add group script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper_pl --path $NSS_WRAPPER_GROUP --type group --action add --name %g
        add machine script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl --path $NSS_WRAPPER_PASSWD --type passwd --action add --name %u
        delete user script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper.pl --path $NSS_WRAPPER_PASSWD --type passwd --action delete --name %u
+       delete group script = $PERL $SRCDIR/../lib/nss_wrapper/nss_wrapper_pl --path $NSS_WRAPPER_GROUP --type group --action delete --name %g
 
        kernel oplocks = no
        kernel change notify = no