How to Authenticate Lotus LDAP Directory in asp.net web Application


dear all,

have requirement authenticate web application using ldap authentication against lotus notes(not active directory).

besides list of user ldap. i able list of users ldap using following class

ldapconnection

searchrequest 

searchresponse 

searchresultentrycollection 

don't know how authenticate user ldap password. able validate user id.

whether password can taken?

how find encryption have used.

kindly guide me on same.

many suggest following code, not validating users' password rather user alone. password given in code used binding ldap directory. 

public bool isauthenticated(string domain, string username, string pwd)
    {
      string domainandusername = domain + @"\" + username;
      directoryentry entry = new directoryentry(_path, domainandusername, pwd);

      try
      {
        //bind native adsobject force authentication.
        object obj = entry.nativeobject;

        directorysearcher search = new directorysearcher(entry);

        search.filter = "(samaccountname=" + username + ")";
        search.propertiestoload.add("cn");
        searchresult result = search.findone();

        if(null == result)
        {
          return false;
        }

        //update new path user in directory.
        _path = result.path;
        _filterattribute = (string)result.properties["cn"][0];
      }
      catch (exception ex)
      {
        throw new exception("error authenticating user. " + ex.message);
      }

      return true;
    }



with regards

palanivelrajan


this forum directly relates microsoft active directory , related ldap questions. since question involved lotus, assume it's similar, however, think it would better answered elsewhere, unless someone's had lotus asp ldap auth experience in forum. otherwise, recommend forum related lotus notes.

see if following help:

ibm lotus notes forum
"join our public discussion forums, community meets discuss lotus , related products, expand knowledge, ..."
http://www.ibm.com/developerworks/lotus/community/

.

a method ldap authentication lotus domino
http://crashtestchix.com/2009/02/23/a-method-for-ldap-authentication-with-lotus-domino/

.

directory assistance , client authentication - lotus notes
"to authenticate user accessing database on ibm<sup>®</sup> lotus<sup>®</sup> domino<sup>®</sup> server via of supported internet protocols -- web (http), imap, pop3, or ldap -- server can users' credentials in directory configured in directory assistance database. "
http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2fcom.ibm.help.domino.admin.doc%2fdoc%2fh_planning_to_use_directory_assistance_for_internet_client_authentication_steps.html

.

how authenticate lotus ldap directory in asp.net web application (i see post in forum):
http://forums.asp.net/t/1863440.aspx/1?how+to+authenticate+lotus+ldap+directory+in+asp+net+web+application+

.


ace fekay
mvp, mct, mcitp/ea, mcts windows 2008/r2 & exchange 2007, exchange 2010 ea, mcse & mcsa 2003/2000, mcsa messaging 2003
microsoft certified trainer
microsoft mvp - directory services
technical blogs & videos: http://www.delawarecountycomputerconsulting.com/

this post provided as-is no warranties or guarantees , confers no rights.

facebook twitter linkedin



Windows Server  >  Directory Services



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client