This project has moved. For the latest updates, please go here.
1
Vote

ldapcp custom, people picker make a wrong format...

description

Hello,

I need some help about ldapcp custom, on sharepoint 2013.

When I try to deploy (the site url is ok) the project as it is I got the following error. I do not understant the error.

The code I try to run 'LDAPCP for Developers' just downloaded from the codeplex site.

Thank you for any help.
Claude

I run vstud 2015
Sharepoint 2013


------>
Severity Code Description Project File Line
Error The command ""C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\gacutil.exe" /f /i "D:\dvpl\ldapcpfromsite160913\LDAPCP 2013 for Developers\LDAPCP 2013 for Developers\bin\Debug\LDAPCP 2013 for Developers.dll"" exited with code 3. LDAPCP 2013 for Developers

<------

comments

csiefers wrote Oct 4, 2016 at 9:57 AM

Hello,

The problem is that when the people picker find users according to the filter of the ldapcp custom action, when I add the user found sharepoint creates a new one and not well formated.

Therefore it creates a mess in the users in the db creating duplicate users....

Has anybody met the same issue?

Kind regards.
Claude

csiefers wrote Oct 11, 2016 at 7:58 AM

Hello,

some help about this?

Kind regards.
Claude

Yvand wrote Oct 12, 2016 at 7:20 AM

Hello,
did you address the error with gacutil.exe? I think it can occur if you are not running Visual Studio as administrator.
Regarding the formatting of the user, can you be more specific on the exact problem?
thanks,
Yvan

csiefers wrote Oct 20, 2016 at 8:50 AM

Thank you for your interest Yvand.

1- I ran vis stud as admin.

2- The error scenario is has following:

1- I go to a sharepoint group.
2- I try to add a user to this group
3- The people picker show me some users according to the first letter I put.
4- I select one of those users.
5- The user is added to the group.
-> problem: at first sight all is good, but in fact this action with people picker has creayed in the db a new user with a wrong formated string:

the format expected is:
"i:Oe.t|dev_adfs|myuser@dev.mydomain.eu" but the format obtained is:
"i:Oe.t|dev_adfs|myuser myuser"

Context: sharepoint 2013

1- This occurs when ldapcp_custom is installed.
2- When ldapcp is install no such problem occurs.
3- In ldapcp custom I made multiple tests and code changes at 2 levels in the
class LDAPCP_Custom : LDAPCP
3.1 -> protected override void SetCustomConfiguration
3.2 -> protected override DirectoryEntry[] SetLDAPConnections

Could those change have generated this strange behaivior?

Kind regards.
Claude

Yvand wrote Oct 21, 2016 at 2:45 PM

It should not cause those issues, I understand the problem you describe but I don't understand how it can occur.
Can you check SharePoint logs and filter on product/area LDAPCP? You'll find the LDAP filter sent to LDAP server. Can you check if and ensure it sends expected query?