Directory Programming .NET

Active Directory and ADAM programming support for .NET developers
Welcome to Directory Programming .NET Sign in | Join | Help
in Search

How to set GroupType on a group using S.DS.P

Last post 08-22-2008, 3:32 PM by DaveHerrmann. 1 replies.
Sort Posts: Previous Next
  •  08-22-2008, 2:22 PM 4491

    How to set GroupType on a group using S.DS.P

    I now have one last hurdle.

    I need to great a Group using S.DS.P and set the GroupType to the following:

    ADS_GROUP_TYPE_SECURITY_ENABLED | ADS_GROUP_TYPE_UNIVERSAL_GROUP

    I understand that the attributes in Adam are all stored as strings. But what is the method to convert this uint value to a string that I can then input to the DirectoryAttribute class? I tried creating an enumerated type to hold this value, but converting that to string in the DirectoryAttribute class caused a syntax error.

    What method is required to set the groupType attriubte using S.DS.P?

    Thanks very much for your help.

    -Dave Herrmann

    PS. Don't ask me why I want to set the Universal Group type on an Adam group. This is a requirement from our customer.

     

  •  08-22-2008, 3:32 PM 4492 in reply to 4491

    Re: How to set GroupType on a group using S.DS.P

    Joe,

    Actually, I think I figured this one out. I was able to set the groupType by simply casting the ADS_GROUP_TYPE.ENUM enumerated values into an int and sending that into the DirectoryAttribute via a ToString() on the int.

    This seems to work fine.

    Thanks again for all your previous help on this project of mine.

    -Dave

View as RSS news feed in XML