Authenticate through openldapFor linux machines
To authenticate users on Windows machines, the windows machine must join the domain created by samba server (i.e. BLUEPRINT-NT). To join this domain, login to the computer using the administrator account. Then right click my computer icon and select Properties-> Computer Name -> Change. In the new window, specify the computer name and the domain name (BLUEPRINT-NT) and click OK. A new window would pop out asking for the username and password of the domain controller. Enter the root user and its password (or any other samba users), and the computer will join the new domain. Restart the computer to let the change take effect.
Restrict user logon on particular machineIn some cases only a subset of users are allowed to logon to certain machines. This can be done through pam_filter or by enabling pam_check_host_attr in the /etc/ldap.conf Use pam_filterPam fileter would apply a filter to the uids to limit the users that could login into the machine. Varies types of criteria could be used by pam_filter. To use pam_filter, just add the filter to the /etc/ldap.conf file. For example, in order to restrict logins to a machine to users belongs to the group "512" the following filter can be applied:pam_filter gid=512 Use host attributeEnabling pam_check_host_attr directive in the /etc/ldap.conf would let pam to check values of hosts attribute in the users' account and only allow the users whose hosts values contain the hostname of the machine to login. This way of ristriction is not prefered because it results complication in authentication process and the hosts attribute is not supported by smbldap-tools, so manual modification of openldap directory is required. |