<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://directoryprogramming.com/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Active Directory/ADAM LDAP Discussions&lt;BR&gt;</title><link>http://directoryprogramming.com/forums/9/ShowForum.aspx</link><description>General LDAP topics</description><dc:language>en-US</dc:language><generator>CommunityServer 2.0 (Build: 60217.2664)</generator><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1214.aspx</link><pubDate>Mon, 18 Jun 2007 01:48:48 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1214</guid><dc:creator>dunnry</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1214.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1214</wfw:commentRss><description>Yeah, I suppose you are right.&amp;nbsp; It would be otherwise possible to have naming collisions allowing too much access which is a bigger problem than the 'move safe' issue, IMO.&lt;br&gt;&lt;br&gt;I will update the code to do this and give it a whirl to see if it will work or if the extra '\' values cause other problems.&lt;br&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1213.aspx</link><pubDate>Sun, 17 Jun 2007 15:17:25 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1213</guid><dc:creator>joe</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1213.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1213</wfw:commentRss><description>&lt;P&gt;I like the canonicalName format myself.&amp;nbsp; The big drawback with it is that it is not "move safe", so if you move a group, the canonicalName will change.&amp;nbsp; However, the DN has the same drawback.&lt;/P&gt;
&lt;P&gt;I think it is important to guarantee uniqueness as failing to do so can lead to unexpected security issues.&lt;/P&gt;
&lt;P&gt;If it would be possible to make it configurable, that would be good too.&amp;nbsp; That way, you could decide.&amp;nbsp; If you had another attribute that you were using that you were willing to guarantee uniqueness with, then you could use that (at your own risk).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;I like your idea aesthetically as it matches nicely with the Windows style, but it suffers from the potential uniqueness problem, so it gives me pause.&lt;/P&gt;
&lt;P&gt;Another thing you could do would be to pair the CN with the RID of the group.&amp;nbsp; The RID will definitely be unique and is less unwieldy than the whole SID.&lt;/P&gt;
&lt;P&gt;dunnry.us\Adam Group-3311&lt;/P&gt;
&lt;P&gt;The problem there is that it would not be obvious what any given group might be named.&amp;nbsp; You'd want/need a little utility that would tell you, so that's a pain.&lt;/P&gt;
&lt;P&gt;I think I like canonicalName best as default.&amp;nbsp; I think it is the least evil.&amp;nbsp; The other problem with though is that it will contain multiple \ characters, so any code that attempts to parse NT account names that expect a single \ may trip on it.&lt;/P&gt;
&lt;P&gt;It is hard to win here.&amp;nbsp; :)&lt;/P&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1212.aspx</link><pubDate>Sun, 17 Jun 2007 05:44:28 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1212</guid><dc:creator>dunnry</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1212.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1212</wfw:commentRss><description>So, I don't want to see this issue die.&amp;nbsp; I am willing to code something to fix this if someone has a way that we can uniquely identify the group in ADAM.&amp;nbsp; It looks like the DN format is not going to work in ASP.NET since the IsInRole() hates it.&amp;nbsp; How should we tackle this?&amp;nbsp; I will do canonical names if I can get some feedback here.&lt;br&gt;&lt;br&gt;I could also do something more clever, like prefixing the name of the partition like a domain - e.g. "CN=Adam Group 1,OU=Groups,O=dunnry,C=us" would become "dunnry.us\Adam Group" and "CN=GroupB,OU=Groups,OU=ParentGroups,DC=dunnry,DC=net" would be "dunnry.net\GroupB" for instance.&amp;nbsp; Would that work?&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1152.aspx</link><pubDate>Sat, 09 Jun 2007 05:08:28 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1152</guid><dc:creator>dunnry</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1152.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1152</wfw:commentRss><description>I agree, it is pretty ugly, but I am not sure what to do either.&amp;nbsp; Given that ',' characters are no good for the framework, we have to pick something.&amp;nbsp; It is the whole uniqueness problem that is biting us.&amp;nbsp; SIDs are unique, but wholly unmanageable.&amp;nbsp; The canonical name is good, but suffers from DN problems (moving).&amp;nbsp; I would have found this bug earlier, but I admit that I have written most of this provider with very little testing (well, my mind doesn't count, right?).&lt;br&gt;&lt;br&gt;If anyone has suggestions, goto codeplex.com/adrp and let me know... better yet, download the code, fix it, and then let me know so I can incorporate the patch.&lt;br&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1149.aspx</link><pubDate>Sat, 09 Jun 2007 02:35:20 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1149</guid><dc:creator>joe</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1149.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1149</wfw:commentRss><description>To me this is a problem with no obvious answer.&amp;nbsp; Maybe the canonicalName would be a good choice?&amp;nbsp; I don't like the CN idea as it isn't guaranteed unique, but the DN or SID aren't very good either.</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1142.aspx</link><pubDate>Fri, 08 Jun 2007 17:45:35 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1142</guid><dc:creator>dunnry</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1142.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1142</wfw:commentRss><description>Interesting.&amp;nbsp; I would say that we might have to modify the way the role provider returns the names and simply remove the commas or even just keep the CN portion only.&amp;nbsp; This way you don't have to worry about it.&amp;nbsp; It is not ideal of course since we want a global unique thing (like sAMAccountName) in ADAM, but also want to keep it somewhat reasonable to maintain (where the DN is a pain since it can move, though it is unique).&lt;br&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1133.aspx</link><pubDate>Wed, 06 Jun 2007 06:29:00 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1133</guid><dc:creator>omatrot</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1133.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1133</wfw:commentRss><description>&lt;P&gt;The provider is the one that Ryan wrote. By goup name, I meant group identifier. I'll try with the SID.&lt;/P&gt;
&lt;P&gt;Thanks for that.&lt;/P&gt;</description></item><item><title>Re: ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1131.aspx</link><pubDate>Wed, 06 Jun 2007 05:02:00 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1131</guid><dc:creator>joe</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1131.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1131</wfw:commentRss><description>&lt;P&gt;Which ActiveDirectoryRoleProvider is that?&amp;nbsp; Is that the experimental one that Ryan wrote or something else?&amp;nbsp; AFAIK, MS doesn't ship one with ASP.NET (just the membership provider).&lt;/P&gt;
&lt;P&gt;The problem with ADAM and groups is that there is no other unique identifier for ADAM groups beside the DN and the SID.&amp;nbsp; With AD groups, you have the NT name (domain\sAMAccountName), but ADAM doesn't have an equivalent.&lt;/P&gt;
&lt;P&gt;As such, there isn't an obvious answer as to what that name should be here.&amp;nbsp; What friendly name would you want to use for the group?&lt;/P&gt;</description></item><item><title>ActiveDirectoryRoleProvider and ADAM : IsUserInRole problem</title><link>http://directoryprogramming.com/forums/thread/1126.aspx</link><pubDate>Tue, 05 Jun 2007 13:25:45 GMT</pubDate><guid isPermaLink="false">993e16e6-abec-4cf1-b371-d5192834e122:1126</guid><dc:creator>omatrot</dc:creator><slash:comments>0</slash:comments><comments>http://directoryprogramming.com/forums/thread/1126.aspx</comments><wfw:commentRss>http://directoryprogramming.com/forums/commentrss.aspx?SectionID=9&amp;PostID=1126</wfw:commentRss><description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm using ActiveDirectoryRoleProvider in conjonction with ADAM.&lt;/P&gt;
&lt;P&gt;I have a problem using IsUserInRole, with the parameter 'roleName' set to a group DN. The following Exception is thrown&amp;nbsp;: "The parameter 'roleName' must not contains commas".&lt;/P&gt;
&lt;P&gt;System.Web.Util.SecUtility.CheckParameter(String&amp;amp; param, Boolean checkForNull, Boolean checkIfEmpty, Boolean checkForCommas, Int32 maxSize, String paramName) +757969&lt;BR&gt;&amp;nbsp;&amp;nbsp; System.Web.Security.Roles.IsUserInRole(String username, String roleName) +217&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;My question is how can I specify a group name without using a DN when using ADAM ?&lt;/P&gt;
&lt;P&gt;TIA.&lt;/P&gt;</description></item></channel></rss>