[Samba] 0x00000057 on Vista

2008-03-17 Thread mj
Hi, has anybody seen this error on Vista machines?  I'm trying to install a 
printer on Vista from a Samba hosted printer server, but it just keeps 
giving me this error.  I tried 3.0.22, 3.0.26a, and 3.0.28 but they all 
behave the same way.

Thanks! 



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


RE: [Samba] kinit succeeded but ads_sasl_spnego_krb5_bind failed

2008-03-17 Thread Philipoff, Andrew
I experienced this problem on a Red Hat Enterprise Linux 5.1 system when
running Samba 3.0.25b-1.el5_1.4, the RHEL supplied version of Samba.
Previously I was able to join this same system to our AD domain when it
was running RHEL 5/Samba 3.0.23c-2.el5.2.0.2. After this system was
upgraded to RHEL 5.1/Samba 3.0.25b-1.el5_1.4 I was not able re-join this
system to our AD domain.

I ended up downgrading to the /usr/bin/net binary to one from Samba
3.0.23c-2.el5.2.0.2, the previous RHEL supplied version. I did that by
downloading samba-common-3.0.23c-2.el5.2.0.2.i386.rpm from Red Hat and
extracting /usr/bin/net from the rpm by running:

"rpm2cpio samba-common-3.0.23c-2.el5.2.0.2.i386.rpm | cpio -iv
--make-directories ./usr/bin/net"

That extracted the 3.0.23c-2.el5.2.0.2 version of /usr/bin/net into my
cwd. Then I ran "mv /usr/bin/net /usr/bin/net.bak" to backup the
3.0.25b-1.el5_1.4 version and then copied the older /usr/bin/net binary
that I extracted from the rpm to /usr/bin. Once I did that, I was able
to rejoin this system to our domain.

Andrew Philipoff
Programmer Analyst
Information Technology Services
Department of Medicine
University of California, San Francisco
Phone: 415-476-1344
Help Desk: 415-476-6827
http://domsupport.ucsf.edu/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Francis Lee Mondia
Sent: Monday, March 17, 2008 5:38 PM
To: samba@lists.samba.org
Subject: [Samba] kinit succeeded but ads_sasl_spnego_krb5_bind failed

Hi all,

I'm having trouble joining samba to active directory. My samba version
is
3.0.28a-35 and krb is  1.6.1-17.el5. It's running on centos 5, kernel
version 2.6.18-53.1.14.el5. It's running on vmware server by the way if
that
is of any significance.

The specific error that I get are as follows:

when testjoining the domain:

[2008/03/18 04:34:07, 0] libads/kerberos.c:ads_kinit_password(228)
  kerberos_kinit_password [EMAIL PROTECTED] failed: Preauthentication
failed
Join to domain is not valid: Logon failure

 is a valid domain, on a windows 2003 r2 server. It's
already
added to the hosts file as well as configured as the DNS server.
hostname of
this host can also be resovled.

This is strange, considering I can get the ticket using kinit. I know
some
people have posted about this before, but it was on a previous samba
version. I don't know if it is with samba versions, but i also upgraded
from
3.0.25b, since i found somewhere in this post that it's a buggy version.

On last thing, I also got the same problem on a Centos 4.4 installation,
also with installed 3.0.28a-35.

Any help will be highly appreciated. I'm willing to give you all the
required configuration files if you need it.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

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


[Samba] win2003 STOP error

2008-03-17 Thread Anton
Hi. Please excuse me if this is wrong place to ask.

There is two servers involved in this case, Windows 2003 and Debian Linux.

Windows 2003 is the Terminal Server, it runs multiple Remote Desktop
Protocol sessions in the same time. At the first occurrence of the problem,
it was Windows 2003 Server Standart SP1, in process of troubleshooting it
was upgraded to SP2. The same error occurs on fresh installation of the same
OS on another box.

Samba is running on Debian Linux server, all was fine while this server was
running Debian Sarge (Samba version 3.0.14a-3sarge10). After upgrading Linux
server to Debian Etch (Samba version 3.0.24-6etch8) windows server
periodically get 'STOP' error with code 0x008e 0xC005 0x804e446a.
Here is screenshots from two such errors:
http://img296.imageshack.us/img296/8988/bsod01sbu3.jpg
http://img296.imageshack.us/img296/2970/bsod02soh2.jpg

Restoring Debian Sarge from backup removes the problem completely.

Installing Samba from backports-sarge (version 3.0.23c-1~bpo.1) brings the
same problem again. So, I think, the cause is some change in the Samba code
between 3.0.14 and 3.0.23.

The same behaviour (STOP errors after Samba upgrade) I got in another
network with nearly the same configuration.

This is production environment, I can't freely play with it. I was trying to
reproduce the same behaviour in test network but without success. Maybe it's
because the number of windows terminal server clients (and Samba requests)
was too small.

Actually it was some months ago, there was no more time to deal with this
problem and I just leave the system in previous state. But now I need to
upgrade it, so please, help me, I just don't know what to do with it.

This is smb.conf: ===
[global]
bind interfaces only= yes
interfaces= lan, lo
dos charset= CP866
unix charset= koi8-r
display charset= UTF8
workgroup= MAIN
netbios name= files
server string= files
security= user
encrypt passwords= true
preferred master= yes
local master= yes
os level= 100
wins support= yes
lanman auth= no
max log size= 1000
log level= 1

;; share defaults
oplocks= no
wide links= no
follow symlinks= yes
hide unreadable= yes
delete readonly= yes
map system= no
map hidden= no
map archive= no
veto files= /lost+found/
directory mask= 0770
create mask= 0660
browsable= no
writeable= no
guest ok= no
map to guest= Bad User
force user= smbguest
force group= smbguest
guest ok= no
hosts allow= 192.168.0.0/255.255.255.0

[soft]
path= /files/soft
wide links= yes
writeable= no
guest ok= yes
oplocks= yes
[docs]
path= /files/docs
wide links= yes
writeable= yes
guest ok= yes
oplocks= yes
[mail]
path= /files/mail
wide links= yes
writeable= yes
guest ok= yes
oplocks= yes
=
(there are some more shares, but problem persists after commenting them out)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] logfile reopen error happen (may be samba bug?)

2008-03-17 Thread oota
Dear Samba Team

When I used Samba , I found some error messages in syslog.
The error messages were printed immediately when I executed smbcontrol command
with "reload-config" option (as follows).

# smbcontrol smbd reload-config

The error messages are as follows. 

Mar 11 13:58:27 ML4SP2 smb: nmbd startup succeeded
Mar 11 13:58:47 ML4SP2 smbd[20860]: [2008/03/11 13:58:47, 0, pid=20860, 
effective(99, 99), real(99, 0)] lib/debug.c:reopen_logs(625) 
Mar 11 13:58:47 ML4SP2 smbd[20860]:   Unable to open new log file 
/var/log/samba/10.19.71.31.log: Permission denied 
Mar 11 13:58:47 ML4SP2 smbd[20860]: [2008/03/11 13:58:47, 0, pid=20860, 
effective(99, 99), real(99, 0)] lib/debug.c:reopen_logs(625) 
Mar 11 13:58:47 ML4SP2 smbd[20860]:   Unable to open new log file 
/var/log/samba/10.19.71.31.log: Permission denied 
Mar 11 13:58:47 ML4SP2 smbd[20860]: [2008/03/11 13:58:47, 0, pid=20860, 
effective(99, 99), real(99, 0)] lib/debug.c:reopen_logs(625) 
Mar 11 13:58:47 ML4SP2 smbd[20860]:   Unable to open new log file 
/var/log/samba/10.19.71.31.log: Permission denied


I checked the source code, and I found the error in "reopen_logs" function in 
"lib/debuc.c".
A part concerned is as follows. 


 621 new_dbf = x_fopen( debugf, O_WRONLY|O_APPEND|O_CREAT, 0644);
 622 
 623 if (!new_dbf) {
 624 log_overflow = True;
 625 DEBUG(0, ("Unable to open new log file %s: %s\n", debugf, 
strerror(errno)));
 626 log_overflow = False;
 627 if (dbf)
 628 x_fflush(dbf);
 629 ret = False;
 630 } else {
 631 x_setbuf(new_dbf, NULL);
 632 old_dbf = dbf;
 633 dbf = new_dbf;
 634 if (old_dbf)
 635 (void) x_fclose(old_dbf);
 636 }


The cause is the execution of the smbcontrol command when smbd runs as user uid 
(not root uid). 
When smbd runs as  user uid, the log file cannot be opened again because there 
are no right to
write to the directory.

I think the reason of the error is that there is no right to access in the 
directory.

Is it possible to deal with this problem?

--
--- Oota Toshiya ---  oota at mail.linux.bs1.fc.nec.co.jp
NEC Computers Software Operations Unit  Shiba,Minato,Tokyo
Open Source Software Platform Development Division  Japan,Earth,Solar system
(samba-jp/ldap-jp Staff,mutt-j admin,analog-jp/samba-jp postmaster)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] kinit succeeded but ads_sasl_spnego_krb5_bind failed

2008-03-17 Thread Francis Lee Mondia
Hi all,

I'm having trouble joining samba to active directory. My samba version is
3.0.28a-35 and krb is  1.6.1-17.el5. It's running on centos 5, kernel
version 2.6.18-53.1.14.el5. It's running on vmware server by the way if that
is of any significance.

The specific error that I get are as follows:

when testjoining the domain:

[2008/03/18 04:34:07, 0] libads/kerberos.c:ads_kinit_password(228)
  kerberos_kinit_password [EMAIL PROTECTED] failed: Preauthentication failed
Join to domain is not valid: Logon failure

 is a valid domain, on a windows 2003 r2 server. It's already
added to the hosts file as well as configured as the DNS server. hostname of
this host can also be resovled.

This is strange, considering I can get the ticket using kinit. I know some
people have posted about this before, but it was on a previous samba
version. I don't know if it is with samba versions, but i also upgraded from
3.0.25b, since i found somewhere in this post that it's a buggy version.

On last thing, I also got the same problem on a Centos 4.4 installation,
also with installed 3.0.28a-35.

Any help will be highly appreciated. I'm willing to give you all the
required configuration files if you need it.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] msdfs root -- client error "refers to a location thatisunavailable"

2008-03-17 Thread Paul B. Henson
On Sat, 15 Mar 2008, TEXIER David wrote:

> If a take the same XP client connected via a ssh connection ( i use the
> port forwarding option for the samba port 139) then i can't access the
> dfs root (though i can reach the shares with no problem) and on the
> Windows explorer, the dfs links are no more recognised as dfs folders and
> i can't connect .
[...]
> Your problem and mine is something around there.

There seems to be some undefined set of circumstances which a Windows
client requires to be aligned before considering a server a DFS root :(...

At this point I guess I'm going to have to let the Windows guys serve up
the DFS root, as I've had no luck getting the samba server working.


-- 
Paul B. Henson  |  (909) 979-6361  |  http://www.csupomona.edu/~henson/
Operating Systems and Network Analyst  |  [EMAIL PROTECTED]
California State Polytechnic University  |  Pomona CA 91768
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] VPN server and logon to Samba PDC

2008-03-17 Thread Jon Theil Nielsen
2008/3/17, David C. Rankin <[EMAIL PROTECTED]>:
>
> Jon Theil Nielsen wrote:
> > 2008/3/17, David C. Rankin <[EMAIL PROTECTED]
>
> > >:
>
> >
> > Jon Theil Nielsen wrote:
> >  > My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so
> > that users
> >  > can access there home shares from Windows clients.
> >  > I have read the instructions at
> >  > http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but
> > I can't
> >  > make it work.
> >
> > 
> >  > Regards,
> >  > Jon
> >
> > Jon,
> >
> > I do it this way:
> >
> > pptp VPN server
> >
> >
> > /etc/pptpd.conf
> > option /etc/ppp/options.pptp
> >
> > debug (comment out after testing)
>
> > localip 192.168.7.12 
>
> > remoteip 192.168.7.2-5
> > pidfile /var/run/pptpd.pid
> >
> > /etc/ppp/options.pptp
> > lock
> > noauth
> > nobsdcomp
> > lcp-echo-failure 10
> > lcp-echo-interval 10
> >
> > /etc/ppp/options
>
> > name bonza.rbpllc.com 
>
> > noipdefault
> > noauth
> > lock
> > local
> > lcp-echo-interval 30
> > lcp-echo-failure 4
> > lcp-max-configure 60
> > lcp-restart 2
> > idle 600
> > noipx
> > file /etc/ppp/filters
> > proxyarp
>
> > ms-dns 192.168.7.15 
> > ms-wins 192.168.7.15 
>
> > refuse-chap
> > refuse-mschap
> >
> > /etc/ppp/pap-secrets
>
> > *   bonza.rbpllc.com ""
> > > > *
>
> >
> > /etc/ppp/chap-secrets
> >* *
> >
> > Of course, use your own information and get rid of the "< >"
> > in the pap
> > and chap-secret files. Good luck. This works like a charm. Just
> don't
> > forget to open [port 1723] in your firewall and router for accessing
> the
> > server locally as well as remotely. Also, you may need:
> >
> > # TAG: bcrelay 
> > bcrelay eth0
> >
> > in /etc/pptpd.conf if you are running an older version of pptpd to
> > improve remote browsing.
> >
> > Thanks, David
> > Just a few questions before I try this solution.
> > Are you on FreeBSD too? As far as I understand, the main configuration
> > file here is /usr/local/etc/pptpd.conf. Or should it live in /etc/?
> > What does the line "file /etc/ppp/filters" refer to?
> > Can you use this configuration to join a Samba domain?
> >
> > Regards,
> > Jon
>
>
> Jon,
>
> It doesn't matter where the conf file goes. That is determined at
> compile time with the ./configure options. If your setup wants it in
> /usr/local, then that's where it goes. I'm running Linux, but as far as
> pptpd is concerned it shouldn't care. You may just have to adjust the
> path information to work with your setup. I would just make the
> configuration changes and start pptpd. You will get all the messages you
> need in /var/log/messages or /var/log/syslog depending on your setup.
>
Hi again,

Sure, it does read it from /usr/local/etc. I can see that from the
consequeces of changing it there. But as I stated in a previous message it
doesn't work. I'm sure it has something to do with the setup of ppp on
FreeBSD.
With respectively without the existence of /etc/ppp/ppp.conf the log says:

ppp[67205]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: Configuration label not found

and

ppp[67267]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: /etc/ppp/ppp.conf : File not found

I'm a bit lost here. I might have to ask some FreeBSD experts. Naturally, I
have been googling on the issue, but haven't yet seen any usefull hints.
Thanks for the help anyway!

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


Re: [Samba] VPN server and logon to Samba PDC

2008-03-17 Thread David C. Rankin

Jon Theil Nielsen wrote:
2008/3/17, David C. Rankin <[EMAIL PROTECTED] 
>:


Jon Theil Nielsen wrote:
 > My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so
that users
 > can access there home shares from Windows clients.
 > I have read the instructions at
 > http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but
I can't
 > make it work.


 > Regards,
 > Jon

Jon,

I do it this way:

pptp VPN server


/etc/pptpd.conf
option /etc/ppp/options.pptp

debug (comment out after testing)
localip 192.168.7.12 
remoteip 192.168.7.2-5
pidfile /var/run/pptpd.pid

/etc/ppp/options.pptp
lock
noauth
nobsdcomp
lcp-echo-failure 10
lcp-echo-interval 10

/etc/ppp/options
name bonza.rbpllc.com 
noipdefault
noauth
lock
local
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters
proxyarp
ms-dns 192.168.7.15 
ms-wins 192.168.7.15 
refuse-chap
refuse-mschap

/etc/ppp/pap-secrets
*   bonza.rbpllc.com ""
   http://yourserver.yourdomain.com>> *

/etc/ppp/chap-secrets
   * *

Of course, use your own information and get rid of the "< >"
in the pap
and chap-secret files. Good luck. This works like a charm. Just don't
forget to open [port 1723] in your firewall and router for accessing the
server locally as well as remotely. Also, you may need:

# TAG: bcrelay 
bcrelay eth0

in /etc/pptpd.conf if you are running an older version of pptpd to
improve remote browsing.

Thanks, David
Just a few questions before I try this solution.
Are you on FreeBSD too? As far as I understand, the main configuration 
file here is /usr/local/etc/pptpd.conf. Or should it live in /etc/?

What does the line "file /etc/ppp/filters" refer to?
Can you use this configuration to join a Samba domain?

Regards,
Jon


Jon,

	It doesn't matter where the conf file goes. That is determined at 
compile time with the ./configure options. If your setup wants it in 
/usr/local, then that's where it goes. I'm running Linux, but as far as 
pptpd is concerned it shouldn't care. You may just have to adjust the 
path information to work with your setup. I would just make the 
configuration changes and start pptpd. You will get all the messages you 
need in /var/log/messages or /var/log/syslog depending on your setup.


--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] CUPS not linked in

2008-03-17 Thread Volker Lendecke
On Mon, Mar 17, 2008 at 06:41:40PM -, [EMAIL PROTECTED] wrote:
> So, can I set something so it will compile/link-in the CUPS  module?

Install the cups-devel package while compiling.

Volker


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

Re: [Samba] Problem: NT_STATUS_INSUFF_SERVER_RESOURCES

2008-03-17 Thread Volker Lendecke
On Mon, Mar 17, 2008 at 06:09:18PM +0100, Chris Osicki wrote:
> 
> Hi
> 
> A client (Win2000 Server, I think) cannot connect anymore a share on my Samba 
> server.
> The error message on the client side: "Not enough server storage is available 
> to process 
> this command"
> 
> I found in my logs the following in my logs:
> 
> [2008/03/17 08:42:01, 3] smbd/process.c:process_smb(1110)
>   Transaction 95095 of length 110
> [2008/03/17 08:42:01, 3] smbd/process.c:switch_message(914)
>   switch message SMBtconX (pid 13117) conn 0x552b20a830
> [2008/03/17 08:42:01, 3] smbd/sec_ctx.c:set_sec_ctx(241)
>   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
> [2008/03/17 08:42:01, 3] smbd/error.c:error_packet(146)
>   error packet at smbd/reply.c(676) cmd=117 (SMBtconX) 
> NT_STATUS_INSUFF_SERVER_RESOURCES
> 
> 
> The server is hapily serving few other shares, CPU/memory/diskspace looks OK.
> 
> Could anybody explain to me how to interpret this message?

Very likely some buggy program on the W2k server. This error
message only happens when you have more than 65534
concurrent shares open on a single smb connection.

Volker


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

[Samba] CUPS not linked in

2008-03-17 Thread nigeljk
Hi

I have compiled 3.0.28 on to my SuSE 9.2 Linux system, as an upgrade from
3.0.2.  After some jiggling, the shares now work, but the printing does
not.  You get messages like

[2008/03/16 20:09:29, 0] smbd/service.c:make_connection(1191)
  socrates (192.168.0.5) couldn't find service hp_deskjet895
[2008/03/16 20:11:22, 0] printing/pcap.c:pcap_cache_reload(159)
  Unable to open printcap file cups for read!

So, I read the HOWTO, and it says Samba should be built with CUPS
libraries linked in.  But I get:

$ ldd /usr/local/samba/sbin/smbd
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4003)
libcap.so.1 => /lib/libcap.so.1 (0x40062000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40066000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40078000)
libdl.so.2 => /lib/libdl.so.2 (0x4008e000)
libc.so.6 => /lib/i686/libc.so.6 (0x40091000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

-- no CUPS.  There were no obvious errors or warnings when it built,
unless they scrolled off unnoticed.
The HOWTO isn't very obvious on how to deal with this branch of events.  I
tried downloading the most likely looking binaries, but RPM declared my
LDAP libraries too old, I don't use LDAP and I can see dependency hell
looming...

So, can I set something so it will compile/link-in the CUPS  module?

Many thanks

Nigel


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


Re: [Samba] VPN server and logon to Samba PDC

2008-03-17 Thread Jon Theil Nielsen
2008/3/17, David C. Rankin <[EMAIL PROTECTED]>:
>
> Jon Theil Nielsen wrote:
> > My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so that
> users
> > can access there home shares from Windows clients.
> > I have read the instructions at
> > http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but I
> can't
> > make it work.
>
> 
> > Regards,
> > Jon
>
> Jon,
>
> I do it this way:
>
> pptp VPN server
>
>
> /etc/pptpd.conf
> option /etc/ppp/options.pptp
>
> debug (comment out after testing)
> localip 192.168.7.12
> remoteip 192.168.7.2-5
> pidfile /var/run/pptpd.pid
>
> /etc/ppp/options.pptp
> lock
> noauth
> nobsdcomp
> lcp-echo-failure 10
> lcp-echo-interval 10
>
> /etc/ppp/options
> name bonza.rbpllc.com
> noipdefault
> noauth
> lock
> local
> lcp-echo-interval 30
> lcp-echo-failure 4
> lcp-max-configure 60
> lcp-restart 2
> idle 600
> noipx
> file /etc/ppp/filters
> proxyarp
> ms-dns 192.168.7.15
> ms-wins 192.168.7.15
> refuse-chap
> refuse-mschap
>
> /etc/ppp/pap-secrets
> *   bonza.rbpllc.com""
> *
>
> /etc/ppp/chap-secrets
>* *
>
> Of course, use your own information and get rid of the "< >" in
> the pap
> and chap-secret files. Good luck. This works like a charm. Just don't
> forget to open [port 1723] in your firewall and router for accessing the
> server locally as well as remotely. Also, you may need:
>
> # TAG: bcrelay 
> bcrelay eth0
>
> in /etc/pptpd.conf if you are running an older version of pptpd to
> improve remote browsing.


Hi again,

Tried  the proposed configurataion. The first time my log said:

ppp[67205]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: Configuration label not found

Then I thought that I maybe didn't needed the old /etc/ppp.conf, so I moved
that away. Now the result was:

ppp[67267]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: /etc/ppp/ppp.conf : File not found
ppp[67205]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: Configuration label not found

To me it is a bit confusing which files pptpd on FreeBSD uses. Do you have a
/etc/ppp/ppp.conf and if so, what does it contain?

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


Re: [Samba] VPN server and logon to Samba PDC

2008-03-17 Thread Jon Theil Nielsen
2008/3/17, David C. Rankin <[EMAIL PROTECTED]>:
>
> Jon Theil Nielsen wrote:
> > My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so that
> users
> > can access there home shares from Windows clients.
> > I have read the instructions at
> > http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but I
> can't
> > make it work.
>
> 
> > Regards,
> > Jon
>
> Jon,
>
> I do it this way:
>
> pptp VPN server
>
>
> /etc/pptpd.conf
> option /etc/ppp/options.pptp
>
> debug (comment out after testing)
> localip 192.168.7.12
> remoteip 192.168.7.2-5
> pidfile /var/run/pptpd.pid
>
> /etc/ppp/options.pptp
> lock
> noauth
> nobsdcomp
> lcp-echo-failure 10
> lcp-echo-interval 10
>
> /etc/ppp/options
> name bonza.rbpllc.com
> noipdefault
> noauth
> lock
> local
> lcp-echo-interval 30
> lcp-echo-failure 4
> lcp-max-configure 60
> lcp-restart 2
> idle 600
> noipx
> file /etc/ppp/filters
> proxyarp
> ms-dns 192.168.7.15
> ms-wins 192.168.7.15
> refuse-chap
> refuse-mschap
>
> /etc/ppp/pap-secrets
> *   bonza.rbpllc.com""
> *
>
> /etc/ppp/chap-secrets
>* *
>
> Of course, use your own information and get rid of the "< >" in
> the pap
> and chap-secret files. Good luck. This works like a charm. Just don't
> forget to open [port 1723] in your firewall and router for accessing the
> server locally as well as remotely. Also, you may need:
>
> # TAG: bcrelay 
> bcrelay eth0
>
> in /etc/pptpd.conf if you are running an older version of pptpd to
> improve remote browsing.
>
> Thanks, David
Just a few questions before I try this solution.
Are you on FreeBSD too? As far as I understand, the main configuration file
here is /usr/local/etc/pptpd.conf. Or should it live in /etc/?
What does the line "file /etc/ppp/filters" refer to?
Can you use this configuration to join a Samba domain?

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


Re: [Samba] Re: Samba/Ldap problems with Versions > 3.0.24

2008-03-17 Thread Adam Tauno Williams
> we have similiar problems with samba+ldap after updating to 3.0.27.
> But in our case, the following ldap-Attributes won't get updated:
> sambaPwdMustChange
> sambaPwdCanChange
> only sambPwdLastSet gets altered.
> in newly created accounts the two Attributes even won't be created !?
> I already checked every log-file i can think of, I played with verbose 
> logging, but I really can't find a solution up to now.
> I also asked about this stuff here in the mailinglist several weeks ago, 
> but no answer til now.
> So what could we do ?

Is there a policy set to affect these attributes?

littleboy:~ # pdbedit -P "minimum password age"
account policy value for minimum password age is 86400
littleboy:~ # pdbedit -P "maximum password age"
account policy value for maximum password age is 5184000

-- 
Adam Tauno Williams, Network & Systems Administrator
Consultant - http://www.whitemiceconsulting.com
Developer - http://www.opengroupware.org

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


[Samba] Problem: NT_STATUS_INSUFF_SERVER_RESOURCES

2008-03-17 Thread Chris Osicki

Hi

A client (Win2000 Server, I think) cannot connect anymore a share on my Samba 
server.
The error message on the client side: "Not enough server storage is available 
to process 
this command"

I found in my logs the following in my logs:

[2008/03/17 08:42:01, 3] smbd/process.c:process_smb(1110)
  Transaction 95095 of length 110
[2008/03/17 08:42:01, 3] smbd/process.c:switch_message(914)
  switch message SMBtconX (pid 13117) conn 0x552b20a830
[2008/03/17 08:42:01, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/03/17 08:42:01, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) 
NT_STATUS_INSUFF_SERVER_RESOURCES


The server is hapily serving few other shares, CPU/memory/diskspace looks OK.

Could anybody explain to me how to interpret this message?

Thanks for your time.

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


Re: [Samba] VPN server and logon to Samba PDC

2008-03-17 Thread David C. Rankin

Jon Theil Nielsen wrote:

My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so that users
can access there home shares from Windows clients.
I have read the instructions at
http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but I can't
make it work. 



Regards,
Jon


Jon,

I do it this way:

pptp VPN server

/etc/pptpd.conf
option /etc/ppp/options.pptp
debug (comment out after testing)
localip 192.168.7.12
remoteip 192.168.7.2-5
pidfile /var/run/pptpd.pid

/etc/ppp/options.pptp
lock
noauth
nobsdcomp
lcp-echo-failure 10
lcp-echo-interval 10

/etc/ppp/options
name bonza.rbpllc.com
noipdefault
noauth
lock
local
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters
proxyarp
ms-dns 192.168.7.15
ms-wins 192.168.7.15
refuse-chap
refuse-mschap

/etc/ppp/pap-secrets
*   bonza.rbpllc.com""
*

/etc/ppp/chap-secrets
   * *

	Of course, use your own information and get rid of the "< >" in the pap 
and chap-secret files. Good luck. This works like a charm. Just don't 
forget to open [port 1723] in your firewall and router for accessing the 
server locally as well as remotely. Also, you may need:


# TAG: bcrelay 
bcrelay eth0

in /etc/pptpd.conf if you are running an older version of pptpd to 
improve remote browsing.



--
David C. Rankin, J.D., P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Samba/Ldap problems with Versions > 3.0.24

2008-03-17 Thread Markus Kahle

Hi !

we have similiar problems with samba+ldap after updating to 3.0.27.

But in our case, the following ldap-Attributes won't get updated:

sambaPwdMustChange
sambaPwdCanChange

only sambPwdLastSet gets altered.

in newly created accounts the two Attributes even won't be created !?

I already checked every log-file i can think of, I played with verbose 
logging, but I really can't find a solution up to now.


I also asked about this stuff here in the mailinglist several weeks ago, 
but no answer til now.



So what could we do ?

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


[Samba] Mapped Samba drive slows Windows Explorer

2008-03-17 Thread Chris

We have a DLink DNS-323 NAS box. It uses Samba internally.

Whenever I map a drive to the NAS box using Windows Explorer, it gets 
intermittently slow to browse any drive. Even clicking in the c:\ drive 
will cause a pause of several seconds. If I unmap the drive the problem 
goes away.


How to fix?

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


[Samba] VPN server and logon to Samba PDC

2008-03-17 Thread Jon Theil Nielsen
My goal is to make VPN access to our Samba PDC (FreeBSD 7.0) so that users
can access there home shares from Windows clients.
I have read the instructions at
http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf, but I can't
make it work. Don't know if is due to my lack of skills or has something to
do with the Popop functionality in FreeBSD.
Following the instructions, i made a file

/usr/local/etc/pptpd.conf:
option /etc/ppp/options.pptpd
localip 192.168.1.4
remoteip 192.168.1.150-155

and another file

/etc/ppp/options.pptpd:
lock
debug
noauth
name pptpd
nobsdcomp
refuse-pap
refuse-chap
refuse-MSCHAP
require-MSCHAP-v2
require-mppe
ms-wins 192.168.1.4
ms-dns 195.184.96.2 213.173.225.86
defaultroute
plugin winbind.so
ntlm_auth-helper /usr/local/bin/ntlm_auth --helper-protocol=ntlm-server-1

This configuration does not work - the log says:
Warning: Label /etc/ppp/options.pptpd rejected -direct connection:
Configuration label not found

>From reading several howto's on Poptop on FreeBSD I  ended up with a
partially working solution. I removed the reference to the option file in
/usr/local/etc/pptpd.conf and modified /etc/ppp/ppp.conf like this:
pptp:
set timeout 0
set log phase chat connect lcp ipcp command
set dial
set login
enable mssfixup
set ifaddr 192.168.1.4 192.168.150-192.168.1.155 255.255.255.0
set server /tmp/loop "" 0177
disable pap
# Authenticate against /etc/passwd
enable passwdauth
disable ipv6cp
enable proxy
accept dns
enable MSChapV2
enable mppe
disable deflate pred1

And I added the file /etc/ppp/secure:

#!/bin/sh
exec /usr/sbin/ppp -direct loop-in

And  finaly the file /etc/ppp/ppp.secrets containing usernames and
passwords.

After restarting the server, I can now connect from a Windows client. But
will lose me access to the Internet (missing DNS), and I cannot join the
Samba domain.
I hope someone and lead me in the rigth direction...

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


[Samba] Question about guest user

2008-03-17 Thread stephane . purnelle
Hi,

I would like to know if I can have some problem if I havn't guest user or 
if it disabled.
Actually I have a guest user which I used (illegaly) by some people.

have a nice day

Stéphane

---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] problem to join windows XP hosts to samba-ldap PDC

2008-03-17 Thread Hector Blanco
Thanks for the hint, Mario, but I don't think that's the problem.

Well... I don't know how it will be for Jim, but in my case, the
"machine" account is created in the Ldap server. When I'm in windows
(2000-Pro in my case) and I try to join the domain, I am prompted for
a "user that has administrator privileges in the domain" (or something
like that). I write "root" as username (root is an Ldap administrator)
and his password. After this, an account for the Windows machine
appears in Ldap... (so it seems that the password for an administrator
is properly set). The thing is that this "machine account" seems to
lack of "something" (As I said in
http://lists.samba.org/archive/samba/2008-February/138860.html ).

Actually, the message that appears in Windows is different depending
of if the user really exists or not:
  > The thing is that
  > everything seems to be fine until in the windows machine a "error
  > window dialog" appears with a very ugly red signal, saying ("username
  > not found"). I think it must be something wrong with the user "root",
  > because if I try a username that is really non-existent (john, for
  > instance) or if I mistype the password, the message that appears in
  > windows is different (in my computer appears in Spanish, but it's
  > something like "session starting error: username not found or wrong
  > password")
[Quoting from: http://lists.samba.org/archive/samba/2008-February/138639.html]

But I'm just a newbie, so I may be wrong in all the concepts I have in
my brain... :S

I'm thinking in adding by hand what is missing in the machine account
(the objectClass: sambaSamAccount and therefore the sambaNTPassword,
sambaPrimaryGroupSID and so on). You can see the difference between a
working samba "machine" and a non-working one (mine, actually :D )in
the first link of this message.

Regards, and thank you again

2008/3/17, FC Mario Patty <[EMAIL PROTECTED]>:
> Guys,
>
>  " username or password unknown"
>
>  Did you use the root's samba password? If you don't have one, please create
>  it with smbldap-passwd. If you do have one, try set your wins server in
>  windows to the ip address of your pdc. Then try again to join the pc into
>  the domain. Btw, can you show us your smb.conf?
>
>
>  Regards,
>
> --
>
> To unsubscribe from this list go to the following URL and read the
>  instructions:  https://lists.samba.org/mailman/listinfo/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Networkdrives with samba 3.5.5

2008-03-17 Thread Daniel Spannbauer
Hello,

in the past we had running samba2. On our W2K-Terminalserver we have
Login-Script which are connecting Networkdrives persistent. On Samba2 I
only have to put in my passwort once for all drives.  On Samba 3.5.5 on
our SuSE 10.2-Host I have to put in my passwort for each Networkdrive.

Does anybody know how to get the old behaviour?

Regards

Daniel

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


Re: [Samba] problem to join windows XP hosts to samba-ldap PDC

2008-03-17 Thread FC Mario Patty
Guys,

" username or password unknown"

Did you use the root's samba password? If you don't have one, please create
it with smbldap-passwd. If you do have one, try set your wins server in
windows to the ip address of your pdc. Then try again to join the pc into
the domain. Btw, can you show us your smb.conf?


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


Re: [Samba] problem to join windows XP hosts to samba-ldap PDC

2008-03-17 Thread Hector Blanco
Mmm... Seems a pretty recurrent error, this one. You can take a look to:

http://lists.samba.org/archive/samba/2008-February/138442.html
http://lists.samba.org/archive/samba/2008-February/138639.html
http://lists-archives.org/samba/36168-samba-ldap-question.html

I'm not sure if the problem would be the same in all the cases, but
the symptoms seem pretty similar, don't they?

I don't know... it seems that (somehow) there are problems with the
"machines" accounts...

You're not alone, mate :D


2008/3/11, Jim Shanks <[EMAIL PROTECTED]>:
> >
>  >
>  > hi
>  >
>  > i have installed a PDC with SAMBA and LDAP but when i want to join my
>  > Windows XP hosts
>  > to SAMBA LDAP PDC i have the following error
>  >
>  > " username or password unknown"
>  >
>  > Any help in order to resolve this problem will be appreciated
>  >
>  > --sam
>  > --
>  > TRS - Technologies Reseaux & Solutions (http://www.trstech.net)
>  >
>  >
>  >
>  Hello,
>
>  You may have already done this, but you'll need some helper scripts to
>  populate the ldap directory.  smbldap-tools is very popular and works
>  quite well.  There may already be a version for your distribution or you
>  can check at:  https://gna.org/projects/smbldap-tools/ to get the current
>  source.
>
>  Carefully read and follow the documentation.  It's a bit tricky to setup
>  the first time, but well worth the effort.
>
>  Jim
>
> --
>  To unsubscribe from this list go to the following URL and read the
>  instructions:  https://lists.samba.org/mailman/listinfo/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Signal 11 in Samba adding Windows XP printer driver

2008-03-17 Thread simo

On Mon, 2008-03-17 at 22:41 +1100, David Simpson wrote:
> Volker Lendecke wrote:
> > On Tue, Mar 11, 2008 at 10:58:05PM +1100, David Simpson wrote:
> >   
> >> The error messages in the log file are :
> >>
> >> [2008/03/09 17:19:48, 1] smbd/service.c:make_connection_snum(1033)
> >>   (192.168.0.99) connect to service print$ initially as user
> >> xx (uid=1, gid=513)
> >> (pid 29631)
> >> [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(41)
> >>  ===
> >> [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(42)
> >>  INTERNAL ERROR: Signal 11 in pid 29631 (3.0.25b-1.el5_1.4)
> >>  Please read the Trouble-Shooting section of the Samba3-HOWTO
> >> [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(44)
> >>
> >>  From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
> >> [2008/03/09 17:19:48, 0] lib/fault.c:fault_report(45)
> >>  ===
> >> [2008/03/09 17:19:48, 0] lib/util.c:smb_panic(1654)
> >>  PANIC (pid 29631): internal error
> >> [2008/03/09 17:19:48, 0] lib/util.c:log_stack_trace(1758)
> >>  BACKTRACE: 24 stack frames:
> >>   #0 smbd(log_stack_trace+0x2d) [0xb36b9d]
> >>   #1 smbd(smb_panic+0x5d) [0xb36ccd]
> >>   #2 smbd [0xb216ba]
> >>   #3 [0x110420]
> >>   #4 smbd [0x9a53fc]
> >>   #5 smbd(close_file+0x417) [0x9a58e7]
> >> 
> >
> > Would it be possible that you recompile Samba without
> > optimization and with -g, so that we get a better stack
> > trace?
> >
> > Thanks,
> >
> >   
> Hi Volker,
> 
> The Samba server was a straight yum install for Centos 5.1 on a i386 
> system, with the latest updates.

If you are running on Centos, you can sure add the relative debuginfo
packages so that at least we can get a bit more meaningful stack trace.

If you can try my new RHEL packages (on people.redhat.com/ssorce) it
would also be nice.

Simo.

-- 
Simo Sorce
Samba Team GPL Compliance Officer <[EMAIL PROTECTED]>
Senior Software Engineer at Red Hat Inc. <[EMAIL PROTECTED]>

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


RE: [Samba] HP Deskjet 6940 and 6988

2008-03-17 Thread Glenn Arnold
Roel,

Do you know if Microsoft has a driver for HP Deskjet 6940?  The only OS
that I know of new of too have this driver is probably Vista.  Eek!
Probably would not work with XP and W2k.

Thanks
-Glenn

-Original Message-
From: Roel van Meer [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 4:58 AM
To: samba
Subject: Re: [Samba] HP Deskjet 6940 and 6988

Adam Tauno Williams writes:

>> issue is when my users try to print multiple copies they can not
through
>> the samba server.
> 
> Yep, never been able to make multiple copies work.  Quite frustrating.

In our experience the drivers provided by HP do have this problem, but
the 
drivers which are bundled with various windowsen usually don't; these 
drivers usually work without problems.

You might try those.

Regards,

roel

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


RE: [Samba] HP Deskjet 6940 and 6988

2008-03-17 Thread Glenn Arnold
Michael,

Yes, I am trying to use point an print.  I will look at the net command
to set printer rights.

Thanks
-Glenn

-Original Message-
From: Michael Heydon [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 2:15 AM
To: Glenn Arnold
Cc: samba@lists.samba.org
Subject: Re: [Samba] HP Deskjet 6940 and 6988

Glenn Arnold wrote:
> I tried Centos 5.1 samba version 3.0.25b with my samba smb.conf and I
> still get the General Protection fault when I click on the
Paper\Quality
> tab under Print Preferences on the HP Deskjet 6940.  Here is the
config
> that I used on Ubuntu and Centos. I just want to make sure that I have
> everything configured right with samba.  Will samba 3.2 fix this
issue?
>   
General Protection fault is an actual crash, short of (somehow) 
overwriting memory, it is not possible for one process to cause another 
one to crash. Crashes occur because the program that crashed, failed. If

the Windows driver has a bug then that isn't something that can be fixed

by samba (samba might impliment a work around by not doing something 
that induces the crash, but the flaw in the crashing program will still 
exist it will just be hidden).

Are you using point and print?

Is the user on the client a local administrator?
> 
> printer admin = @lpadmin garnold
> 
>   
This is depreciated, have you granted permissions using "net"?

*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] 

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


RE: [Samba] HP Deskjet 6940 and 6988

2008-03-17 Thread Glenn Arnold
Thanks Mark,

I will take a look at that option.

-Glenn

-Original Message-
From: Mark Gannon [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 17, 2008 1:35 AM
To: samba@lists.samba.org
Subject: Re: [Samba] HP Deskjet 6940 and 6988

Glenn,

You might consider changing your printing architecture so that instead
of 
using the Windows print driver for the HP Deskjet, you create the
printer in 
Linux using the standard CUPS procedures for that printer and then share
the 
standard Postscript driver on the samba share.  In this configuration,
you 
avoid any problems with the HP Deskjet driver for windows.  My
experience is 
that the HPIJS driver bundled with most versions of Linux is quite good.

A pretty good description of how to make this configuration work can be
found 
at:
http://www.enterprisenetworkingplanet.com/netsysm/article.php/3621876

Regards,

Mark Gannon

-- 
"Why dont you write books people can read?"
 
Nora Joyce, to her husband James
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Signal 11 in Samba adding Windows XP printer driver

2008-03-17 Thread David Simpson

Volker Lendecke wrote:

On Tue, Mar 11, 2008 at 10:58:05PM +1100, David Simpson wrote:
  

The error messages in the log file are :

[2008/03/09 17:19:48, 1] smbd/service.c:make_connection_snum(1033)
  (192.168.0.99) connect to service print$ initially as user
xx (uid=1, gid=513)
(pid 29631)
[2008/03/09 17:19:48, 0] lib/fault.c:fault_report(41)
 ===
[2008/03/09 17:19:48, 0] lib/fault.c:fault_report(42)
 INTERNAL ERROR: Signal 11 in pid 29631 (3.0.25b-1.el5_1.4)
 Please read the Trouble-Shooting section of the Samba3-HOWTO
[2008/03/09 17:19:48, 0] lib/fault.c:fault_report(44)

 From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf
[2008/03/09 17:19:48, 0] lib/fault.c:fault_report(45)
 ===
[2008/03/09 17:19:48, 0] lib/util.c:smb_panic(1654)
 PANIC (pid 29631): internal error
[2008/03/09 17:19:48, 0] lib/util.c:log_stack_trace(1758)
 BACKTRACE: 24 stack frames:
  #0 smbd(log_stack_trace+0x2d) [0xb36b9d]
  #1 smbd(smb_panic+0x5d) [0xb36ccd]
  #2 smbd [0xb216ba]
  #3 [0x110420]
  #4 smbd [0x9a53fc]
  #5 smbd(close_file+0x417) [0x9a58e7]



Would it be possible that you recompile Samba without
optimization and with -g, so that we get a better stack
trace?

Thanks,

  

Hi Volker,

The Samba server was a straight yum install for Centos 5.1 on a i386 
system, with the latest updates. I was setting this system up for a 
local church,  using some of our superseded  server  hardware, and don't 
easily have access to change things around now, as it is pretty much 
working they way the want, and most admin is done remotely, so I don't 
want to break it, as they have a lot of files being shared etc, which is 
working well. It was just the final step of setting them up with printer 
sharing that failed.


I did however change the log level to 10, and found the following in the 
messages log file :


Mar 12 21:33:52 jonah smbd[25838]: [2008/03/12 21:33:52, 0] 
librpc/ndr/ndr.c:ndr_print_debug_helper(203)
Mar 12 21:33:52 jonah smbd[25838]:   
result   : WERR_OK
Mar 12 21:34:32 jonah smbd[25838]: [2008/03/12 21:34:32, 0] 
smbd/nttrans.c:call_nt_transact_ioctl(2481)
Mar 12 21:34:32 jonah smbd[25838]:   call_nt_transact_ioctl(0x90100): 
Currently not implemented.
Mar 12 21:34:38 jonah smbd[25838]: [2008/03/12 21:34:38, 0] 
printing/nt_printing.c:move_driver_to_download_area(1829)
Mar 12 21:34:38 jonah smbd[25838]:   move_driver_to_download_area: 
Unable to rename [W32X86/PSCRIPT5.DLL] to [W32X86/3/PSCRIPT5.DLL]



Note that when it did crash with the signal 11, there were strange 
directories left in the print$ share, under the W32X86 directory, with 
names like __SKIP_034B.


Acting on the "unable to rename" error message, and comparing to our new 
servers which are based on the same distro,(but X86_64) and work fine 
for printer driver sharing and uploading, I added the following lines to 
smb.conf (in the general section) and that seemed to solve the problem, 
and I could then upload the printer drivers, and connect the printers to 
the workstations.


directory mask = 3770
create mask = 770
force create mode = 770

Hopefully this will help you sort out the issue.

If it would be of help, I could try to replicate the error on a virtual 
server and then recompile with changed flags.


Thanks very much for you help, and the fantastic product Samba is, and 
all the effort your team put in.


Regards
David






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


[Samba] Samba/Ldap problems with Versions > 3.0.24

2008-03-17 Thread Mario Gzuk
Hi,
we have a samba/ldap domain. After upgrading to versions greater than
3.0.24, there are problems with the timestamps which are correct set in
the LDAP tree.
Here are 2 examples:
---
Example 1: 
Password can change=not empty
LDAP:
sambaPwdLastSet: 1205744729
sambaPwdMustChange: 1307828342
sambaPwdCanChange: 1192276342
sambaKickoffTime: 1228086000

Samba 3.0.24 -> correct:
Logon time:   Tue, 06 Feb 2007 16:07:05 CET
Logoff time:  Tue, 10 Feb 2004 09:18:42 CET
Kickoff time: Mon, 01 Dec 2008 00:00:00 CET
Password last set:Mon, 17 Mar 2008 10:05:29 CET
Password can change:  Sat, 13 Oct 2007 13:52:22 CEST
Password must change: Sat, 11 Jun 2011 23:39:02 CEST


Samba >3.0.24 -> incorrect:
Logon time:   Tue, 06 Feb 2007 16:07:05 CET
Logoff time:  Tue, 10 Feb 2004 09:18:42 CET
Kickoff time: Mon, 01 Dec 2008 00:00:00 CET
Password last set:Mon, 17 Mar 2008 10:05:29 CET
Password can change:  Mon, 17 Mar 2008 10:05:29 CET
Password must change: Mon, 17 Mar 2008 10:06:59 CET
---
Exapmle 2:
Password can change=empty
LDAP:
sambaPwdLastSet: 1205738745
sambaPwdMustChange: 1208781070
sambaKickoffTime: 1230764400
sambaPwdCanChange -> doesnt exist

Samba 3.0.24 -> correct:
Logon time:   Wed, 07 Feb 2007 20:00:12 CET
Logoff time:  Thu, 09 Oct 2003 08:04:28 CEST
Kickoff time: Thu, 01 Jan 2009 00:00:00 CET
Password last set:Mon, 17 Mar 2008 08:25:45 CET
Password can change:  0
Password must change: Mon, 21 Apr 2008 14:31:10 CEST

Samba >3.0.24 -> incorrect:
Logon time:   Wed, 07 Feb 2007 20:00:12 CET
Logoff time:  Thu, 09 Oct 2003 08:04:28 CEST
Kickoff time: Thu, 01 Jan 2009 00:00:00 CET
Password last set:Mon, 17 Mar 2008 08:25:45 CET
Password can change:  Mon, 17 Mar 2008 08:25:45 CET
Password must change: Mon, 17 Mar 2008 08:27:15 CET
---

The time sets for "Password can change:" and "Password must change:" are
incorrect, that leads to that each user has to change his password every
time he want to log in, because the "Password must change" is 1:30
minute later than "Password can change" which is the same value like
"Password last set". So this bug exists since a half year, so I wonder
that no one other than Tomasz Chmielewski has detect this behavior. See
his unanswered messages here:
http://www.nabble.com/Re%
3A-Strange-NT_STATUS_PASSWORD-errors-after-upgrade-to-3.0.26a-td15847364.html


greetings mario

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


[Samba] Reminder: Tomorrow Bugzilla Day for Samba 3.2.0

2008-03-17 Thread Karolin Seeger
Hi folks,

this is just a short reminder for the Bugzilla Day tomorrow (March 18).

For more information see 

http://wiki.samba.org/index.php/Bugzilla_Day

cheers,
Karolin

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE



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

Re: [Samba] HP Deskjet 6940 and 6988

2008-03-17 Thread Roel van Meer

Adam Tauno Williams writes:


issue is when my users try to print multiple copies they can not through
the samba server.


Yep, never been able to make multiple copies work.  Quite frustrating.


In our experience the drivers provided by HP do have this problem, but the 
drivers which are bundled with various windowsen usually don't; these 
drivers usually work without problems.


You might try those.

Regards,

roel

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


[Samba] chdir (/var/lib/samba/profiles) failed

2008-03-17 Thread Joris Cras

L.S.

I've some problems on a couple of my samba servers.
The servers running CentOS release 5 with samba-3.0.25b-1.el5_1.4

The config is pretty standard, not much special in it.
But the log files are filling up with error messages like this one:

[2008/03/12 17:08:47, 0] smbd/service.c:set_current_service(184)
chdir (/var/lib/samba/profiles) failed

On the clients (all windows XP) are covered in error messages to like:
" Network name is no longer available "

These error messages are mainly when copying / saving / opening large 
files, +10Mb.


Does anyone have a suggestion?
I've search mailing lists and google, but didn't find an real answer on 
this question.


Any help is welcome!

Thanks in advanced.


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