With the widespread adoption of Microsoft Office 365, many customers are looking for a more unified login experience to access all the applications and resources available to them. When a user logs in, they are prompted to authenticate with their email address and password, which raised a similar question for a NetScaler customer who logs in the traditional way with their username and password.
“What if I also want my NetScaler users to authenticate with their email address?”
Here are the steps to configuring a seamless unified login experience:
(Keep in mind that the user can continue logging in the traditional way with their username and password if they choose)
Once this is bound, a user can login the traditional way with their username and password or with their email address and password.
If a user chooses to log in with their email address, it will skip over the LDAP policy, using the sAMAccountName as the logon attribute and authenticate the user with the mail logon attribute.
Finally, below is the NetScaler configuration that I’ve exported for both authentication servers and policies that you’ll have to tailor to your environment. Hopefully this helps in your travels!
add authentication ldapAction 192.168.1.100_LDAPS_mail -serverIP 192.168.1.100 -serverPort 636 -ldapBase "DC=domain,DC=local" -ldapBindDn svc_NetScaler@domain.local -ldapBindDnPassword <Password> -encrypted -encryptmethod ENCMTHD_3 -ldapLoginName mail -groupAttrName memberOf -subAttributeName cn -secType SSL -ssoNameAttribute samAccountName -passwdChange ENABLED
add authentication ldapAction 192.168.1.100_LDAPS_sAM -serverIP 192.168.1.100 -serverPort 636 -ldapBase "DC=domain,DC=local" -ldapBindDn svc_NetScaler@domain.local -ldapBindDnPassword <Password> -encrypted -encryptmethod ENCMTHD_3 -ldapLoginName sAMAccountName -groupAttrName memberOf -subAttributeName cn -secType SSL -passwdChange ENABLED
add authentication ldapPolicy LDAPS_pol_mail ns_true 192.168.1.100_LDAPS_mail
add authentication ldapPolicy LDAPS_pol_sAM ns_true 192.168.1.100_LDAPS_sAM
bind vpn vserver NS_GW_gateway.domain.com-Int_443 -policy LDAPS_pol_mail -priority 100
bind vpn vserver NS_GW_gateway.domain.com-Int_443 -policy LDAPS_pol_sAM -priority 110