AD / ldap update

2011-09-22 Thread Conor Lillis
Hi all, I have a requirement to add a new primary SMTP address to our users, and retain the existing primary SMTP address as an alias. The attribute in AD that holds these values is "proxyAddresses". Exchange uses any SMTP values in lowercase (eg smtp:co...@angloirishbank.ie) as aliases, and will

Re: AD / ldap update

2011-09-22 Thread Angelos Karageorgiou
Without going through your code a quick question , does the username that you are using to authenticate against AD have Administrative level privileges ? On Thu, 22 Sep 2011 12:02:21 +0100, Conor Lillis wrote: > Hi all, > > I have a requirement to add a new primary SMTP address to our u

RE: AD / ldap update

2011-09-22 Thread Conor Lillis
Hi Angelos, Thanks for coming back to me. The account does have the rights - as part of testing I have successfully modified the displayName attribute. Regards, Conor Lillis Senior Systems Administrator Group Infrastructure Services – Technical Services Group Operations

RE: AD / ldap update

2011-09-22 Thread Conor Lillis
As an additional test, I used MS ADSI edit to delete the current primary address and add in the required new email address from the proxyaddresses field. (with ADSI connected to a specific domain controller.) When I run the script below against the same DC, it does not list the addition o

Re: AD / ldap update

2011-09-22 Thread Tim Mooney
In regard to: Perl-Win32-Users Digest, Vol 61, Issue 7, perl-win32-users-re...: > Exchange uses any SMTP values in lowercase (eg > smtp:co...@angloirishbank.ie) as aliases, and will stamp outgoing SMTP > email with the value that starts with SMTP: uppercase (eg > SMTP:conorlil...@angloirishbank.ie

Re: AD / ldap update

2011-09-22 Thread anthony . okusanya
Conor I believe MS AD requires a secure connection. your connection is missing ldaps as shown below my $ad = Net::LDAP->new("ldaps://$PDC") || die "Could not connect!"; Below is from one of my AD scripts that works my $obj_ldap = Net::LDAP->new("ldaps://$ldap_server") or die "$@"; my