Wednesday, February 20, 2008

Join Ubuntu fiesty (7.04) ke domain SME Server

package yang dibutuhkan adalah
1. smbfs
2. winbind
3. libpam-mount

hal yang perlu dimodifikasi adalah
1. samba- /etc/samba/smb.conf
masukkan script berikut di smb.conf
workgroup = vaidmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
template homedir = /home/%D/%U
winbind enum users=yes
winbind enum groups = yes
winbind cache time = 20
winbind separator = +
password server = *
security = domain
winbind use default domain = yes

2. /etc/nsswitch.conf
passwd: compat
group: compat

ganti dengan
passwd: compat winbind
group: compat winbind

3. /etc/pam.d - edit the following files:
common-account:

account sufficient pam_unix.so
account required pam_winbind.so

common-auth:

auth required pam_unix.so
auth sufficient pam_winbind.so use_first_pass
auth required pam_unix.so use_first_pass

common-session:

session required pam_unix.so
session required pam_mkhomedir.so umask=0022 skel=/etc/skel/
session optional pam_mount.so

4 di SME box ketikkan command berikut;

signal-event machine-account-create clientname$
smbpasswd -a -m clientname$ ( atau pdbedit -a -m clientname$)

5. Join ke domain dan lakukan pengetesan

NOTE: winbind harus running (/etc/init.d/winbind start),
net rpc join -D va -U admin

Test dengan:
wbinfo -u
wbinfo -g


perintah diatas akan menampilkan seluruh nama user di domain VA


selamat mencoba

1 comment:

Unknown said...

thanks infonya mas..boleh khan kapan2 konsultasi sama mas tentang linux...maklum masih nubie neeh..