Samba PDC VM(squeeze)

提供: Samba-JP

We publish VMware VM image on which Samba PDC (with LDAP) is configured on Debian GNU/Linux 6.0.

We hope this VM will help to evaluate.

If you find any bugs or desire, please mail to

There are older versions(sorry for Japanese only):

Japanese text are available.


You may download the VM image at:


  • Acts as PDC of "SAMBADOM" domain
Uses Samba 3.5.6 included in Debian squeeze. Windows 7 can join to the domain.
  • Various settings are ready to examine various Samba functions easily. "How to examine and demonstrate" is under construction.
    • Can manage from Windows
The management tools are available at Windows NT Server Tools for Windows NT Workstation 4.0 Available .



item value
hostname sambapdc
DNS domainnamesambadom.local
LDAP DN dc=sambadom,dc=local
VMware virtual network NAT interface

Other settings

languageEnglish (C locale)
keyboardEnglish 101 keyboard
source of
root's passwordsamba

Packages installed

Packages are installed via "apt-get", thus packages depending on the installed packages below are also installed and you can also manage packages to use normal package management tools on Debian.

ftpftp client to receive files
aclgetfacl/setfacl commands manupulating ACL
attrattr command manupulating Extended Attributes
libcrack2library which forces complex passwords
libnss-ldapNSS module to store UNIX user informations on LDAP
libpam-ldapPAM modules to authenticate UNIX user using informations on LDAP
slapdLDAP server
ldap-utilsvarious commands manupulating LDAP
samba/winbindSamba server
libpam-smbpassPAM module to change Samba user's password when the corresponding UNIX user's password is changed
smbclientSamba client
swatSamba Web Administration Tool

ssh is not installed to reduce disk space. Please install if you need.

Files modified

/etc/hosts.allowto control SWAT access
/etc/logrotate.d/samba-syslog(added)log rotate settings for audit log
/etc/nsswitch.confNSS settings
/etc/pam.d/common-passwordPAM settings
/etc/pam.d/common-sessionPAM settings
/etc/rsyslog.d/samba.conf(added)audit log setting
/etc/samba/smbusers(added)username mapping file
/usr/local/sbin/crackcheck(added)to force complex password
/usr/local/sbin/createhomedir(added)to create homedir automatically
/usr/local/sbin/mgrshare(added)to manage shares from Windows
/usr/local/sbin/remove-old-files-in-recycle-binto remove old files from recycle bin
/usr/local/sbin/var-checka sample script to evaluate Samba variables
under /var/lib/samba/sharessample shares


  • Administrator (password is samba / has administrative rights)
  • ldap01(password is ldap01)
  • ldap02(password is ldap02)
  • ldap03(password is ldap03)


version 20110713

  • squeeze version