-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAPCPSE An item with LDAP newAttribute 'userPrincipalName' and LDAP class 'user' already exists for the object type 'User' #204
Comments
@Paconaut to understand your scenario, can you please send the output of those commands: Add-Type -AssemblyName "Yvand.LDAPCPSE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740"
$config = [Yvand.LdapClaimsProvider.LDAPCPSE]::GetConfiguration()
$config.Settings.ClaimTypes | ft LDAPAttribute, EntityType, ClaimType, UseMainClaimTypeOfDirectoryObject $trust = Get-SPTrustedIdentityTokenIssuer "YOUR_SPTRUST_NAME"
$trust.ClaimTypeInformation | fl MappedClaimType, IsIdentityClaim |
@Yvand Thanks for your help! [Yvand.LdapClaimsProvider.LDAPCPSE]::GetConfiguration() return nothing MappedClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/UPN MappedClaimType : http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress MappedClaimType : http://schemas.microsoft.com/ws/2008/06/identity/claims/role |
Can you try to create the configuration using this command: [Yvand.LdapClaimsProvider.LDAPCPSE]::CreateConfiguration() |
Exception calling "CreateConfiguration" with "0" argument(s): "An item with LDAP newAttribute 'userPrincipalName' and LDAP class 'user' already exists for the object type 'User'" |
Definitely looks like a bug, I will try to repro using the same claim types in the trust and come back to you, most likely next week. |
I excluded emailaddress but still the same error messages in central admin and PowerShell. |
@Paconaut FYI, I was able to repro exactly the same error, I'll investigate and report the progress in this thread |
I confirm this is a bug, fixed in #205 |
More info: It happens becaue you claim type |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
Hi @Yvand
Appreciate if you can help me understand why I get the following error preventing me from opening Global configuration and Mapping of permissions under SharePoint Server 2019 central admin after installing LDAPCPSE v17.0.20240226.2:
"An item with LDAP newAttribute 'userPrincipalName' and LDAP class 'user' already exists for the object type 'User'"
LDAPCP Classic uninstalled by following the documentation.
Thanks in advance!
The text was updated successfully, but these errors were encountered: