• Home
  • XACML
    • XACML Policy Editors
    • XACML Samples
    • XACML Performance
    • XACML Discussions
    • Balana
  • SAML2
  • OAuth2
  • OpenID-Connect
  • SCIM
  • WS-Security
  • User Management
  • KeyStore Management
  • Patterns
  • WSO2
    • WSO2IS
    • WSO2APIM
    • WSO2ESB
    • WSO2 Extension
    • Load Balance
    • Clustering
    • Multitenancy
  • Shibboleth
  • Contact Us

Authenticating to WSO2 products with different attributes in LDAP

In LDAP user object contains different attributes such as uid, cn , email and so on. Some of the attributes can be unique. As an example normally uid and email can be unique attributes for user.

Once you connect your LDAP with an application, application can use one of unique attribute in LDAP to authenticate the user (as the user name of user). It can be uid or mail attribute. Also in some cases, application can uses both attributes. It means, end users can use both uid or mail to authenticate.

WSO2 Identity Server can be deployed with any LDAP based server and it can expose authentication via Web Service API, SAML, OAuth, OpenID and more… By default, Identity Server has been configured to authenticate with only one user attribute in the LDAP. Let see how can extend it for more than one attribute.

Assume, we need that users could be authenticated with both uid and mail attribute in the LDAP.

Step1. Configure LDAP user store related configurations using user-mgt.xml file which can be found at IS_HOME/repository/conf

1. Configure UserNameSearchFilter that helps to search user object using both mail and uid.

<Property name="UserNameSearchFilter">(&(objectClass=person)(|(mail=?)(uid=?)))</Property>

2. Disable UserDNPattern property, If it is already enabled.

<!--Property name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org</Property-->

3. (Optional) Only if you are using the mail attribute, You need to open carbon.xml file which can be found at IS_HOME/repository/conf and uncomment.  You can find more about using email usernames properly in WSO2 products from here

<EnableEmailUserName>true</EnableEmailUserName>

Step2. Verification. You can restart the Identity Server and try to login to management console by providing both mail and uid with same password. You could login…   Also,  you can use SSO login with multiple attributes.  You can configure WSO2IS as SAML2 SSO IDP or OpenId-Connect Authorization Server and use  for SSO.

Share this:

  • Facebook
  • LinkedIn
  • Twitter
  • Tumblr
  • Pinterest

Related posts:

  1. Managing User Attributes With WSO2 Identity Server
  2. Email Username with WSO2 Identity Server
  3. Remote user management feature in WSO2 Carbon products.
  4. How to Implement Custom User Store Manager for WSO2 Servers
Discuss this article on Stack Overflow
Tags: LDAP, Login, Multiple Attribute Login, User Management, WSO2, WSO2IS
◀ How to Invoke Basic Auth Secured Backend Service from WSO2ESB
Troubleshooting SAML2 Web SSO Scenarios ▶

Related Posts (YARPP)

  1. SSL profiles in WSO2 ESB
  2. How Install PostgreSQL database in Ubuntu
  3. How to Deploy Axis2 services in WSO2 BPS
  4. Configure WSO2 Identity Server as SAML2 SSO IDP

Recent Posts

  • Exchanging An OAuth2 Access token for An OpenAM Cookie (Cookie base OAuth2 grant)
  • How to renew self signed certificate keeping old private key
  • JIT provisioning & user association with WSO2IS
  • Mutual SSL (X.509 Certificate) grant type for OAuth2
  • Service provider grouping with WSO2 Identity Server
  • Custom authenticator for WSO2 Identity Server (WSO2IS) SSO login
  • How to configure session time out in WSO2 Identity Server (WSO2IS)
  • Deployment pattern of WSO2 Identity Server in production
  • Resolving ERR_SSL_WEAK_EPHEMERAL_DH_KEY error in WSO2 Products (Server has a weak ephemeral Dillie-Heffman public key).
  • Custom notification module for account management in WSO2 Identity Server (WSO2IS)
  • Configure Multiple Federated Identity Providers with WSO2 Identity Server (WSO2IS).
  • Configure KeyStore (JKS) files in WSO2 products in Production
  • Secure WSO2 ESB proxy service with HTTP Basic Authentication.
  • How to enable Hash Passwords in OpenLDAP
  • How to Install OpenLDAP server
  • User Password Hashing with WSO2 Identity Server (WSO2IS)
  • Securing APIs using Mutual SSL with WSO2 API Manager.
  • Federated authenticators in WSO2 API Manager - WSO2APIM
  • [Federated Authentication] Integration OpenAM with WSO2IS using Openid-Connect
  • Openid-connect support with OpenAM
  • Granting different access tokens for each APIs in WSO2 APIM using OAuth2 Scopes
  • Federated Authentication for granting OAuth2 Access token with WSO2 API Manager (APIM)
  • SAML2 Signature validation tool for SAML2 Response and Assertion
  • Validate and Process JWT tokens with Java
  • Customizing SAML2 Response and SAML2 Assertion in WSO2

Like SOA Security

Like SOA Security

Tags

Admin Services Balana Cluster Clustering Custom Customizing Entitlement Federated Authentication Federation Pattern grant_type Hash Password Identity Server JKS KeyStore LDAP Load balance Load Balancer Login MDF Mutual SSL OAuth2 OpenAM Openid-Connent Open source PAP PDP PEP PIP Policy Editor Proxy Server SAML SAML2 SSL SSO User Management Username Token WS-Security WSO2 WSO2 Extension WSO2APIM WSO2ESB WSO2IS XACML XACML 3.0 XACML Sample

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 53 other subscribers

Asteroid Theme