[ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread AD
I have a user with no description attribute. Anyone know why this works? User.Invoke("put", New Object() {"description", txtBxNewDescription.Text}) User.commitChanges but this doesn't User.Properties("Description").Add(txtBxNewDescription.Text) User.commitChanges I get the following error

Re: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread Joe Kaplan
They aren't equivalent. Try using the .Value property instead: user.Properties("description").Value = Description is a funny property in AD in that the schema says that it allows multiple values, but the DS itself will only allow it to contain a single value for backward compatibility wi

RE: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread AD
It worked. Thanks a million. Hopefully my hair won't take to long to grow back. I bought your book last week from amazon. I currently reading chapter 3. Actually took your example code. See 3.13.vb. Isn't that funny? I thought DirectoryServices was a wrapper to ADSI? Why do you say they are not

Re: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread Joe Kaplan
I'm saying that those two are not equivalent functions under the hood. Add typically does a PutEx with the append flag, while Put just does a "put", which is essentially an LDAP "update" operation. I think you would have the same problem if you invoked PutEx and used the Append flag. .Value

RE: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread joe
That is a problem only on SAM based objects (groups, users, computers). Anything that isn't SAM based can have multiple values. :) That makes it even more fun. -- O'Reilly Active Directory Third Edition - http://www.joeware.net/win/ad3e.htm -Original Message- From: [EMAIL PROTECTED]

RE: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread AD
Thanks for the info, I actually understand, and please don't take my comments as a complaint. So far I love the book, there isn't anything out there that comes close to have so much information on directory services. I have been programming with DSS for about 1 year now and let me tell ya, googl

RE: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread AD
One last comment Joe, Do you think that is a bug with DSS? That now means depending of the attribute, you have to use different method? Kinda makes it complicated don't you think?. Now I have to "hard code" attribute names in my program. if attribute="description" do this else do it this w

Re: [ActiveDir] Outlook Rules Lockdown

2006-12-28 Thread Steve Frechette
Anyone? On 11/22/06, Dan DeStefano <[EMAIL PROTECTED]> wrote: Is there a way to place restrictions on which rules users can create in Outlook, like disallowing users to create an auto-forward rule? I would like to control these settings by group membership. Thanks in advance for any help,

RE: [ActiveDir] Outlook Rules Lockdown

2006-12-28 Thread Ben Schorr
Not exactly no, but you can block Auto-Forwards at the server side if you have an Exchange server. At least for Internet mail addresses. Ben M. Schorr Chief Executive Officer __ Roland Schorr & Tower www.rolandschorr.com

Re: [ActiveDir] DirectoryServices vb.net is broken.

2006-12-28 Thread Joe Kaplan
I'm not sure if it is a bug or not. Generally, I always use .Value to set a value and only use Add if I'm explicitly trying to add an additional value to a multi-valued attribute that already has values. Same basic approach for Remove. That helps keep me out of trouble. :) It is interesti

Re: [ActiveDir] Automatic user disable based on criteria

2006-12-28 Thread [EMAIL PROTECTED]
Hi guys, A bit late to the party (I'm technically on holidays this week), but... "The best solution I have seen around the security question of new accounts that haven't been used is to start with them disabled and then have the user go to a kiosk machine which goes to a website where they have