Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

session setup failed: NT_STATUS_NO_LOGON_SERVERS 3

Status
Not open for further replies.

delfy

MIS
Feb 8, 2005
96
JM
when i try: smbclient -L localhost

i get: session setup failed: NT_STATUS_NO_LOGON_SERVERS

here is my smb.conf

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-11-11

[global]
# domain name
workgroup = rockstarml

# name of computer
netbios name = esus

# server string is the equivalent of nt description field
server string = SUSE LINUX

# Create seperate log files for each machine that connects
log file = /var/log/samba/log.%m

# max log file size
max log size = 500

# How users are authenticated
security = domain
password server =*

encrypt passwords = yes
smbpasswd file = /etc/samba/smbpasswd

null passwords = yes

# printing = cups
# printcap name = cups
# printcap cache time = 750
# cups options = raw
# map to guest = Bad User
# include = /etc/samba/dhcp.conf
# logon path = \\%L\profiles\.msprofile
# logon home = \\%L\%U\.9xprofile
# logon drive = P:
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
# domain logons = yes
domain master = No

[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes
#[profiles]
# comment = Network Profiles Service
# path = %H
# read only = No
# store dos attributes = Yes
# create mask = 0600
# directory mask = 0700
#[users]
# comment = All users
# path = /home
# read only = No
# inherit acls = Yes
# veto files = /aquota.user/groups/shares/
#[groups]
# comment = All groups
# path = /home/groups
# read only = No
# inherit acls = Yes
#[printers]
# comment = All Printers
# path = /var/tmp
# printable = Yes
# create mask = 0600
# browseable = No
#[print$]
# comment = Printer Drivers
# path = /var/lib/samba/drivers
# write list = @ntadmin root
# force group = ntadmin
# create mask = 0664
# directory mask = 0775

# Public share for platinum and windows installation
[apps]
comment = PFW
path = /home/data/apps
public = yes
writeable = yes
only guest = yes

# General Share Directory
[share]
comment = PUBLIC SHARE
path = /home/share
public = yes
browseable = yes
writeable = yes
only guest = no
create mask = 0777

# share directory for peachtree
[peachw]
comment = peachtree
path = /home/peachw
public = yes
writeable = yes
only guest = no
create mask = 0777


when i run /usr/bin/testparm everything seems ok.
i can see the samba server on my netwrok places but i can't access any of the shares anybody here good with samba who has time to help?
 
Can you ping the domain controller of the domain?
I was thinking maybe DNS is a problem.



"If you always do what you've always done, you will always be where you've always been."
 
well no i can't ping the domain controller by name only by ip
 
Then it's a dns problem.


BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
Why give the star to BocaBurger ???!!!
Its rzs0502 that solved it !!!

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
hold on but how do i solve the problem???? i tried putting entries in the /etc/hosts file and now i can ping the domain controller by name or but the problem still persists
 
Adding the entrie(s) in /etc/hosts may not solve it.
Ideally, your DNS servers and domain suffix should be added to /etc/resolv.conf
eg.
#DNS Servers
nameserver x.x.x.x
nameserver x.x.x.x
search mydomain.co.za mydomain2.com

And /etc/nsswitch.conf should have something like:
hosts = local, bind, nis

I've seen this error before on a high debug level.
If the name of the PDC's are not exactly as they are represented internally, the Windows PDC will disregard the request.


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
I get a star because of my signature :)

Kenjutsu anyone?



BocaBurger
<===========================||////////////////|0
The pen is mightier than the sword, but the sword hurts more!
 
ok i put the ip of my password server in my samba file and i am getting a login prompt how can i enable users the see the public share
 
Your config does not seem to have a user map file.
In the [global] section of your smb.conf add:

username map = /somepath/user.map

In there, add
unixusername = ntdomain\ntusername



&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
ok cool when i added the users using smbpasswd and i am fine now
 
Also remember that adding users using smbpasswd creates users within the local Samba security database.
This is normally used when you have
security = user or share
Since you are using domain authentication, you don't need to create Samba accounts.
Just a Unix user and the username mapping to the Windows account in the user map file.


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top