- Install samba
- aptitude install smaba samba-doc smbldap-tools
- Workgroup/Domain Name: NIG
- Modify smb.conf to use WINS settings from DHCP?: No
- dpkg-reconfigure samba
- How to run Samba: daemons
- Create password database: Yes
- aptitude install smaba samba-doc smbldap-tools
- Enable samba.schema in LDAP server
- aptitude install samba-dodc
- cd /usr/share/doc/samba-doc/examples/LDAP
- gunzip samba.schema.gz
- cp samba.schema /etc/ldap/schema/samba.schema
- vim /etc/ldap/slapd.conf
- include /etc/ldap/schema/samba.schema
- /etc/init.d/slapd restart
- Let Samba use LDAP as backend
- vim /etc/samba/smb.conf
- passdb backend = ldapsam:ldap://localhost
- ldap suffix = dc=neuroimaging,dc=org,dc=au
- ldap machine suffix = ou=SMBMachines
- ldap user suffix = ou=People
- ldap group suffix = ou=Group
- ldap admin dn = cn=admin,dc=neuroimaging,dc=org,dc=au
- ldap delete dn = no
- ldap ssl = start_tls
- vim /etc/samba/smb.conf
- Configure smbldap-tools package
- aptitude install smbldap-tools
- cp /usr/share/doc/smbldap-tools/examples/smbldap_bind.conf /etc/smbldap-tools/
- gzip /usr/share/doc/smbldap-tools/examples/smbldap.conf.gz
- cp /usr/share/doc/smbldap-tools/examples/smbldap.conf /etc/smbldap-tools/
- vi /etc/smbldap-tools/smbldap_bind.conf
- vi /etc/smbldap-tools/smbldap.conf
- vi /etc/samba/smb.conf
- Note: read /usr/share/doc/smbldap-tools/
- Important:
- To change rootpw of the binddn cn=admin,dc=example,dc=org, you need
- smbldap-passwd
- edit /etc/smbldap-tools/smbldap_bind.conf
- smbpasswd -w <ldap_rootpw>
- To change rootpw of the binddn cn=admin,dc=example,dc=org, you need
Search This Blog
Debian Samba Server Setup
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment