Tuesday, 14 October 2008

Active directory group and member properties, DirectorySearcher PropertiesToLoad possible values

Normally you would use code like this, to retrieve values for specific properties of an Active Directory group (specified in string groupName):


   1:  DirectorySearcher search = new DirectorySearcher {Filter = String.Format("(cn={0})", groupName)};
   2:  search.PropertiesToLoad.Add("member"); 
   3:   
   4:  List<string> userNames = new List<string>();
   5:   
   6:  if (result != null)
   7:  {
   8:     for (int counter = 0; counter < result.Properties["member"].Count; counter++)  
   9:     {
  10:        string user = (string)result.Properties["member"][counter];
  11:        userNames.Add(user + Environment.NewLine);
  12:     }
  13:  }
  14:   
  15:  return userNames;

but what are the possible values of properties you can use in PropertiesToLoad.Add()? I couldnt find this information anywhere so I wrote a little snippet to retrieve them, here is the result (29 properties)

textencodedoraddress
distinguishedname
dscorepropagationdata
grouptype
objectsid
whencreated
msexchalobjectversion
mailnickname
name
usnchanged
objectcategory
samaccounttype
instancetype
reporttooriginator
cn
proxyaddresses
showinaddressbook
objectclass
mail
usncreated
member
objectguid
adspath
displayname
legacyexchangedn
samaccountname
whenchanged
memberof
msexchpoliciesincluded

The best programming fonts list... ever

http://www.codeproject.com/KB/work/FontSurvey.aspx

Thursday, 9 October 2008

XML command line manipulation open source utility

This might be handy if you have to do a lot of work with XML, or even to quickly query large XML files that you want to search for specific information, although I don't know how well it can deal with large files:

http://xmlstar.sourceforge.net/

Tuesday, 7 October 2008

Database search methods

This one is based more on database interaction: http://www.sqlservercentral.com/articles/Full-Text+Search+(2008)/64248/ (requires free registration).

This one uses the open source lucene framework: http://www.codeproject.com/KB/library/IntroducingLucene.aspx

Online book resources

http://www.makeuseof.com/tag/the-best-6-sites-to-get-free-ebooks/

Microsoft light web platform

The equivalent of LAMP from Microsoft... http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx plus an IDE to boot. Package includes including IIS7, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework, based on a single installer.

Compress image size by yahoo

New tool available from yahoo. Seems to suggest the optimum compressed size that doesn't affect the quality much.

http://smushit.com/