smbldap-tools/smbldap-tools-0.9.10-administrator_and_guest.patch
Silvan Calarco 94f1eab138 update to 0.9.10
smbldap-tools-slapd.conf: added missing indexes [release 0.9.10-1mamba;Fri Jul 19 2013]
2024-01-05 17:53:18 +01:00

58 lines
2.2 KiB
Diff

diff -Nru smbldap-tools-0.9.10/smbldap-populate.pl smbldap-tools-0.9.10.patched/smbldap-populate.pl
--- smbldap-tools-0.9.10/smbldap-populate.pl 2012-03-05 09:59:44.000000000 +0100
+++ smbldap-tools-0.9.10.patched/smbldap-populate.pl 2013-07-19 12:41:41.328175838 +0200
@@ -48,13 +48,13 @@
print_banner;
print "Usage: $0 [-abegiklmru?] [ldif]\n";
print " -a user administrator login name (default: root)\n";
- print " -b user guest login name (default: nobody)\n";
+ print " -b user guest login name (default: guest)\n";
print " -e file export ldif file\n";
print " -g gidNumber first uidNumber to allocate (default: 1000)\n";
print " -i file import ldif file\n";
- print " -k uidNumber administrator's uidNumber (default: 0)\n";
- print " -l uidNumber guest's uidNumber (default: 999)\n";
- print " -m gidNumber administrator's gidNumber (default: 0)\n";
+ print " -k uidNumber administrator's uidNumber (default: 65400)\n";
+ print " -l uidNumber guest's uidNumber (default:65401)\n";
+ print " -m gidNumber administrator's gidNumber (default: 512)\n";
print " -r ridNumber first sambaNextRid to allocate (default: 1000)\n";
print " -R ridBase sambaAlgorithmicRidBase (none)\n";
print " -u uidNumber first uidNumber to allocate (default: 1000)\n";
@@ -97,7 +97,7 @@
my $guestName = $Options{'b'};
if (!defined($guestName)) {
- $guestName = "nobody";
+ $guestName = "guest";
}
my $adminUidNumber=$Options{'k'};
@@ -114,7 +114,7 @@
my $guestUidNumber=$Options{'l'};
my $guestRid = 501;
if (!defined($guestUidNumber)) {
- $guestUidNumber = "999";
+ $guestUidNumber = "65401";
} else {
if (defined($algorithmicRidBase)) {
## For backward compatibility with smbldap-tools 0.9.6 and older
@@ -124,7 +124,7 @@
my $adminGidNumber=$Options{'m'};
if (!defined($adminGidNumber)) {
- $adminGidNumber = "0";
+ $adminGidNumber = "512";
}
print "Populating LDAP directory for domain $domain ($config{SID})\n";
@@ -261,7 +261,7 @@
sambaNTPassword => "XXX",
sambaAcctFlags => "[U ]",
sambaSID => "$config{SID}-$adminRid",
- loginShell => "/bin/false",
+ loginShell => "/bin/bash",
gecos => "Netbios Domain Administrator",
);
push(@entries, $entry);