none
LDAP authentication RRS feed

  • Question

  • Hi I am trying to authenticate user through LDAP. infoback  :=    This is my line of code to authenticate.   It is giving "An invalid dn syntax has been specified" error. But is very much correct i know because it is able to bind as anonymous user but not with user credentials.   Please help!!   Thanks in Advance

    • Moved by Just KarlModerator Wednesday, August 31, 2016 1:46 PM Looking for the correct forum.
    • Edited by Syed06 Friday, November 11, 2016 6:50 AM
    Tuesday, August 30, 2016 9:02 AM

Answers

  • Hello,

    You might ask in the Visual C++ Language forum on MSDN.

    Is pUser a distinguished name? If so, that may be the invalid dn syntax.

    You really didn't give enough information to tell what the problem is.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, August 31, 2016 1:46 PM
    Moderator

All replies

  • Hello,

    The 'Academic Initiatives - Technical Queries' forum is for posts Related to technical / coding / programming related issues as related to Microsoft's Academic Initiatives.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, August 31, 2016 1:38 PM
    Moderator
  • Hello,

    You might ask in the Visual C++ Language forum on MSDN.

    Is pUser a distinguished name? If so, that may be the invalid dn syntax.

    You really didn't give enough information to tell what the problem is.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Wednesday, August 31, 2016 1:46 PM
    Moderator
  • Just Karl-- Could you please delete this post
    Friday, November 11, 2016 10:45 AM
  • Good day Syed,

    What is the reason to delete this thread?

    If there is no good reason, then simply close it by marking one (or more) of the responses you got, or if you really do not want to mark any, then you change the type of the thread to "discussion". The thread will move to the back of the forum and will be forgotten in time :-) 


    signature   Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]    [Linkedin]

    Sunday, November 13, 2016 5:00 PM
    Moderator