diff options
author | Vicent Guardiola <vguardiola@mandriva.com> | 2004-09-20 15:21:52 +0000 |
---|---|---|
committer | Vicent Guardiola <vguardiola@mandriva.com> | 2004-09-20 15:21:52 +0000 |
commit | c8582d04528afc6ff80f235d2cce14e756e3ae7e (patch) | |
tree | 62672b357be84b8b0efff9ede840fb384e4e28c8 /ldap_wizard | |
parent | feec8a1ca5ba1a3ec82087e56b6ce9ab55c5c592 (diff) | |
download | drakwizard-c8582d04528afc6ff80f235d2cce14e756e3ae7e.tar drakwizard-c8582d04528afc6ff80f235d2cce14e756e3ae7e.tar.gz drakwizard-c8582d04528afc6ff80f235d2cce14e756e3ae7e.tar.bz2 drakwizard-c8582d04528afc6ff80f235d2cce14e756e3ae7e.tar.xz drakwizard-c8582d04528afc6ff80f235d2cce14e756e3ae7e.zip |
generate new uid/gid number
Diffstat (limited to 'ldap_wizard')
-rw-r--r-- | ldap_wizard/Ldap.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ldap_wizard/Ldap.pm b/ldap_wizard/Ldap.pm index 9518a2c8..c60de6ac 100644 --- a/ldap_wizard/Ldap.pm +++ b/ldap_wizard/Ldap.pm @@ -1,5 +1,5 @@ #!/usr/bin/perl -# version 0.1 +# version 1.33 # GPL like # vguardiola@mandrakesoft.com @@ -52,7 +52,7 @@ my $o = { }, needed_rpm => [ 'openldap-servers','openldap-clients' ], defaultimage => "$ENV{__WIZ_HOME__}ldap_wizard/images/ldap.png", - }; + }; my $wiz = new MDK::Wizard::Wizcommon; @@ -393,6 +393,13 @@ EOF sub do_it_user_add { return if $::testing; + my $uid = "10000"; + while (defined(getpwuid($uid))) { + $uid++; + } + + $o->{var}{uidnb} = $uid; + $o->{var}{gidnb} = $uid; ($o->{var}{code_return}, $o->{var}{error_user_add}) = add_user($o); if ($o->{var}{code_return} =~ /success/i) { |