Link to home
Start Free TrialLog in
Avatar of KazooSoft
KazooSoftFlag for United Kingdom of Great Britain and Northern Ireland

asked on

C# setting extensionAttribute1 not working!?

Hey all!

I am creating accounts in AD which works perfectly. As soon as I try to add the extensionAttribute1 in the LDAP is fails:

if (!String.IsNullOrEmpty(extensionAttribute1))
                {                    
                    newUser.Properties["extensionAttribute1"].Add(extensionAttribute1);
                }

Any ideas?
Avatar of james-ct16
james-ct16
Flag of Australia image

Good evening

Couple of quick questions that may help you get an answer,

What is the error message you are getting?

What happens if you do a check first to see if extensionattribute1 exists eg newuser.Properties.contains ?

Regards

James
Avatar of KazooSoft

ASKER

There is no error being produced which is baffling me!

I have manually checked the LDAP and the field will not exist like many other fields I am setting but they all work :S

Cheers,
ASKER CERTIFIED SOLUTION
Avatar of aledev
aledev

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial