summaryrefslogtreecommitdiffstats
path: root/ldap_wizard
diff options
context:
space:
mode:
authorVicent Guardiola <vguardiola@mandriva.com>2004-09-01 09:26:58 +0000
committerVicent Guardiola <vguardiola@mandriva.com>2004-09-01 09:26:58 +0000
commitabc844386d7109ca32cc0d50cb75f642b6003fa4 (patch)
tree645bcb5f114cbbdfb6179efddbe0963bd2fb79a9 /ldap_wizard
parentfe67909b55c0b416053cef43afaa02f73b396acb (diff)
downloaddrakwizard-abc844386d7109ca32cc0d50cb75f642b6003fa4.tar
drakwizard-abc844386d7109ca32cc0d50cb75f642b6003fa4.tar.gz
drakwizard-abc844386d7109ca32cc0d50cb75f642b6003fa4.tar.bz2
drakwizard-abc844386d7109ca32cc0d50cb75f642b6003fa4.tar.xz
drakwizard-abc844386d7109ca32cc0d50cb75f642b6003fa4.zip
Add return->error in add_user function
Diffstat (limited to 'ldap_wizard')
-rw-r--r--ldap_wizard/ldapdef.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldap_wizard/ldapdef.pm b/ldap_wizard/ldapdef.pm
index 3f1caaab..ab7bdd3e 100644
--- a/ldap_wizard/ldapdef.pm
+++ b/ldap_wizard/ldapdef.pm
@@ -1,7 +1,6 @@
package MDK::Wizard::ldapdef;
use strict;
-use MDK::Wizard::Ldap;
use Net::LDAP;
use Net::LDAP::Util qw(ldap_error_text);
use MDK::Common;
@@ -103,5 +102,7 @@ sub add_user {
]
);
# create_dialog("", ldap_error_text($result->code));
- return ldap_error_text($result->code));
+ #$result->code && die $result->error;
+ return ($result->error, ldap_error_text($result->code));
+ #return ldap_error_text($result->code);
}