LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2012, 02:39 AM   #1
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
could not able to connect to samba server domain from windows xp


Hi all,

I have set up a samba server with openldap backend.samba and ldap integration part went fine.

In windows client i have added the machine to samba domain successfully .But when i try to login as my smbldap user in windows machine.its saying that the system could not log on because the domain not available.

Here the contents of my smb.con file

# Samba config file created using SWAT
# from UNKNOWN ()
# Date: 2009/06/22 21:47:29

[global]
dos charset = UTF-8
display charset = UTF-8
workgroup = olg
realm = olg.in
netbiosname = olgserver
server string = %h server
loglevel = 3
#map to guest = Bad User
security = domain
passdb backend = ldapsam:ldap://127.0.0.1/
pam password change = Yes
passwd program = /usr/sbin/smbldap-passwd -u %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated*
ldap password sync = Yes
#unix password sync = Yes
lanman auth = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
time server = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/smbldap-useradd -m %u
delete user script = /usr/sbin/smbldap-userdel %u
add group script = /usr/sbin/smbldap-groupadd -p %g
delete group script = /usr/sbin/smbldap-groupdel %g
add user to group script = /usr/sbin/smbldap-groupmod -m %u %g
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u""%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
logon script = logon.bat
logon path = \\%N\profiles\%U
logon drive = U:
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap admin dn = cn=admin,dc=olg,dc=in
ldap delete dn = Yes
ldap group suffix = ou=group
ldap idmap suffix = ou=idmap
ldap machine suffix = ou=computer
ldap suffix = dc=olg,dc=in
ldap ssl = no
ldap user suffix = ou=people
panic action = /usr/share/samba/panic-action %d
map acl inherit = Yes
case sensitive = No
hide unreadable = Yes
map hidden = Yes
map system = Yes

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0600
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[netlogon]
path = /var/lib/samba/netlogon
browseable = No
admin users = administrator, root
valid users = %U
read only = no

[profiles]
path = /var/lib/samba/profiles
force user = %U
read only = No
create mask = 0600
directory mask = 0700
guest ok = No
profile acls = Yes
browseable = No
csc policy = disable

[public]
path = /tmp
read only = No
guest ok = No

Nothing registered in logs too.I am clueless.Your suggestions please.


Thanks in advance,
Dinesh.
 
Old 04-28-2012, 03:01 AM   #2
root@linux
LQ Newbie
 
Registered: Aug 2011
Location: Pakistan
Distribution: Ubuntu
Posts: 11

Rep: Reputation: Disabled
make sure that workgroup of the system you are accessing from is same as your server.
 
Old 04-30-2012, 12:09 AM   #3
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271

Original Poster
Blog Entries: 7

Rep: Reputation: 18
Hi,

Its my mistake i have made some silly mistakes while integrating samba and ldap.Now i can able to join my windows machine to my samba domain.

So my request is if any one experience the same problem just check your smb.conf file for correct settings and make sure that that you have no errors while running "smbpopulate" and you needs to get the sid value with out any errors while executing "net getlocalsid" command.

Thanks & regards,
Dinesh.

Last edited by dinakumar12; 04-30-2012 at 12:13 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration