Answered by:
LDAP authentication

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
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$_"}})- Proposed as answer by Dave PatrickMVP Wednesday, August 31, 2016 2:50 PM
- Marked as answer by Dave PatrickMVP Monday, September 12, 2016 2:53 AM
- Unmarked as answer by Syed06 Friday, November 11, 2016 10:39 AM
- Marked as answer by Dave PatrickMVP Thursday, November 17, 2016 2:26 PM
Wednesday, August 31, 2016 1:46 PM
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 -
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$_"}})- Proposed as answer by Dave PatrickMVP Wednesday, August 31, 2016 2:50 PM
- Marked as answer by Dave PatrickMVP Monday, September 12, 2016 2:53 AM
- Unmarked as answer by Syed06 Friday, November 11, 2016 10:39 AM
- Marked as answer by Dave PatrickMVP Thursday, November 17, 2016 2:26 PM
Wednesday, August 31, 2016 1:46 PM -
Just Karl-- Could you please delete this postFriday, 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 :-)
Ronen Ariely
[Personal Site] [Blog] [Facebook] [Linkedin]Sunday, November 13, 2016 5:00 PM