Re: Setting LDAP_SERVER_PERMISSIVE_MODIFY_OID to allow empty values in AD

"Alexander Farber" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.ldap
Message-ID <[email protected]>
Thank you Graham,

On Thu, Dec 4, 2008 at 4:32 PM, Graham Barr <[email protected]> wrote:
> On Dec 4, 2008, at 8:33 AM, Alexander Farber wrote:
>>
>>                $mod = $ldap->modify($entry,
>>                    control => [ { type =>
>> LDAP_SERVER_PERMISSIVE_MODIFY_OID,
>> critical => 1 } ],
>>                    replace => {
>>                        homePhone => $href->{HOME},
>>                        mobile => $href->{MOBILE},
>>                        facsimileTelephoneNumber => $href->{FAX} });
>>
>> hasn't helped (output attached)

> Have you tried deleting the fields instead of setting them to '', ie
>  homePhone => $href->{HOME} || [],

using [] instead of undef has worked:

	$phones{$filter} = {HOME => $home || [],
             MOBILE => $mobile || [], FAX => $fax || []};

even without the "control" option above

Regards
Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.