Re: [Samba] Samba 4 make fails(openSUSE 12.1)

2011-11-28 Thread steve

On 28/11/11 21:14, Adam Tauno Williams wrote:

On Mon, 2011-11-28 at 20:16 +0100, steve wrote:

On 28/11/11 16:23, Adam Tauno Williams wrote:

On Mon, 2011-11-28 at 17:16 +0200, Michael Wood wrote:

2011/11/28 Samba-JP oota:

On Mon, Nov 28, 2011 at 05:52:55AM -0500, Adam Tauno Williams wrote

Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
the same failure when building.

make fails:
[ 976/3909] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function ‘tls_init_server’:
../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
../source4/lib/tls/tls.c: In function ‘tls_init_client’:
../source4/lib/tls/tls.c:569:2: warning:
‘gnutls_certificate_type_set_priority’ is deprecated (declared at
/usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
cc1: some warnings being treated as errors
Waf: Leaving directory `/home/steve/samba-master/bin'
Build failed:  ->   task failed (err #1):
   {task: cc tls.c ->   tls_1.o}
make: *** [all] Error 1

My test server (openSUSE 12.1 x86-64) has no probrem
[ 985/3936] Compiling source4/lib/tls/tls.c
[ 986/3936] Compiling source4/lib/tls/tlscert.c
../source4/lib/tls/tlscert.c:174:6: warning: no previous prototype for 
‘tls_cert_dummy’ [-Wmissing-prototypes]
[ 987/3936] Compiling source4/lib/tls/tls_tstream.
.

Could it have something to do with what packages are installed?  e.g.
if you don't have the GnuTLS devel package installed it breaks?
I don't have an OpenSUSE box to test this theory.

I have libgnutls-devel-3.0.3-5.2.1.x86_64 installed.
GCC is "gcc (SUSE Linux) 4.6.2".

I have
rpm -q gcc
gcc-4.6-15.1.3.i586
rpm -q libgnutls-devel
libgnutls-devel-3.0.3-5.1.2.i586
make is ok on ubuntu 11.10 but not with openSUSE 12.1
What are we missing?
Any ideas?


Use an older gcc?  I pulled down gcc-3.3 using zypper.

$ CPP=/usr/bin/cpp-3.3 CC=/usr/bin/gcc-3.3 ./configure.developer
--prefix=/opt/s4
Checking for program gcc or cc   : /usr/bin/gcc-3.3
Checking for program ar  : /usr/bin/ar
Checking for program ranlib  : /usr/bin/ranlib
...

But when it gets down to the TLS stuff it still fails.

Waf: Entering directory `/root/samba-master/bin'
[ 126/3908] Generating VERSION
[ 162/3908] Generating smbd/build_options.c
[ 977/3908] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function `tls_init_server':
../source4/lib/tls/tls.c:508: error: implicit declaration of function
`gnutls_transport_set_lowat'
../source4/lib/tls/tls.c: In function `tls_init_client':
../source4/lib/tls/tls.c:569: warning:
`gnutls_certificate_type_set_priority' is deprecated (declared
at /usr/include/gnutls/compat.h:290)
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  ->  task failed (err #1):
{task: cc tls.c ->  tls_1.o}
make: *** [all] Error 1


Got passed the error:

In samba-master directory.

added:--enable-gnutls \

to config.developer

cat configure.developer
#!/bin/sh
`dirname $0`/configure -C \
--enable-developer \
--enable-socket-wrapper \
--enable-nss-wrapper \
--enable-gnutls \
"$@"

Then from:http://aur.archlinux.org/packages.php?ID=40043

sed -i -e "s/gnutls_transport_set_lowat(tlss->tls_session, 0);//" \
source4/lib/tls/tls_tstream.c
sed -i -e "s/gnutls_transport_set_lowat(tls->session, 0);//" \
source4/lib/tls/tls.c

Am now at 2503/3909 of the make. The only test box I have is a 512Mb 
acer laptop running 12.1 from a 16Gb usb stick. Not ideal for code of 
this size!


HTH Steve




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

Re: [Samba] Very strange permission problem: samba on zfs-fuse

2011-11-28 Thread Fajar Priyanto
On Tue, Nov 29, 2011 at 5:10 AM, Jeremy Allison  wrote:
> On Mon, Nov 28, 2011 at 10:51:22AM +0800, Fajar Priyanto wrote:
>> Hi all,
>> Centos 5.7
>> samba-common-3.0.33-3.29.el5_7.4
>> samba-3.0.33-3.29.el5_7.4
>> zfs-fuse-0.6.9_p1-6.20100709git.el5.1
>> Does anyone has ever encounter this problem?
>
> 3.0.x is a *very* old release.
>
> If you can reproduce with 3.5.x or 3.6.x you'll get much
> more response for a fix.

Hi Jeremy, thanks for the reply.
It comes from the standard Centos 5.7.
Are you suggesting that I should try to somehow upgrade the Samba?
Let me see if I can do that without replacing the Centos.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Environment variables in smb.conf -- inconsistent results

2011-11-28 Thread E. Westbrook
On Mon, Nov 28, 2011 at 14:38, Jeremy Allison  wrote:

> On Sat, Nov 26, 2011 at 07:01:58PM -0700, E. Westbrook wrote:
> > Shouldn't %$() do a substitution anywhere it is supplied?
>
> Yes, it should be. Anything that pulls a parameter through lp_string()
> should call talloc_sub_basic() which does the environment variable
> substitutions.
>

Thanks very much, Jeremy, that gives me something to go on.  I'll let you
know if if I find anything beyond pilot error on my part.

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


Re: [Samba] Environment variables in smb.conf -- inconsistent results

2011-11-28 Thread Jeremy Allison
On Sat, Nov 26, 2011 at 07:01:58PM -0700, E. Westbrook wrote:
> Hello!
> 
> I am trying to use environment variables in my samba configuration file.
> The %$() directive does not seem to work consistently.  Do I misunderstand
> something?
> 
> As a success example, "include = %$(SVCDIR)/conf/smb-shares.conf" works
> fine.  Logging with debuglevel = 3 indicates successful inclusion of the
> secondary file.
> 
> However, as a failure example, "interfaces = %$(INTERFACES)" does not work
> at all, and I get an error such as:
> 
> interpret_string_addr_internal: getaddrinfo failed for name %$(INTERFACES)
> > [Name or service not known]
> > interpret_interface: Can't find address for %$(INTERFACES)
> >
> 
> As another failure example, pointing to a passdb backend using "passdb
> backend = tdbsam:%$(SVCDIR)/conf/smbusers" fails to substitute the
> environment variable similarly, to wit:
> 
> tdb(unnamed): tdb_open_ex: could not open file %$(SVCDIR)/conf/smbusers: No
> > such file or directory
> > Could not open tdb: No such file or directory
> > tdbsam_open: Failed to open/create TDB passwd [%$(SVCDIR)/conf/smbusers]
> > tdbsam_getsampwnam: failed to open %$(SVCDIR)/conf/smbusers!
> 
> 
> What gives?  Am I doing something wrong?  Shouldn't %$() do a substitution
> anywhere it is supplied?

Yes, it should be. Anything that pulls a parameter through lp_string()
should call talloc_sub_basic() which does the environment variable
substitutions.

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


Re: [Samba] Maintain file ownership when writing to share with different owner

2011-11-28 Thread Jeremy Allison
On Mon, Nov 28, 2011 at 01:11:12AM -0500, Derek Lewis wrote:
> Hello,
> 
> I have a question regarding control of file ownership: I have shares accessed 
> by several users belonging to a group though the share is owned by only one 
> of the users. I can force the group id for files written to the share to 
> match the share group though I wondered if I can preserve the file's original 
> owner id (one of the users in the group) if a file is copied from another 
> location?
> 
> Related to this question: I am looking for an up to date source of 
> information on using acls.
> 
> I have implemented acl and extended attribute support for storing dos file 
> attributes and metadata.

Look at the "inherit owner" option in smb.conf.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Very strange permission problem: samba on zfs-fuse

2011-11-28 Thread Jeremy Allison
On Mon, Nov 28, 2011 at 10:51:22AM +0800, Fajar Priyanto wrote:
> Hi all,
> Centos 5.7
> samba-common-3.0.33-3.29.el5_7.4
> samba-3.0.33-3.29.el5_7.4
> zfs-fuse-0.6.9_p1-6.20100709git.el5.1
> 
> smb.conf
> [depot]
> path = /data/depot
> public = no
> writable = yes
> directory mask = 2775
> create mask = 0664
> vfs objects = recycle
> recycle:repository = .deleted/%U
> recycle:keeptree = Yes
> recycle:touch = Yes
> recycle:versions = Yes
> recycle:maxsixe = 0
> recycle:exclude = *.tmp
> recycle:exclude_dir = /tmp
> recycle:noversions = *.doc
> 
> I have asked this in zfs-fuse list, but still in discussion
> 
> I have setup this samba share on a zfs-fuse filesystem.
> drwxrwsr-x 16 backup userlab 27 Nov 28 10:12 depot
> 
> All samba users are secondary member of 'userlab' group.
> (usermod -G userlab user1, etc)
> 
> The problem I have is that after some time, some users begin
> experiencing permission denied when try to put files or create
> directories on the samba share.
> 
> smbd.log shows:
> [2011/11/28 10:13:29, 2] smbd/open.c:open_directory(2092)
>   open_directory: unable to create New Folder (2). Error was
> NT_STATUS_ACCESS_DENIED
> [2011/11/28 10:13:29, 2] smbd/open.c:open_directory(2092)
>   open_directory: unable to create .. Error was 
> NT_STATUS_OBJECT_NAME_COLLISION
> [2011/11/28 10:13:29, 2] smbd/open.c:open_directory(2092)
> 
> Strange thing is, I experimenting by making 'userlab' as my 'fajar'
> user's primary group (usermod -g userlab fajar). And my 'fajar'
> account doesn't have this permission denied problem. I don't know yet
> if this is a permanent fix or not.
> 
> Does anyone has ever encounter this problem?

3.0.x is a *very* old release.

If you can reproduce with 3.5.x or 3.6.x you'll get much
more response for a fix.

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


Re: [Samba] Samba 4 make fails(openSUSE 12.1)

2011-11-28 Thread Adam Tauno Williams
On Mon, 2011-11-28 at 20:16 +0100, steve wrote:
> On 28/11/11 16:23, Adam Tauno Williams wrote:
> > On Mon, 2011-11-28 at 17:16 +0200, Michael Wood wrote:
> >> 2011/11/28 Samba-JP oota:
> >>> On Mon, Nov 28, 2011 at 05:52:55AM -0500, Adam Tauno Williams wrote
>  Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
>  the same failure when building.
> > make fails:
> > [ 976/3909] Compiling source4/lib/tls/tls.c
> > ../source4/lib/tls/tls.c: In function ‘tls_init_server’:
> > ../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
> > ‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
> > ../source4/lib/tls/tls.c: In function ‘tls_init_client’:
> > ../source4/lib/tls/tls.c:569:2: warning:
> > ‘gnutls_certificate_type_set_priority’ is deprecated (declared at
> > /usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
> > cc1: some warnings being treated as errors
> > Waf: Leaving directory `/home/steve/samba-master/bin'
> > Build failed:  ->  task failed (err #1):
> >   {task: cc tls.c ->  tls_1.o}
> > make: *** [all] Error 1
> >>> My test server (openSUSE 12.1 x86-64) has no probrem
> >>> [ 985/3936] Compiling source4/lib/tls/tls.c
> >>> [ 986/3936] Compiling source4/lib/tls/tlscert.c
> >>> ../source4/lib/tls/tlscert.c:174:6: warning: no previous prototype for 
> >>> ‘tls_cert_dummy’ [-Wmissing-prototypes]
> >>> [ 987/3936] Compiling source4/lib/tls/tls_tstream.
> >>> .
> >> Could it have something to do with what packages are installed?  e.g.
> >> if you don't have the GnuTLS devel package installed it breaks?
> >> I don't have an OpenSUSE box to test this theory.
> > I have libgnutls-devel-3.0.3-5.2.1.x86_64 installed.
> > GCC is "gcc (SUSE Linux) 4.6.2".
> I have
> rpm -q gcc
> gcc-4.6-15.1.3.i586
> rpm -q libgnutls-devel
> libgnutls-devel-3.0.3-5.1.2.i586
> make is ok on ubuntu 11.10 but not with openSUSE 12.1
> What are we missing?
> Any ideas?

Use an older gcc?  I pulled down gcc-3.3 using zypper.

$ CPP=/usr/bin/cpp-3.3 CC=/usr/bin/gcc-3.3 ./configure.developer
--prefix=/opt/s4
Checking for program gcc or cc   : /usr/bin/gcc-3.3 
Checking for program ar  : /usr/bin/ar 
Checking for program ranlib  : /usr/bin/ranlib 
...

But when it gets down to the TLS stuff it still fails.

Waf: Entering directory `/root/samba-master/bin'
[ 126/3908] Generating VERSION
[ 162/3908] Generating smbd/build_options.c
[ 977/3908] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function `tls_init_server':
../source4/lib/tls/tls.c:508: error: implicit declaration of function
`gnutls_transport_set_lowat'
../source4/lib/tls/tls.c: In function `tls_init_client':
../source4/lib/tls/tls.c:569: warning:
`gnutls_certificate_type_set_priority' is deprecated (declared
at /usr/include/gnutls/compat.h:290)
Waf: Leaving directory `/root/samba-master/bin'
Build failed:  -> task failed (err #1): 
{task: cc tls.c -> tls_1.o}
make: *** [all] Error 1



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

[Samba] Using winbind and UPNs

2011-11-28 Thread Jason Gauthier
Greetings all,

  I've been a long term user of the samba, ntlm, winbind, and active directory 
as the backend authentication mechanism for a squid proxy server.  
Recently, a challenge has presented itself and I am still seeking an answer.

Currently, my users login to the PCs, VPN connection, etc with just a username. 
Ie:  jgauthier
I would like to have them login to these services using any number of their 
assigned UPNs.

For instance, my email address is a valid UPN in my AD.  However, using this 
fails authentication.I did some digging and found that wbinfo -n cannot 
look up the name:

wbinfo -n jgauth...@validupn.com
Could not lookup name jgauth...@validupn.com

The server logs inform:
[2011/11/28 14:11:21.132945,  3] 
winbindd/winbindd_lookupname.c:69(winbindd_lookupname_send)
  lookupname validupn.com\jgauthier
[2011/11/28 14:11:21.133057,  5] 
winbindd/winbindd_lookupname.c:105(winbindd_lookupname_recv)
  Could not convert sid S-0-0: NT_STATUS_NONE_MAPPED

If appears using the AD domain name works just fine.  However, I do not want to 
use the AD domain name.  It is my goal to use one of our *many* possible 
secondary UPNs.  

I'd appreciate any pointers in achieving this goal.

Thanks,

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


Re: [Samba] Samba 4 make fails(openSUSE 12.1)

2011-11-28 Thread steve

On 28/11/11 16:23, Adam Tauno Williams wrote:

On Mon, 2011-11-28 at 17:16 +0200, Michael Wood wrote:

2011/11/28 Samba-JP oota:

On Mon, Nov 28, 2011 at 05:52:55AM -0500, Adam Tauno Williams wrote

Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
the same failure when building.

make fails:
[ 976/3909] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function ‘tls_init_server’:
../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
../source4/lib/tls/tls.c: In function ‘tls_init_client’:
../source4/lib/tls/tls.c:569:2: warning:
‘gnutls_certificate_type_set_priority’ is deprecated (declared at
/usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
cc1: some warnings being treated as errors
Waf: Leaving directory `/home/steve/samba-master/bin'
Build failed:  ->  task failed (err #1):
  {task: cc tls.c ->  tls_1.o}
make: *** [all] Error 1

My test server (openSUSE 12.1 x86-64) has no probrem
[ 985/3936] Compiling source4/lib/tls/tls.c
[ 986/3936] Compiling source4/lib/tls/tlscert.c
../source4/lib/tls/tlscert.c:174:6: warning: no previous prototype for 
‘tls_cert_dummy’ [-Wmissing-prototypes]
[ 987/3936] Compiling source4/lib/tls/tls_tstream.
.

Could it have something to do with what packages are installed?  e.g.
if you don't have the GnuTLS devel package installed it breaks?
I don't have an OpenSUSE box to test this theory.


I have libgnutls-devel-3.0.3-5.2.1.x86_64 installed.

GCC is "gcc (SUSE Linux) 4.6.2".


I have
rpm -q gcc
gcc-4.6-15.1.3.i586

rpm -q libgnutls-devel
libgnutls-devel-3.0.3-5.1.2.i586

make is ok on ubuntu 11.10 but not with openSUSE 12.1

What are we missing?
Any ideas?
Thanks.




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


[Samba] Forget Samba password immediately

2011-11-28 Thread Guitart Francesc

Hi,

I have one NAS with SAMBA activated with this structure:

\\NAS.domain.com\sharedA
\\NAS.domain.com\sharedB
\\NAS.domain.com\sharedC
...

Every shared folder are accessible only by one user:

UserA >> sharedA
UserB >> sharedB
UserC >> sharedC
...

When I try to connect from Debian 6 it asks me the user and password 
every time I get connected. I have clicked "Forget password immediately" 
on the windows where I put the credentials.


If I try to connect from CentOS 5.7 it only asks me the user and 
password when I get connected to a shared folder where I haven't been 
connected before. I'm not asked for the shared folders where I log in 
before although I'm disconnected previously. So after I get connected as 
userA and as userB, if I get connected as userC, I have acces to:


\\NAS.domain.com\sharedA
\\NAS.domain.com\sharedB
\\NAS.domain.com\sharedC

Who manages the policy of SMB passwords? How can I forget SMB password 
immediately? Or how I can really disconnect from NAS?


Thanks.


--
Francesc Guitart
Service CRI
ENISE

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


Re: [Samba] Samba 4 make fails(openSUSE 12.1)

2011-11-28 Thread Adam Tauno Williams
On Mon, 2011-11-28 at 17:16 +0200, Michael Wood wrote:
> 2011/11/28 Samba-JP oota :
> > On Mon, Nov 28, 2011 at 05:52:55AM -0500, Adam Tauno Williams wrote
> >> Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
> >> the same failure when building.
> >> > make fails:
> >> > [ 976/3909] Compiling source4/lib/tls/tls.c
> >> > ../source4/lib/tls/tls.c: In function ‘tls_init_server’:
> >> > ../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
> >> > ‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
> >> > ../source4/lib/tls/tls.c: In function ‘tls_init_client’:
> >> > ../source4/lib/tls/tls.c:569:2: warning:
> >> > ‘gnutls_certificate_type_set_priority’ is deprecated (declared at
> >> > /usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
> >> > cc1: some warnings being treated as errors
> >> > Waf: Leaving directory `/home/steve/samba-master/bin'
> >> > Build failed:  -> task failed (err #1):
> >> >  {task: cc tls.c -> tls_1.o}
> >> > make: *** [all] Error 1
> > My test server (openSUSE 12.1 x86-64) has no probrem
> > [ 985/3936] Compiling source4/lib/tls/tls.c
> > [ 986/3936] Compiling source4/lib/tls/tlscert.c
> > ../source4/lib/tls/tlscert.c:174:6: warning: no previous prototype for 
> > ‘tls_cert_dummy’ [-Wmissing-prototypes]
> > [ 987/3936] Compiling source4/lib/tls/tls_tstream.
> > .
> Could it have something to do with what packages are installed?  e.g.
> if you don't have the GnuTLS devel package installed it breaks?
> I don't have an OpenSUSE box to test this theory.

I have libgnutls-devel-3.0.3-5.2.1.x86_64 installed.

GCC is "gcc (SUSE Linux) 4.6.2".

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

Re: [Samba] Samba 4 make fails(openSUSE 12.1)

2011-11-28 Thread Michael Wood
2011/11/28 Samba-JP oota :
> On Mon, Nov 28, 2011 at 05:52:55AM -0500, Adam Tauno Williams wrote:
>
>> Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
>> the same failure when building.
>>
>> > make fails:
>> > [ 976/3909] Compiling source4/lib/tls/tls.c
>> > ../source4/lib/tls/tls.c: In function ‘tls_init_server’:
>> > ../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
>> > ‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
>> > ../source4/lib/tls/tls.c: In function ‘tls_init_client’:
>> > ../source4/lib/tls/tls.c:569:2: warning:
>> > ‘gnutls_certificate_type_set_priority’ is deprecated (declared at
>> > /usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
>> > cc1: some warnings being treated as errors
>> > Waf: Leaving directory `/home/steve/samba-master/bin'
>> > Build failed:  -> task failed (err #1):
>> >          {task: cc tls.c -> tls_1.o}
>> > make: *** [all] Error 1
>
>
> My test server (openSUSE 12.1 x86-64) has no probrem.
>
> [ 985/3936] Compiling source4/lib/tls/tls.c
> [ 986/3936] Compiling source4/lib/tls/tlscert.c
> ../source4/lib/tls/tlscert.c:174:6: warning: no previous prototype for 
> ‘tls_cert_dummy’ [-Wmissing-prototypes]
> [ 987/3936] Compiling source4/lib/tls/tls_tstream.c
>
> .
>
> oota

Could it have something to do with what packages are installed?  e.g.
if you don't have the GnuTLS devel package installed it breaks?

I don't have an OpenSUSE box to test this theory.

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


Re: [Samba] samba PANIC

2011-11-28 Thread skull

thanks.
its a redhat system so a "service smb reload" does the trick.
i'll raise the loglevel and provide more information later.
- Original Message - 
From: "Dermot" 

To: "skull" 
Sent: Monday, November 28, 2011 1:56 PM
Subject: Re: [Samba] samba PANIC



On 28 November 2011 12:37, skull  wrote:
due tu the fact that the server is in a productive environment i am not 
able

to restart the samba service.
is there a way do raise the loglevel without restarting samba?

I found an old way to to it in an oreilly openbook but im not sure if 
this

still works
http://oreilly.com/openbook/samba/book/ch09_01.html
9.1.1.2 Activating and deactivating logging

# Increase the logging level by 1
kill -SIGUSR1 1234

# Decrease the logging level by 1
kill -SIGUSR2 1234



You should be able to reload your configuration without restarting the
service. You can either edit you config file and change the debug
level or change the command line that runs you smbd to include with
the -d flag at a level you want.

The way you reload you config is dependent on you distribution,
perhaps '/etc/init,d/samba reload' or kill -HUP `pgrepsmbd` but you'd
want to test this on a non-production server first.
HTH,
Dermot 


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


[Samba] Conversion Error in migration of printer drivers from Windows seven 64 to Samba PDC 3.5.11

2011-11-28 Thread ple001

I get problem migrating printer drivers from Windows seven 64 bits
workstation  to Samba PDC 3.5.11

The driver works fine on the workstation

The migration command
net -d 4 rpc printer MIGRATE DRIVERS XeroxM24 -S xxx.xxx.xxx.36 -U
'username'

returns the messages:

convert_string_internal: Conversion error: Illegal multibyte sequence
(..)
ndr_push_error(5): Bad character conversion
cannot add driver: DOS code 0xb75c1223

All the driver files are copied on the samba server after the net rpc
command and the size of each is the same between workstation and samba
server.
The driver is not installed in the printing tdb files.

enumdrivers in rpcclient does not list anything.

Is the driver faulty or not supported by Samba ?
What can I do ?


Below is the end of level 4 debugging output of net rcp command.

got printer handle for printer: \\xxx.xxx.xxx.36\XeroxM24, server:
\\xxx.xxx.xxx.36
got 1 printers
migrating printer driver for:   [\\xxx.xxx.xxx.36\XeroxM24] / [XeroxM24]
got printer handle for printer: \\127.0.0.1\XeroxM24, server: \\127.0.0.1
got printer handle for printer: \\xxx.xxx.xxx.36\XeroxM24, server:
\\xxx.xxx.xxx.36
cannot get driver (for architecture: Windows 4.0):
WERR_UNKNOWN_PRINTER_DRIVER
cannot get driver (for architecture: Windows NT x86):
WERR_UNKNOWN_PRINTER_DRIVER
cannot get driver (for architecture: Windows NT x86):
WERR_UNKNOWN_PRINTER_DRIVER
cannot get driver (for architecture: Windows NT R4000):
WERR_INVALID_ENVIRONMENT
cannot get driver (for architecture: Windows NT Alpha_AXP):
WERR_INVALID_ENVIRONMENT
cannot get driver (for architecture: Windows NT PowerPC):
WERR_INVALID_ENVIRONMENT
cannot get driver (for architecture: Windows IA64):
WERR_UNKNOWN_PRINTER_DRIVER
cannot create directory \x64: NT_STATUS_OBJECT_NAME_COLLISION
opening file \x64\3\PSCRIPT5.DLL on originating server
opening file \x64\PSCRIPT5.DLL on destination server
opening file \x64\3\XRCC2EE2.PPD on originating server
opening file \x64\XRCC2EE2.PPD on destination server
opening file \x64\3\PS5UI.DLL on originating server
opening file \x64\PS5UI.DLL on destination server
opening file \x64\3\PSCRIPT.HLP on originating server
opening file \x64\PSCRIPT.HLP on destination server
opening file \x64\3\PSCRIPT.NTF on originating server
opening file \x64\PSCRIPT.NTF on destination server
opening file \x64\3\PS_SCHM.GDL on originating server
opening file \x64\PS_SCHM.GDL on destination server
convert_string_internal: Conversion error: Illegal multibyte sequence
(..)
ndr_push_error(5): Bad character conversion
cannot add driver: DOS code 0xb75c1223
rpc command function failed! (NT_STATUS_UNSUCCESSFUL)
return code = -1


Thank you for your help

LG

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


Re: [Samba] samba PANIC

2011-11-28 Thread skull
due tu the fact that the server is in a productive environment i am not able 
to restart the samba service.

is there a way do raise the loglevel without restarting samba?

I found an old way to to it in an oreilly openbook but im not sure if this 
still works

http://oreilly.com/openbook/samba/book/ch09_01.html
9.1.1.2 Activating and deactivating logging

# Increase the logging level by 1
kill -SIGUSR1 1234

# Decrease the logging level by 1
kill -SIGUSR2 1234


- Original Message - 
From: "Volker Lendecke" 

To: "skull" 
Cc: 
Sent: Monday, November 28, 2011 11:19 AM
Subject: Re: [Samba] samba PANIC



On Mon, Nov 28, 2011 at 11:15:52AM +0100, skull wrote:

We got another Crash today.

Still the same error message as last thursday.
Does no one have an idea where to begin my search?
Do you guys need more information?


Exact Samba version, your smb.conf and a debug level 10 log
of smbd leading to that crash would tremendously help.

With best regards,

Volker Lendecke

--
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:kont...@sernet.de 


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


Re: [Samba] Samba 4 make fails

2011-11-28 Thread steve

On 28/11/11 11:51, Adam Tauno Williams wrote:

On Mon, 2011-11-28 at 11:49 +0100, steve wrote:

Samba 4 git from 1 hour ago. openSUSE 12.1


Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
the same failure when building.


make fails:
[ 976/3909] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function ‘tls_init_server’:
../source4/lib/tls/tls.c:508:2: error: implicit declaration of function
‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
../source4/lib/tls/tls.c: In function ‘tls_init_client’:
../source4/lib/tls/tls.c:569:2: warning:
‘gnutls_certificate_type_set_priority’ is deprecated (declared at
/usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
cc1: some warnings being treated as errors
Waf: Leaving directory `/home/steve/samba-master/bin'
Build failed:  ->  task failed (err #1):
  {task: cc tls.c ->  tls_1.o}
make: *** [all] Error 1




Just tried with the samba-4.0.0alpha17 tarball. Same error. Problem with 
openSUSE 12.1?


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

Re: [Samba] Samba 4 make fails

2011-11-28 Thread Adam Tauno Williams
On Mon, 2011-11-28 at 11:49 +0100, steve wrote:
> Samba 4 git from 1 hour ago. openSUSE 12.1

Yep.  I updated my test VM to openSUSE 12.1 [Bind 9.8!!!].  And I get
the same failure when building.

> make fails:
> [ 976/3909] Compiling source4/lib/tls/tls.c
> ../source4/lib/tls/tls.c: In function ‘tls_init_server’:
> ../source4/lib/tls/tls.c:508:2: error: implicit declaration of function 
> ‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]
> ../source4/lib/tls/tls.c: In function ‘tls_init_client’:
> ../source4/lib/tls/tls.c:569:2: warning: 
> ‘gnutls_certificate_type_set_priority’ is deprecated (declared at 
> /usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]
> cc1: some warnings being treated as errors
> Waf: Leaving directory `/home/steve/samba-master/bin'
> Build failed:  -> task failed (err #1):
>  {task: cc tls.c -> tls_1.o}
> make: *** [all] Error 1


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

[Samba] How to open a session between client and server.

2011-11-28 Thread nishant mungse
Hi,

I have been tracing the code of smbclient, I just want to know which are
functions that are called for creating a simple session between client and
server.

Can anyone tell what are things required to open a session between client
and server.

Please help me ASAP.

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


[Samba] Samba 4 make fails

2011-11-28 Thread steve

Hi

Samba 4 git from 1 hour ago. openSUSE 12.1

make fails:

[ 976/3909] Compiling source4/lib/tls/tls.c
../source4/lib/tls/tls.c: In function ‘tls_init_server’:
../source4/lib/tls/tls.c:508:2: error: implicit declaration of function 
‘gnutls_transport_set_lowat’ [-Werror=implicit-function-declaration]

../source4/lib/tls/tls.c: In function ‘tls_init_client’:
../source4/lib/tls/tls.c:569:2: warning: 
‘gnutls_certificate_type_set_priority’ is deprecated (declared at 
/usr/include/gnutls/compat.h:288) [-Wdeprecated-declarations]

cc1: some warnings being treated as errors

Waf: Leaving directory `/home/steve/samba-master/bin'
Build failed:  -> task failed (err #1):
{task: cc tls.c -> tls_1.o}
make: *** [all] Error 1


openSUSE 12.1

Any ideas?
Cheers, Steve.

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


Re: [Samba] Exporting tdbsam

2011-11-28 Thread Adam Tauno Williams
On Mon, 2011-11-28 at 16:04 +0800, Fajar Priyanto wrote:
> Hi all,
> I'm trying to export the tdbsam
> pdbedit -e tdbsam:backup-tdbsam_2028
> tdbsam_open: Converting version 0 database to version 3
> Looks successful, but the resulting file is only 4K, whereas the
> passdb.tdb file is 60K
> Does it successfully exported?

Once upon a time it was possible to export to xml.

pdbedit -e xml:backup.xml

If that still works you can then open the file in a viewer and verify
what is there.

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


Re: [Samba] samba PANIC

2011-11-28 Thread Volker Lendecke
On Mon, Nov 28, 2011 at 11:15:52AM +0100, skull wrote:
> We got another Crash today.
> 
> Still the same error message as last thursday.
> Does no one have an idea where to begin my search?
> Do you guys need more information?

Exact Samba version, your smb.conf and a debug level 10 log
of smbd leading to that crash would tremendously help.

With best regards,

Volker Lendecke

-- 
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:kont...@sernet.de
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba PANIC

2011-11-28 Thread skull

We got another Crash today.

Still the same error message as last thursday.
Does no one have an idea where to begin my search?
Do you guys need more information?

greetings

here once again the error message from thursday:
Nov 25 07:40:08 dc smbd[1311]: [2011/11/25 07:40:08.237930,  0] 
locking/locking.c:804(share_mode_lock_destructor)

Nov 25 07:40:08 dc smbd[1311]:   store returned NT_STATUS_UNSUCCESSFUL
Nov 25 07:40:08 dc smbd[1311]: [2011/11/25 07:40:08.238030,  0] 
lib/util.c:1468(smb_panic)
Nov 25 07:40:08 dc smbd[1311]:   PANIC (pid 1311): could not store share 
mode entry: NT_STATUS_UNSUCCESSFUL
Nov 25 07:40:08 dc smbd[1311]: [2011/11/25 07:40:08.242848,  0] 
lib/util.c:1572(log_stack_trace)

Nov 25 07:40:08 dc smbd[1311]:   BACKTRACE: 21 stack frames:
Nov 25 07:40:08 dc smbd[1311]:#0 smbd(log_stack_trace+0x2d) [0x71cb80]
Nov 25 07:40:08 dc smbd[1311]:#1 smbd(smb_panic+0x7c) [0x71ccb2]
Nov 25 07:40:08 dc smbd[1311]:#2 smbd [0x6a3fad]
Nov 25 07:40:08 dc smbd[1311]:#3 smbd(_talloc_free+0x162) [0xaaff0f]
Nov 25 07:40:08 dc smbd[1311]:#4 smbd [0x4b9708]
Nov 25 07:40:08 dc smbd[1311]:#5 smbd(create_file_default+0x236) 
[0x4b9dd6]

Nov 25 07:40:08 dc smbd[1311]:#6 smbd [0x4f9400]
Nov 25 07:40:08 dc smbd[1311]:#7 smbd(smb_vfs_call_create_file+0xac) 
[0x4bfdaa]
Nov 25 07:40:08 dc smbd[1311]:#8 smbd(reply_ntcreate_and_X+0x5ce) 
[0x47ea59]

Nov 25 07:40:08 dc smbd[1311]:#9 smbd [0x4d1e26]
Nov 25 07:40:09 dc smbd[1311]:#10 smbd [0x4d4eb1]
Nov 25 07:40:09 dc smbd[1311]:#11 smbd [0x4d5777]
Nov 25 07:40:09 dc smbd[1311]:#12 smbd(run_events+0x276) [0x72d5c1]
Nov 25 07:40:09 dc smbd[1311]:#13 smbd(smbd_process+0xb40) [0x4d4641]
Nov 25 07:40:09 dc smbd[1311]:#14 smbd [0xaae3bb]
Nov 25 07:40:10 dc smbd[1311]:#15 smbd(run_events+0x276) [0x72d5c1]
Nov 25 07:40:10 dc smbd[1311]:#16 smbd [0x72d876]
Nov 25 07:40:10 dc smbd[1311]:#17 smbd(_tevent_loop_once+0x9d) 
[0x72ddbd]

Nov 25 07:40:10 dc smbd[1311]:#18 smbd(main+0x1277) [0xaae085]
Nov 25 07:40:10 dc smbd[1311]:#19 /lib/libc.so.6(__libc_start_main+0xdc) 
[0xff5dec]

Nov 25 07:40:11 dc smbd[1311]:#20 smbd [0x450fa1]
Nov 25 07:40:11 dc smbd[1311]: [2011/11/25 07:40:11.378394,  0] 
lib/fault.c:326(dump_core)
Nov 25 07:40:11 dc smbd[1311]:   dumping core in 
/var/log/samba/cores/smbd- Original Message - 
From: "skull" 

To: 
Sent: Friday, November 25, 2011 4:39 PM
Subject: Re: [Samba] samba PANIC



thanks for the hint

but could that really the cause for the crash?

- Original Message - 
From: "fuzzy_4711" 

To: 
Sent: Friday, November 25, 2011 3:54 PM
Subject: Re: [Samba] samba PANIC





 Original - Text 

Error was Transport endpoint is not connected


http://lists.debian.org/debian-user-german/2006/02/msg02752.html
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

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


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


[Samba] Exporting tdbsam

2011-11-28 Thread Fajar Priyanto
Hi all,
I'm trying to export the tdbsam:

pdbedit -e tdbsam:backup-tdbsam_2028
tdbsam_open: Converting version 0 database to version 3.

Looks successful, but the resulting file is only 4K, whereas the
passdb.tdb file is 60K.

Does it successfully exported?

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