Skip to Content

Category Archives: 1138

Change notification in .NET

Written on October 31, 2007 at 1:36 pm, by

Active Directory is replicating only changes between DCs. This is something which every person who is working with AD for a while is familiar with. Same mechanism can be used from .NET code to request changes from DC. With .NET it’s fairly easy. However AD has one more mechanisms which can be used for pooling […]

System.DirectoryServices and connection pooling

Written on August 9, 2007 at 1:05 pm, by

Connection pooling is something with most of .NET and SQL developers are pretty familiar with. It is mechanism which allows to re-usage of once established connection under some conditions. Establishing connections are considered as costly operation in networking world. So it might do good for performance of Your application if only one connection will be […]

S.DS and large data sets

Written on May 18, 2007 at 12:29 pm, by

I’m not a great programmer but from time to time I have to write some piece of code – this is mostly related to my day job and MIIS projects or creating ad hoc tools for Active Directory projects. Most of these projects are being created using .NET 2.0 as this is environment we are […]

AD account (connector) rename with MIIS

Written on March 18, 2007 at 1:23 pm, by

Today at MIIS newsgroup question was asked how to rename AD account with MIIS. This is pretty simple and if I remember correctly this is even covered by MIIS developer reference but I’ve decided to give it quick thought here. OK – rename operation: if account name is also CS object’s DN this operation has […]

Slash character in AD object distinguishedName

Written on December 27, 2006 at 7:24 am, by

I was working lately on some code which utilizes Active Directory and I came across problem that trying to access some of objects raised an exception with E_ADS_BAD_PATHNAME message. After short investigation I found out that this objects for which this exception was raised had slash character in distinguishedName. These objects were representing physical locations […]

How to check if I can update attribute?

Written on December 13, 2006 at 12:51 pm, by

Yesterday I was at customer site to talk about identity management and as it often happens some other topics were discussed with customer tech stuff after discussing main topics. In this discussion I was asked how to read and parse security descriptor for  Active Directory object. After few questions we came to conclusion that they […]

More data is available exception when searching with S.DS

Written on November 9, 2006 at 1:45 pm, by

If You are developer and You have to utilize Active Directory or ADAM in Your application .NET System.DirectoryServices (S.DS) namespace is nice thing to have. It simplifies operation performed against Active Directory, hiding all COM stuff behind relatively few different classes You can use to query and modify directory objects. S.DS is nice namespace, but it still utilizes […]