From abc844386d7109ca32cc0d50cb75f642b6003fa4 Mon Sep 17 00:00:00 2001 From: Vicent Guardiola Date: Wed, 1 Sep 2004 09:26:58 +0000 Subject: Add return->error in add_user function --- ldap_wizard/ldapdef.pm | 5 +++-- 1 file 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); } -- cgit v1.2.1