The vCloud Usage Meter appliance ships with a local LDAP name service daemon. To provide identity management and authentication services through an external Active Directory service, you edit the /etc/nslcd.conf file with the Active Directory connection configuration and additional properties. To provide authentication through both Active Directory and local user account, you then configure the local Name Service Switch.
Procedure
- Login to the vCloud Usage Meter console as usagemeter.
- Reconfigure the local LDAP name service daemon.
- Navigate to the /etc folder.
cd /etc
- Open the nslcd.conf file for editing.
sudo vi nslcd.conf
- Add the Active Directory connection properties.
uri ldap://ldap.acme.com base dc=acme,dc=com binddn <your username>@acme.com bindpw <your AD password>
- Configure the Active Directory mappings.
# Mappings for Active Directory referrals off idle_timelimit 800 filter passwd (&(objectClass=user)(objectClass=person)(!(objectClass=computer))) map passwd uid cn
- Save the /etc/nslcd.conf file.
:wq!
- Restart the nslcd service.
sudo systemctl restart nslcd
- Navigate to the /etc folder.
- Activate Active Directory as a Name Service Switch source.
- Open the /etc/nsswitch.conf file for editing.
sudo vi nsswitch.conf
- Add LDAP as a source after local lookups for at least the passwd, group, and shadow types.
passwd: files ldap group: files ldap shadow: files ldap
- Save the /etc/nsswitch.conf file.
:wq!
- Open the /etc/nsswitch.conf file for editing.