fabster01 has asked for the wisdom of the Perl Monks concerning the following question:
When running the program I get a output error due to the ldapmodify command is trying to update and existing field, as shown below:#-----Running LDAPMODIFY Against The Ldif File Created-----# sub RunUpdate { print "--Updating Directory server. Please wait for a moment....\n +\n"; my $resultLdapSearch = `ldapmodify -h $ldap_server -D "cn=Director +y Manager" -w $dir_mgr_pwd -f $ldap_modify_file`; #print "resultLdapSearch: $resultLdapSearch\n"; }
As you notice, the error "ldap_modify_s: Type or value exists" appears from the "ldapmodify" that I executed. I need to know how do I capture this value and once I find out, I will write some codes to handle this error. Please advice.bash-2.05# perl 4-run_update_attributes.pl ********************************************************************** +******* Step #4 - The Script WILL NOW Update The Users "Company" and "Co" Attr +ibutes ********************************************************************** +******* Do you want to continue [y]: --Updating Directory server. Please wait for a moment.... ldap_modify_s: Type or value exists ********************************************************************** +* See Result: ----------- Log Output file (verified): 01152008.log ********************************************************************** +*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to capture error messages...
by ikegami (Patriarch) on Jan 16, 2008 at 01:56 UTC | |
by ambrus (Abbot) on Jan 16, 2008 at 10:18 UTC | |
by ikegami (Patriarch) on Jan 16, 2008 at 10:26 UTC | |
by ambrus (Abbot) on Jan 16, 2008 at 10:51 UTC | |
by bart (Canon) on May 29, 2008 at 19:48 UTC | |
by ikegami (Patriarch) on Jan 17, 2008 at 05:32 UTC | |
| |
|
Re: How to capture error messages...
by hipowls (Curate) on Jan 16, 2008 at 03:53 UTC | |
|
Re: How to capture error messages...
by Anonymous Monk on Jan 16, 2008 at 04:03 UTC | |
|
Re: How to capture error messages...
by poolpi (Hermit) on Jan 16, 2008 at 11:56 UTC |