From: Srini N. <sri...@ho...> - 2002-09-09 19:24:09
|
Hi there, Can anyone show me simple example of how I can replace a multi-valued attribute? For example, I need the attribute "projectIndfex" to have the folowing values: projectIndex: 1246 projectIndex: 9654 projectIndex: 88 My code below adds only the last value in the array: ----------------------------------------- @modattrs = ( 'projectIndex', "1246", 'projectIndex', "9654", 'projectIndex', "88" ); my $result = $ldap->modify( $query->param("dn"), changes => [ #replace => [ @$modattrs ] replace => [ @modattrs ] ] ); ----------------------------------------- Regards, Srini _________________________________________________________________ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com |