LDAP authentication fails with the final release version of ASP.Ne

Discussion in 'ASP .Net' started by =?Utf-8?B?cmFqZW5zMDA=?=, Nov 7, 2005.

  1. LDAP authentication fails with the final release version of ASP.Net 2.0 (and
    Beta 2 also).
    I suspect it's a legit bug. Any ideas how to report it??

    The following code works fine with Framework 1.1 yet fails with 2.0:

    string strPath = "LDAP://ldap-3.directory.enterprise.mydomain.gov/";
    string strDir = "ou=People,ou=My Agency,ou=My Department,o=U.S.
    Government,c=US";
    DirectoryEntry mySearchRoot = new DirectoryEntry(strPath + strDir);
    mySearchRoot.Username = "cn=ES Tracker,ou=Consumers,ou=Services,ou=My
    Agency,ou=My Department,o=U.S. Government,c=US";
    mySearchRoot.Password = "xxxx";
    DirectorySearcher myDirectorySearcher = new DirectorySearcher(mySearchRoot);
    myDirectorySearcher.PropertiesToLoad.Add("givenName");
    myDirectorySearcher.PropertiesToLoad.Add("mail");
    myDirectorySearcher.Filter = "(uniqueIdentifier=" + sSEID + ")";
    try
    {
    SearchResult result = myDirectorySearcher.FindOne();
    =?Utf-8?B?cmFqZW5zMDA=?=, Nov 7, 2005
    #1
    1. Advertising

  2. Post your question to the security GROUP.
    Cya there.
    Patrick

    "rajens00" <> wrote in message
    news:...
    > LDAP authentication fails with the final release version of ASP.Net 2.0

    (and
    > Beta 2 also).
    > I suspect it's a legit bug. Any ideas how to report it??
    >
    > The following code works fine with Framework 1.1 yet fails with 2.0:
    >
    > string strPath = "LDAP://ldap-3.directory.enterprise.mydomain.gov/";
    > string strDir = "ou=People,ou=My Agency,ou=My Department,o=U.S.
    > Government,c=US";
    > DirectoryEntry mySearchRoot = new DirectoryEntry(strPath + strDir);
    > mySearchRoot.Username = "cn=ES Tracker,ou=Consumers,ou=Services,ou=My
    > Agency,ou=My Department,o=U.S. Government,c=US";
    > mySearchRoot.Password = "xxxx";
    > DirectorySearcher myDirectorySearcher = new

    DirectorySearcher(mySearchRoot);
    > myDirectorySearcher.PropertiesToLoad.Add("givenName");
    > myDirectorySearcher.PropertiesToLoad.Add("mail");
    > myDirectorySearcher.Filter = "(uniqueIdentifier=" + sSEID + ")";
    > try
    > {
    > SearchResult result = myDirectorySearcher.FindOne();
    Patrick.O.Ige, Nov 8, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Saunders
    Replies:
    1
    Views:
    656
    John Saunders
    Nov 18, 2003
  2. P Webster
    Replies:
    2
    Views:
    11,050
    P Webster
    Mar 25, 2006
  3. Anbu
    Replies:
    2
    Views:
    3,595
    Erik Funkenbusch
    Apr 12, 2006
  4. V Green
    Replies:
    0
    Views:
    826
    V Green
    Feb 5, 2008
  5. PA Bear [MS MVP]
    Replies:
    0
    Views:
    931
    PA Bear [MS MVP]
    Feb 5, 2008
Loading...

Share This Page