1755490 Members
3957 Online
108834 Solutions
New Discussion юеВ

plz help me config samba

 
Maaz
Valued Contributor

plz help me config samba

Dear All
I have to configure the samba server, as a file server for windows xp client computers, in a MS Active Directory based network.
All the users have account in Active Directory(the dc is Windows 2003 server).
Now plz help me how to config the samba, so that when a network user(AD user), access the files/folders on the file server(samba), file server authenticates the user frm Active Directory.

Plz help
Regards
Maaz
2 REPLIES 2
Maaz
Valued Contributor

Re: plz help me config samba

I did the following but no success

domain controller fqdn is : srv254.mydomainname.com.local
srv254.mydomainname.com.local IP: 192.168.1.102
samba server hostname is: fs1

What I did:
Ok I have done the following

1, add in /etc/hosts
srv254.mydomainname.com.local 192.168.1.102

2, add the following lines in smb.conf
workgroup = mydomainname
realm = MYDOMAINNAME.COM.LOCAL
security = ADS
encrypt passwords = yes
password server = srv254.mydomainname.com.local
.
.
.
[data]
path = /mnt
read only = no
create mask = 0664

4, then on samb server, ran the following commands:
To create a computer account
#net RPC JOIN -U administrator%adminpasswd
Joined domain MYDOMAINNAME.
Ok, then
# net ADS JOIN -S srv254.mydomainname.com.local -U administrator
administator's password:
[2007/02/28 14:38:45, 0] libads/kerberos.c:ads_kinit_password(206)
kerberos_kinit_password administator@MYDOMAINNAME.COM.LOCAL failed: Cannot resolve network address for KDC in requested realm
[2007/02/28 14:38:45, 0] utils/net_ads.c:ads_startup(193)
ads_connect: Cannot resolve network address for KDC in requested realm

5, Even the above eror I start samba
#rcsmb start (samb starts successfuly)

6, on a windows XP machine, I logged on the domain with the admin account, then
start > run > \\fs1\data
samba server ask for User Name, and password
i provide the admin userid, and password ... but no succes

Plz help
Ivan Ferreira
Honored Contributor

Re: plz help me config samba

What is your /etc/krb5.conf configuration? Did you configured that file? See chapter 6 of SAMBA 3 HOWTO.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?