ASP / LDAP Authentication

Discussion in 'ASP General' started by Zak Humphries, Aug 24, 2004.

  1. Hello,

    I was wondering if anyone can help with this, im trying to write some asp to
    allow a select number of users to update certain values in Active Directory,
    the problem I have is passing the right credentials to AD.

    if I use GetObject, or OpenDSObject it uses the credenitals of the
    webserver, which is no good. Is there anyway I can pass the currenltly
    logged on credentials to these functions, or is the only way I can do this
    to specify the username/password during the bind, like in the following
    example.


    Set oNamesp = GetObject("LDAP:")
    Set oObj = oNamesp.OpenDSObject("LDAP://" & request.QueryString("DN"),
    "administrator CN", "password",ADS_SECURE_AUTHENTICATION)
    oObj.put "givenName", "Jane"
    oObj.setinfo

    Any help would be greatly appreciated.
     
    Zak Humphries, Aug 24, 2004
    #1
    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. Replies:
    1
    Views:
    555
    Raymond DeCampo
    Feb 21, 2006
  2. rcmn
    Replies:
    1
    Views:
    375
    =?ISO-8859-1?Q?Michael_Str=F6der?=
    Nov 6, 2006
  3. Jason Wold

    using LDAP Controls in ruby-ldap

    Jason Wold, Nov 4, 2004, in forum: Ruby
    Replies:
    5
    Views:
    281
  4. Ian Macdonald
    Replies:
    0
    Views:
    239
    Ian Macdonald
    Mar 15, 2005
  5. James Hughes
    Replies:
    4
    Views:
    351
    James Hughes
    Dec 13, 2005
Loading...

Share This Page