ispman/scripts ldifupdate,1.9,1.10
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23795
Modified Files:
ldifupdate
Log Message:
merged from rel_1_1-bugfixes (up to 1.2.2.3)
added check for loginshell of users and vhosts
Index: ldifupdate
===================================================================
RCS file: /cvsroot/ispman/ispman/scripts/ldifupdate,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- ldifupdate 14 Feb 2004 19:46:39 -0000 1.9
+++ ldifupdate 27 Apr 2004 20:10:41 -0000 1.10
@@ -22,6 +22,8 @@
my $default_domainHomedir = "/ispman/domains";
my @default_fileserver = qw( );
my @default_webhost = qw( );
+my $default_loginShell = "/bin/false";
+my $default_vhostShell = "/bin/false";
my $dummyUid = "999999";
my $dummyGid = "999999";
my $dummyPassword = "123456";
@@ -319,6 +321,12 @@
ldif_action("add","ispmanVhostStatdir","stats");
}
+ # checking vhost loginShell
+ unless ($entry->get_value("loginshell")){
+ $msg.="adding loginShell: $default_vhostShell\n";
+ ldif_action("add","loginshell",$default_vhostShell);
+ }
+
} elsif ($oc{'ispmanDomainUser'}){
@@ -349,6 +357,12 @@
ldif_action("delete","filehost","undefined");
}
+ # checking loginShell
+ unless ($entry->get_value("loginshell")){
+ $msg.="adding default loginShell: $default_loginShell\n";
+ ldif_action("add","loginshell",$default_loginShell);
+ }
+
} else {
# check other entries here
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297