Customize the username in Portal using LDAP

634
0
09-25-2018 10:15 AM
Luis_DiegoVargas1
Esri Contributor

Hello,

When the user and group stores are set to WINDOWS, the @DOMAIN is always added to the end of the enterprise usernames that are added through "Add members based on existing enterprise users"

When you switch to LDAP, you have more flexibility because you can set this attribute; but, I can customize this username? or concat some attributes? or adding more attibutes? (this JSON dont work, its just an example).

{

  "type": "LDAP",

  "properties": {

    "userPassword": "abcd123",

    "caseSensitive": "true",

    "userEmailAttribute": "mail",

    "usernameAttribute": "sAMAccountName+@DOMAIN",

    "user": "domain\\user",

    "userFullnameAttribute": "cn",

    "ldapURLForUsers": "ldap://1.1.1.1:389/DC=domain",

    "isPasswordEncrypted": "false"

  }

}

The idea, its that the end user will login with the same structure that using WINDOWS authentication, username@DOMAIN

We have a end user with two portals, one using WINDOWS authentication and other in the DMZ running on Linux, and they want use the same username for both (username@DOMAIN).

Regards.

Tags (3)
0 Replies