Re: [Samba] Server Maps by IP but not by Name for Domain Users

2008-10-14 Thread Matthew Lind
Update.

It seems as though this is not every client.  Only clients that specific
users log into and the problem is only for that user.

In other words it is an authentication problem with a set of my users
and it follows them from machine to machine.

wbinfo -u returns all the users even the ones having this issue.

Thanks again!

On Tue, 2008-10-14 at 18:11 +0200, Bruno La Torre wrote:
> on windows client nbtstat -a admin1 give you the ip of admin1
> 
> mh if  remember well, if you have a domain you must have a wins server.
> 
> sorry, I forgot the list :-(
> 
> Matthew Lind ha scritto:
> > We don't run the WINS service on our network.  We have no Win9x or
> > earlier clients.  All clients are Windows XP.
> >
> > However, to answer your question this is what I get on the server when I
> > run the nmblookup
> >
> > nmblookup admin1:
> > creating lame upcase table
> > creating lame lowcase table
> > querying admin1 on x.x.y.y
> > x.x.n.n admin1<00>
> >
> > nmblookup :
> > creating lame upcase table
> > creating lame lowcase table
> > querying admin1 on x.x.y.y
> > x.x.a.a <00>
> >
> > nmblookup doesn't work on Windows XP.
> >
> > Thanks again!
> >
> > On Tue, 2008-10-14 at 17:19 +0200, Bruno La Torre wrote:
> >   
> >> I thing that you have a WINS problem.
> >> nmblookup admin1 on the server and client give the rigth IP?
> >>
> >> Matthew Lind ha scritto:
> >> 
> >>> I gave that a shot and it was a no go.  Same errors are produced.
> >>>
> >>> Thanks!
> >>>
> >>> On Mon, 2008-10-13 at 13:57 -0500, Adam Williams wrote:
> >>>   
> >>>   
> >>>> add in your [global] section:
> >>>>
> >>>> msdfs root = yes
> >>>>
> >>>> restart samba, and then try connecting to your shares by server name 
> >>>> again.
> >>>>
> >>>> Matthew Lind wrote:
> >>>> 
> >>>> 
> >>>>> Hey all,
> >>>>>
> >>>>> I've got an issue with my Samba server.  I can't seem to get file shares
> >>>>> to map using Server Name, but I can get them to map using IP Address. 
> >>>>>
> >>>>> Here is my smb.conf:
> >>>>>
> >>>>> [global]
> >>>>>   workgroup = ADMIN
> >>>>>   server string = Snap Server
> >>>>>   timestamp logs = yes
> >>>>>   dos filetimes = yes
> >>>>>   dos filemode = yes
> >>>>>   inherit acls = yes
> >>>>>   name cache timeout = 0
> >>>>>   winbind uid = 101-600
> >>>>>   winbind gid = 101-600
> >>>>>   local master = No
> >>>>>   guest account = guest
> >>>>>   map to guest = Never
> >>>>>   unix charset = CP1252
> >>>>>   dos charset = CP850
> >>>>>   allow trusted domains = no
> >>>>>   security = ADS
> >>>>>   disable netbios = no
> >>>>>   password server = *
> >>>>>   encrypt passwords = Yes
> >>>>>   username level = 5
> >>>>>   debug level = 0
> >>>>>   load printers = no
> >>>>>   utmp directory = /var/run
> >>>>>   utmp = yes
> >>>>>   name resolve order = host lmhosts wins bcast
> >>>>>   ldap timeout = 5
> >>>>>   restrict anonymous = 2
> >>>>>   include = /etc/smb.conf.perm
> >>>>>   include = /etc/smb.conf.extra
> >>>>>   include = /etc/smb.conf.dm
> >>>>>   include = /etc/smb_shares.conf
> >>>>>
> >>>>> Here is my smb_shares.conf: *Note All shares follow this format and all 
> >>>>> seem affected I am just truncating *
> >>>>> ..snip..
> >>>>> [bordway]
> >>>>> path = /shares/bordway
> >>>>> read only = no
> >>>>> comment = 
> >>>>> follow symlinks = no
> >>>>> printable = no
> >>>>> browseable = yes
> >>>>> map acl inherit = yes
> >>>>> create mask = 0777
> >>>>> security mask = 0777
> >>>>> directory mask = 0777
> >>>>> directory security mask = 07

Re: [Samba] Server Maps by IP but not by Name for Domain Users

2008-10-14 Thread Matthew Lind
Here is the output from nbtstat -a 


   Name TypeStatus

ADMIN1 <00> UNIQUE  Registered
ADMIN1 <03> UNIQUE  Registered
ADMIN1 <20> UNIQUE  Registered
ADMIN  <00> GROUP   Registered
ADMIN1 <1E> GROUP   Registered

MAC Address = 

Thanks again!


On Tue, 2008-10-14 at 18:11 +0200, Bruno La Torre wrote:
> on windows client nbtstat -a admin1 give you the ip of admin1
> 
> mh if  remember well, if you have a domain you must have a wins server.
> 
> sorry, I forgot the list :-(
> 
> Matthew Lind ha scritto:
> > We don't run the WINS service on our network.  We have no Win9x or
> > earlier clients.  All clients are Windows XP.
> >
> > However, to answer your question this is what I get on the server when I
> > run the nmblookup
> >
> > nmblookup admin1:
> > creating lame upcase table
> > creating lame lowcase table
> > querying admin1 on x.x.y.y
> > x.x.n.n admin1<00>
> >
> > nmblookup :
> > creating lame upcase table
> > creating lame lowcase table
> > querying admin1 on x.x.y.y
> > x.x.a.a <00>
> >
> > nmblookup doesn't work on Windows XP.
> >
> > Thanks again!
> >
> > On Tue, 2008-10-14 at 17:19 +0200, Bruno La Torre wrote:
> >   
> >> I thing that you have a WINS problem.
> >> nmblookup admin1 on the server and client give the rigth IP?
> >>
> >> Matthew Lind ha scritto:
> >> 
> >>> I gave that a shot and it was a no go.  Same errors are produced.
> >>>
> >>> Thanks!
> >>>
> >>> On Mon, 2008-10-13 at 13:57 -0500, Adam Williams wrote:
> >>>   
> >>>   
> >>>> add in your [global] section:
> >>>>
> >>>> msdfs root = yes
> >>>>
> >>>> restart samba, and then try connecting to your shares by server name 
> >>>> again.
> >>>>
> >>>> Matthew Lind wrote:
> >>>> 
> >>>> 
> >>>>> Hey all,
> >>>>>
> >>>>> I've got an issue with my Samba server.  I can't seem to get file shares
> >>>>> to map using Server Name, but I can get them to map using IP Address. 
> >>>>>
> >>>>> Here is my smb.conf:
> >>>>>
> >>>>> [global]
> >>>>>   workgroup = ADMIN
> >>>>>   server string = Snap Server
> >>>>>   timestamp logs = yes
> >>>>>   dos filetimes = yes
> >>>>>   dos filemode = yes
> >>>>>   inherit acls = yes
> >>>>>   name cache timeout = 0
> >>>>>   winbind uid = 101-600
> >>>>>   winbind gid = 101-600
> >>>>>   local master = No
> >>>>>   guest account = guest
> >>>>>   map to guest = Never
> >>>>>   unix charset = CP1252
> >>>>>   dos charset = CP850
> >>>>>   allow trusted domains = no
> >>>>>   security = ADS
> >>>>>   disable netbios = no
> >>>>>   password server = *
> >>>>>   encrypt passwords = Yes
> >>>>>   username level = 5
> >>>>>   debug level = 0
> >>>>>   load printers = no
> >>>>>   utmp directory = /var/run
> >>>>>   utmp = yes
> >>>>>   name resolve order = host lmhosts wins bcast
> >>>>>   ldap timeout = 5
> >>>>>   restrict anonymous = 2
> >>>>>   include = /etc/smb.conf.perm
> >>>>>   include = /etc/smb.conf.extra
> >>>>>   include = /etc/smb.conf.dm
> >>>>>   include = /etc/smb_shares.conf
> >>>>>
> >>>>> Here is my smb_shares.conf: *Note All shares follow this format and all 
> >>>>> seem affected I am just truncating *
> >>>>> ..snip..
> >>>>> [bordway]
> >>>>> path = /shares/bordway
> >>>>> read only = no
> >>>>> comment = 
> >>>>> follow symlinks = no
> >>>>> printable = no
> >>>>> browseable = yes
> >>>>> map acl inherit = yes
> >>>>> create mask = 0777
> >>>>> security mask = 0777
> >>>>> directory

Re: [Samba] Server Maps by IP but not by Name for Domain Users

2008-10-14 Thread Matthew Lind
We don't run the WINS service on our network.  We have no Win9x or
earlier clients.  All clients are Windows XP.

However, to answer your question this is what I get on the server when I
run the nmblookup

nmblookup admin1:
creating lame upcase table
creating lame lowcase table
querying admin1 on x.x.y.y
x.x.n.n admin1<00>

nmblookup :
creating lame upcase table
creating lame lowcase table
querying admin1 on x.x.y.y
x.x.a.a <00>

nmblookup doesn't work on Windows XP.

Thanks again!

On Tue, 2008-10-14 at 17:19 +0200, Bruno La Torre wrote:
> I thing that you have a WINS problem.
> nmblookup admin1 on the server and client give the rigth IP?
> 
> Matthew Lind ha scritto:
> > I gave that a shot and it was a no go.  Same errors are produced.
> >
> > Thanks!
> >
> > On Mon, 2008-10-13 at 13:57 -0500, Adam Williams wrote:
> >   
> >> add in your [global] section:
> >>
> >> msdfs root = yes
> >>
> >> restart samba, and then try connecting to your shares by server name again.
> >>
> >> Matthew Lind wrote:
> >> 
> >>> Hey all,
> >>>
> >>> I've got an issue with my Samba server.  I can't seem to get file shares
> >>> to map using Server Name, but I can get them to map using IP Address. 
> >>>
> >>> Here is my smb.conf:
> >>>
> >>> [global]
> >>>   workgroup = ADMIN
> >>>   server string = Snap Server
> >>>   timestamp logs = yes
> >>>   dos filetimes = yes
> >>>   dos filemode = yes
> >>>   inherit acls = yes
> >>>   name cache timeout = 0
> >>>   winbind uid = 101-600
> >>>   winbind gid = 101-600
> >>>   local master = No
> >>>   guest account = guest
> >>>   map to guest = Never
> >>>   unix charset = CP1252
> >>>   dos charset = CP850
> >>>   allow trusted domains = no
> >>>   security = ADS
> >>>   disable netbios = no
> >>>   password server = *
> >>>   encrypt passwords = Yes
> >>>   username level = 5
> >>>   debug level = 0
> >>>   load printers = no
> >>>   utmp directory = /var/run
> >>>   utmp = yes
> >>>   name resolve order = host lmhosts wins bcast
> >>>   ldap timeout = 5
> >>>   restrict anonymous = 2
> >>>   include = /etc/smb.conf.perm
> >>>   include = /etc/smb.conf.extra
> >>>   include = /etc/smb.conf.dm
> >>>   include = /etc/smb_shares.conf
> >>>
> >>> Here is my smb_shares.conf: *Note All shares follow this format and all 
> >>> seem affected I am just truncating *
> >>> ..snip..
> >>> [bordway]
> >>> path = /shares/bordway
> >>> read only = no
> >>> comment = 
> >>> follow symlinks = no
> >>> printable = no
> >>> browseable = yes
> >>> map acl inherit = yes
> >>> create mask = 0777
> >>> security mask = 0777
> >>> directory mask = 0777
> >>> directory security mask = 0777
> >>> create mask_ext = 0777
> >>> directory mask_ext = 0777
> >>> guest ok = No
> >>> valid users = \ 
> >>>  "admin"   \  
> >>>  "ADMIN\bordway" 
> >>>
> >>> write list = \ 
> >>>   "admin"   \   
> >>>   "ADMIN\bordway"  
> >>> ..snip..
> >>>
> >>> Here is my smb.conf.perm:
> >>> panic action = /usr/bin/backtrace %d > /tmp/segv_samba_%d.out 2>&1
> >>> #  root preexec = /usr/local/samba/bin/log_connect.sh '%u' '%m' '%I' '%S'
> >>> #  root postexec = /usr/local/samba/bin/log_disconnect.sh '%u' '%m' '%I' 
> >>> '%S'
> >>>   username level = 0
> >>>  realm = ADMIN.NHTI
> >>>
> >>> smb.conf.dm and smb.conf.extra are empty.
> >>>
> >>> When a client tries to connect using the Server Name this is the error in 
> >>> the log:
> >>>
> >>> [2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
> >>>   getpeername failed. Error was Transport endpoint is not connected
> >>> [2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
> >>>   getpeername failed. Error was Transport endpoint is not connected
> >>> [

Re: [Samba] Server Maps by IP but not by Name for Domain Users

2008-10-14 Thread Matthew Lind
I gave that a shot and it was a no go.  Same errors are produced.

Thanks!

On Mon, 2008-10-13 at 13:57 -0500, Adam Williams wrote:
> add in your [global] section:
> 
> msdfs root = yes
> 
> restart samba, and then try connecting to your shares by server name again.
> 
> Matthew Lind wrote:
> > Hey all,
> >
> > I've got an issue with my Samba server.  I can't seem to get file shares
> > to map using Server Name, but I can get them to map using IP Address. 
> >
> > Here is my smb.conf:
> >
> > [global]
> >   workgroup = ADMIN
> >   server string = Snap Server
> >   timestamp logs = yes
> >   dos filetimes = yes
> >   dos filemode = yes
> >   inherit acls = yes
> >   name cache timeout = 0
> >   winbind uid = 101-600
> >   winbind gid = 101-600
> >   local master = No
> >   guest account = guest
> >   map to guest = Never
> >   unix charset = CP1252
> >   dos charset = CP850
> >   allow trusted domains = no
> >   security = ADS
> >   disable netbios = no
> >   password server = *
> >   encrypt passwords = Yes
> >   username level = 5
> >   debug level = 0
> >   load printers = no
> >   utmp directory = /var/run
> >   utmp = yes
> >   name resolve order = host lmhosts wins bcast
> >   ldap timeout = 5
> >   restrict anonymous = 2
> >   include = /etc/smb.conf.perm
> >   include = /etc/smb.conf.extra
> >   include = /etc/smb.conf.dm
> >   include = /etc/smb_shares.conf
> >
> > Here is my smb_shares.conf: *Note All shares follow this format and all 
> > seem affected I am just truncating *
> > ..snip..
> > [bordway]
> > path = /shares/bordway
> > read only = no
> > comment = 
> > follow symlinks = no
> > printable = no
> > browseable = yes
> > map acl inherit = yes
> > create mask = 0777
> > security mask = 0777
> > directory mask = 0777
> > directory security mask = 0777
> > create mask_ext = 0777
> > directory mask_ext = 0777
> > guest ok = No
> > valid users = \ 
> >  "admin"   \  
> >  "ADMIN\bordway" 
> >
> > write list = \ 
> >   "admin"   \   
> >   "ADMIN\bordway"  
> > ..snip..
> >
> > Here is my smb.conf.perm:
> > panic action = /usr/bin/backtrace %d > /tmp/segv_samba_%d.out 2>&1
> > #  root preexec = /usr/local/samba/bin/log_connect.sh '%u' '%m' '%I' '%S'
> > #  root postexec = /usr/local/samba/bin/log_disconnect.sh '%u' '%m' '%I' 
> > '%S'
> >   username level = 0
> >  realm = ADMIN.NHTI
> >
> > smb.conf.dm and smb.conf.extra are empty.
> >
> > When a client tries to connect using the Server Name this is the error in 
> > the log:
> >
> > [2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
> >   getpeername failed. Error was Transport endpoint is not connected
> > [2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
> >   getpeername failed. Error was Transport endpoint is not connected
> > [2008/10/13 11:51:54, 0] lib/util_sock.c:write_socket_data(388)
> >   write_socket_data: write failure. Error = Connection reset by peer
> > [2008/10/13 11:51:54, 0] lib/util_sock.c:write_socket(413)
> >   write_socket: Error writing 4 bytes to socket 19: ERRNO = Connection 
> > reset by peer
> > [2008/10/13 11:51:54, 0] lib/util_sock.c:send_smb(585)
> >   Error writing 4 bytes to client. -1. (Connection reset by peer)
> > [2008/10/13 11:53:00, 0] lib/util_sock.c:get_socket_addr(926)
> >   getpeername failed. Error was Transport endpoint is not connected
> > [2008/10/13 11:53:01, 0] lib/util_sock.c:get_socket_addr(926)
> >   getpeername failed. Error was Transport endpoint is not connected
> > [2008/10/13 11:53:01, 0] lib/util_sock.c:write_socket_data(388)
> >   write_socket_data: write failure. Error = Connection reset by peer
> > [2008/10/13 11:53:01, 0] lib/util_sock.c:write_socket(413)
> >   write_socket: Error writing 4 bytes to socket 19: ERRNO = Connection 
> > reset by peer
> > [2008/10/13 11:53:01, 0] lib/util_sock.c:send_smb(585)
> >   Error writing 4 bytes to client. -1. (Connection reset by peer)
> >
> > On the Windows side if I try by name the user is presented with a Login 
> > Box.  When the credentials are entered the map fails.
> > If I try with IP no login box is presented and the mapping succeeds.
> >
> > Things I have tried:
> >
> > I have tried adding the following to smb.conf (individually and in 
> > combination)
> >
> > smb ports = 139
> > smb ports = 445
> > netbios name = admin1
> >
> > The clients can ping the server by name and the server can ping the clients 
> > by name.
> > The clients use the Domain Controller as their DNS server and it can map to 
> > the server by name.
> >
> > wbinfo -u and wbinfo -g come back with the correct group and user 
> > information.
> >
> > Any help would be appreciated!
> >
> > Thanks
> >
> >
> >
> >
> >   
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Server Maps by IP but not by Name for Domain Users

2008-10-13 Thread Matthew Lind
Hey all,

I've got an issue with my Samba server.  I can't seem to get file shares
to map using Server Name, but I can get them to map using IP Address. 

Here is my smb.conf:

[global]
  workgroup = ADMIN
  server string = Snap Server
  timestamp logs = yes
  dos filetimes = yes
  dos filemode = yes
  inherit acls = yes
  name cache timeout = 0
  winbind uid = 101-600
  winbind gid = 101-600
  local master = No
  guest account = guest
  map to guest = Never
  unix charset = CP1252
  dos charset = CP850
  allow trusted domains = no
  security = ADS
  disable netbios = no
  password server = *
  encrypt passwords = Yes
  username level = 5
  debug level = 0
  load printers = no
  utmp directory = /var/run
  utmp = yes
  name resolve order = host lmhosts wins bcast
  ldap timeout = 5
  restrict anonymous = 2
  include = /etc/smb.conf.perm
  include = /etc/smb.conf.extra
  include = /etc/smb.conf.dm
  include = /etc/smb_shares.conf

Here is my smb_shares.conf: *Note All shares follow this format and all seem 
affected I am just truncating *
..snip..
[bordway]
path = /shares/bordway
read only = no
comment = 
follow symlinks = no
printable = no
browseable = yes
map acl inherit = yes
create mask = 0777
security mask = 0777
directory mask = 0777
directory security mask = 0777
create mask_ext = 0777
directory mask_ext = 0777
guest ok = No
valid users = \ 
 "admin"   \  
 "ADMIN\bordway" 

write list = \ 
  "admin"   \   
  "ADMIN\bordway"  
..snip..

Here is my smb.conf.perm:
panic action = /usr/bin/backtrace %d > /tmp/segv_samba_%d.out 2>&1
#  root preexec = /usr/local/samba/bin/log_connect.sh '%u' '%m' '%I' '%S'
#  root postexec = /usr/local/samba/bin/log_disconnect.sh '%u' '%m' '%I' '%S'
  username level = 0
 realm = ADMIN.NHTI

smb.conf.dm and smb.conf.extra are empty.

When a client tries to connect using the Server Name this is the error in the 
log:

[2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
  getpeername failed. Error was Transport endpoint is not connected
[2008/10/13 11:51:54, 0] lib/util_sock.c:get_socket_addr(926)
  getpeername failed. Error was Transport endpoint is not connected
[2008/10/13 11:51:54, 0] lib/util_sock.c:write_socket_data(388)
  write_socket_data: write failure. Error = Connection reset by peer
[2008/10/13 11:51:54, 0] lib/util_sock.c:write_socket(413)
  write_socket: Error writing 4 bytes to socket 19: ERRNO = Connection reset by 
peer
[2008/10/13 11:51:54, 0] lib/util_sock.c:send_smb(585)
  Error writing 4 bytes to client. -1. (Connection reset by peer)
[2008/10/13 11:53:00, 0] lib/util_sock.c:get_socket_addr(926)
  getpeername failed. Error was Transport endpoint is not connected
[2008/10/13 11:53:01, 0] lib/util_sock.c:get_socket_addr(926)
  getpeername failed. Error was Transport endpoint is not connected
[2008/10/13 11:53:01, 0] lib/util_sock.c:write_socket_data(388)
  write_socket_data: write failure. Error = Connection reset by peer
[2008/10/13 11:53:01, 0] lib/util_sock.c:write_socket(413)
  write_socket: Error writing 4 bytes to socket 19: ERRNO = Connection reset by 
peer
[2008/10/13 11:53:01, 0] lib/util_sock.c:send_smb(585)
  Error writing 4 bytes to client. -1. (Connection reset by peer)

On the Windows side if I try by name the user is presented with a Login Box.  
When the credentials are entered the map fails.
If I try with IP no login box is presented and the mapping succeeds.

Things I have tried:

I have tried adding the following to smb.conf (individually and in combination)

smb ports = 139
smb ports = 445
netbios name = admin1

The clients can ping the server by name and the server can ping the clients by 
name.
The clients use the Domain Controller as their DNS server and it can map to the 
server by name.

wbinfo -u and wbinfo -g come back with the correct group and user information.

Any help would be appreciated!

Thanks




--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbd/service.c:make_connection(1191) Samba can't connect toservice and unable to run "preexec"

2008-07-29 Thread Matthew Lind
Hello,

I am trying to connect to a shared printer on my Samba server.  I map
the printer just fine on my PC however I get this error in my smbd.log
file:

Jul 29 10:09:00 prntsrv smbd[6298]: [2008/07/29 10:09:00, 0]
smbd/service.c:make_connection(1191) 
Jul 29 10:09:00 prntsrv smbd[6298]:   wh-122413-d820 (64.72.1.50)
couldn't find service neares 

The service is actually called "nearest".  I have another called "alt"
that is getting reported in the same way as "al"

Also both shares are set to run the following preexec statement which is
not running.  But running the command manually from the command prompt
works.

bash -c 'echo Welcome %U to %S! | smbclient -M %m -I %I' &


Thanks

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba