smbldap-tools/smbldap-tools-0.9.10-fix_minUidGid.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

50 lines
1.9 KiB
Diff

diff -Nru smbldap-tools-0.9.10.orig/smbldap-populate.pl smbldap-tools-0.9.10/smbldap-populate.pl
--- smbldap-tools-0.9.10.orig/smbldap-populate.pl 2013-07-19 12:44:07.021667805 +0200
+++ smbldap-tools-0.9.10/smbldap-populate.pl 2013-07-19 12:49:28.371837517 +0200
@@ -50,14 +50,14 @@
print " -a user administrator login name (default: root)\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 " -g gidNumber first uidNumber to allocate (default: 10000)\n";
print " -i file import ldif file\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";
+ print " -r ridNumber first sambaNextRid to allocate (default: 10000)\n";
+ print " -R ridBase sambaAlgorithmicRidBase (10000)\n";
+ print " -u uidNumber first uidNumber to allocate (default: 10000)\n";
print " -? show this help message\n";
exit (1);
@@ -75,20 +75,23 @@
my $firstuidNumber=$Options{'u'};
if (!defined($firstuidNumber)) {
- $firstuidNumber=1000;
+ $firstuidNumber=10000;
}
my $firstgidNumber=$Options{'g'};
if (!defined($firstgidNumber)) {
- $firstgidNumber=1000;
+ $firstgidNumber=10000;
}
my $firstridNumber=$Options{'r'};
if (!defined($firstridNumber)) {
- $firstridNumber=1000;
+ $firstridNumber=10000;
}
my $algorithmicRidBase = $Options{'R'};
+if (!defined($algorithmicRidBase)) {
+ $algorithmicRidBase=10000;
+}
my $adminName = $Options{'a'};
if (!defined($adminName)) {