Setting Up CIFS Server (Samba) In an LDAP Environment
Setting Up CIFS Server (Samba) in an LDAP Environment
12
To customize the names for your CIFS Server groups:
Replace the following texts with the names YOU are using in your LDAP directory:
_USERS_
_GROUPS_
_COMPUTERS_
(For instance, _USERS_ = People,
_GROUPS_= Group,
_COMPUTERS_= Computers
To customize for your posix and CIFS Server variables (these variables are used when
creating a new CIFS Server user for defaults):
$_userLoginShell = q( _USERLOGINSHELL_) (for instance /usr/bin/sh)
$_userHomePrefix= q(_USERHOMEPREFIX_) (for instance /home/)
$_userHomeDrive = q(_HOMEDRIVE_:) (for instance U:)
$_userProfile = q(\\\\_PDCNAME_\\profiles\\) (for instance \\\\rkm-nt\\profiles\\)
$_userSmbHome = q(\\\\_PDCNAME_\\homes) (for instance \\\\rkm-nt\\homes\\)
Sourcing select parameters from smb.conf instead of
smbldap_conf.pm
NOTE: you can use the ā-Sā parameter in the scripts to force the scripts to pull
$slaveLDAP
$masterLDAP
$suffix
$binddn
configuration information from the smb.conf file instead of the smbldap_conf.pm file.
This is recommended, since putting your bindpasswd into the smbldap_conf.pm file is
NOT secure; each of the smbldap-tools scripts have a command line option ā-wā that
will allow you to pass the password via the commandline, rather than having it
hardcoded in the .pm file. This is the recommended way of supplying your Directory
Manager password.
Part Five: Installing your CIFS Server users in
the directory
Storing your CIFS Server LDAP credentials