Re: Problems with ACLs in 2.2.8

2003-03-25 Thread Michael Steffens
Jan Houstek wrote: server: linux 2.4.19 with xfs 1.2 and its ACL libacl 2.0.19 samba 2.2.8 compiled from source with --with-acl-support acting as PDC interesting parts of smb.conf create mask = 0600 directory mask = 0700

Re: more then one backend in one module

2003-03-25 Thread Jelmer Vernooij
On Tue, Mar 25, 2003 at 08:11:35AM +0100, Stefan (metze) Metzmacher wrote about 'more then one backend in one module': HI Jelmer, how do we handle *sam_nua modules and friends... 'ldapsam' and 'ldapsam_nua' are in pdb_ldap.c 'sam','samstrict' and 'samstrict_dc' are all in auth_sam.c if

Re: Machine account password interoperablity for Samba 3.0secrets.tdb and keytabs

2003-03-25 Thread Luke Howard
I really don't think that putting keytab code in to Samba is the right answer. Do you really want to be in charge of modifying keytabs? This could get quite complicate -- especially when you multiply the effort by the number of possible encryption types... I don't think it's that

Re: Machine account password interoperablity for Samba 3.0secrets.tdb and keytabs

2003-03-25 Thread Andrew Bartlett
On Tue, 2003-03-25 at 22:36, Luke Howard wrote: I really don't think that putting keytab code in to Samba is the right answer. Do you really want to be in charge of modifying keytabs? This could get quite complicate -- especially when you multiply the effort by the number of possible

samba cluster active-active configuration.

2003-03-25 Thread Nir Livni
Hi all, Sorry for posting this one here, I guess it is a bit out of topic, But I tried about 4 or 5 other mailing lists - no luck yet. I'm trying to configure my samba on a RedHat AS 2.1, to run in an active-active configuration. The Red Hat Cluster Manager Installation and Administration Guide

Re: Machine account password interoperablity for Samba 3.0secrets.tdb and keytabs

2003-03-25 Thread Luke Howard
I agree that if Samba is changing the password for a particular kerberos principal, then it should store the hashes in the keytab. The idea of *finally* getting kerberos useful on real sites is just too appealing :-) Naturally, the original plaintext password should stay basically where it

Re: Machine account password interoperablity for Samba 3.0secrets.tdb and keytabs

2003-03-25 Thread Andrew Bartlett
On Tue, 2003-03-25 at 22:55, Luke Howard wrote: I agree that if Samba is changing the password for a particular kerberos principal, then it should store the hashes in the keytab. The idea of *finally* getting kerberos useful on real sites is just too appealing :-) Naturally, the

compiling with gcc 3.3

2003-03-25 Thread Stephan Kulow
Hi! Compiling samba CVS with gcc 3.3 gives quite some annoying warnings in proto.h because exp and log are builtins. Attached is a patch that replaces exp with expr and log with clog (didn't know a better name for it) in the affected c files. Please apply. Greetings, Stephan Index:

[PATCH] Better fix for devicetype?

2003-03-25 Thread Andrew Bartlett
Would this be a better fix for the devicetype problem? It looks like we are putting the strings into the buffer twice, and we are not returning the 'fixed' devicetype for both protocol levels ( NT1 and NT1). What happened here is that jermey 'fixed' a const warning. This meant that this

Mounting to a Windows Share

2003-03-25 Thread Eisenstein, Doug
From my RH 8 box I use smbmount to mount a share to \\windows2k\fileshare1 \\windows2k\fileshare1 . The mount point is created.. Now I want to use either chmod, or chown and change the file called 'testing.txt', no matter what I do I still get the error operation not permitted. My whole point

Re: Mounting to a Windows Share

2003-03-25 Thread Ronan Waide
On March 25, [EMAIL PROTECTED] said: Can anyone tell me if this is possible and if so what actions I must take? Not presently possible. The files remain owned by the user/group that you used for the smbmount command. Cheers, Waider. -- [EMAIL PROTECTED] / Yes, it /is/ very personal of me.

RE: Mounting to a Windows Share

2003-03-25 Thread Eisenstein, Doug
Does anyone know if this will be possible in future releases of samba? Anyone have a work around? Thanks again! -Original Message- From: Ronan Waide [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 8:59 AM To: Eisenstein, Doug Cc: '[EMAIL PROTECTED]' Subject: Re: Mounting to a

RE: Mounting to a Windows Share

2003-03-25 Thread Stefan (metze) Metzmacher
At 09:00 25.03.2003 -0500, Eisenstein, Doug wrote: Does anyone know if this will be possible in future releases of samba? Anyone have a work around? you can use smbcacls to change the permisions on files/directories metze

RE: Mounting to a Windows Share

2003-03-25 Thread Jim McDonough
Does anyone know if this will be possible in future releases of samba? It's not really a samba issue, it's an SMBFS issue. You may want to check out the Linux CIFS VFS at http://us1.samba.org/samba/Linux_CIFS_client.html I'm not sure if this can do what you want yet, but you can contact the

[PATCH] fix segfault in smbcontrol

2003-03-25 Thread Stefan (metze) Metzmacher
Hi all, here's a small fix that prevents us from segfaulting... please apply this to all all branches witch are infected :-) metze - Stefan metze Metzmacher [EMAIL PROTECTED] smbcontrol.diff Description: Binary data

[patch] uppercase workgroup in browse request

2003-03-25 Thread Stephan Kulow
Hi! I noticed a difference between testsmbc smb://MYGRP and testsmbc smb://mygrp (it doesn't make a difference for SAMBA servers, but it does for XP and for winME) So please apply the included patch. Greetings, Stephan Index: libsmb/clirap.c

Re: Problems with ACLs in 2.2.8 (solved)

2003-03-25 Thread Jan Houstek
Michael Steffens wrote: I could (almost) reproduce it on HP-UX, and (almost) fix it using inherit acls = Yes. :) Both almost refer to mask (or class, respectively) behaving a bit strange. But this might be platform specific. Yes. inherit acls = yes solves my problem. Thanks to all who

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread jra
On Tue, Mar 25, 2003 at 10:02:13PM +1100, Andrew Bartlett wrote: Would this be a better fix for the devicetype problem? It looks like we are putting the strings into the buffer twice, and we are not returning the 'fixed' devicetype for both protocol levels ( NT1 and NT1). What happened

Re: Problems with ACLs in 2.2.8

2003-03-25 Thread Jeff Mandel
Date: Mon, 24 Mar 2003 19:43:18 + From: [EMAIL PROTECTED] To: Jan Houstek [EMAIL PROTECTED] Cc: Samba technical list [EMAIL PROTECTED] Subject: Re: Problems with ACLs in 2.2.8 Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED]; +0100 References: [EMAIL PROTECTED] Content-Type:

winbind build/link question

2003-03-25 Thread Roylance, Stephen D.
I'm trying to use some of the functions in winbind_nss.c in my winbind_aix.c module. It compiles, but when I try to link it fill_pwent is unresolved. What do I need to link against in order to get fill_pwent and such from winbind_nss.c? I tried making nsswitch/winbind_nss.o and linking against

SMB URL

2003-03-25 Thread Stephan Kulow
Hi! I looked into the URL handling libsmbclient is doing and it's lacking quite some of the stuff that the DRAFT specifies (and some of the stuff that generally are required for URIs). Is someone working on that? I'm currently preparing some patches, but hate C programming enough to dump it for

working winbind for AIX

2003-03-25 Thread Roylance, Stephen D.
Still a work-in-progress, but this compiles and works as expected on AIX 5.1. I haven't implemented getgrset yet, the NSS API is pretty different from AIX in that case. It also needs a mechanism to allocate more memory when the winbind response is larger than 4096 bytes. I had to copy

Re: msdfs broken in 2.2.8

2003-03-25 Thread jra
On Mon, Mar 24, 2003 at 02:30:32PM -0800, Eric Horst wrote: Hello! With great enthusiasm I upgraded from 2.2.7a to 2.2.8 last week to get the critical security fix. However, it appears that msdfs is broken in 2.2.8. Several on the 'samba' list have reported this as well. Some say it

domain trusts with security=domain does not work for 3.0a21?

2003-03-25 Thread Chere Zhou
Hello, I verified that when I use security=ads, the domain trusts work. But when I use security=domain and join the w2k domain using net rpc join, I don't see any trusted domain. I checked with wbinfo -m, wbinfo --sequence and finally add ACL entries for a file served by samba. I see that

RE: msdfs broken in 2.2.8

2003-03-25 Thread Eric Horst
Thanks Jeremy. Works much better now. --Eric Here is the fix for Samba 2.2.8 to make MS-DFS work again with WinXP. (For once this wasn't my fault :-). Sorry for the problem, Jeremy. Index: smbd/trans2.c ===

A please report me error

2003-03-25 Thread Dave Collier-Brown
In today's CVS, I caught this message zip by while configuring: ... checking net/if.h presence... yes configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers? configure: WARNING: net/if.h: proceeding with the preprocessor's

Re: A please report me error

2003-03-25 Thread Stephan Kulow
Am Tuesday 25 March 2003 21:46 schrieb Dave Collier-Brown: In today's CVS, I caught this message zip by while configuring: ... checking net/if.h presence... yes configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers?

RE: Compile error in server.c

2003-03-25 Thread James Willard
Well, that's what I was saying I did. I first did just a 'make clean' and rebuilt, but then I went further and did a 'make distclean', followed by 'autoconf', './configure', and 'make'. Both ways result in the compile error. Thanks, James -Original Message- From: Jelmer Vernooij

Re: Compile error in server.c

2003-03-25 Thread Jelmer Vernooij
On Tue, Mar 25, 2003 at 04:19:12PM -0500, James Willard wrote about 'RE: Compile error in server.c': Well, that's what I was saying I did. I first did just a 'make clean' and rebuilt, but then I went further and did a 'make distclean', followed by 'autoconf', './configure', and 'make'. Both

RE: Compile error in server.c

2003-03-25 Thread James Willard
Yes I did that about an hour ago, but just to be absolutely sure I went ahead and did the following again just about 2 minutes ago: cvs update -d -P cd source make clean ./configure make Then I received the error once again: Compiling smbd/server.c smbd/server.c: In function `main':

RE: Compile error in server.c

2003-03-25 Thread Stefan (metze) Metzmacher
At 16:29 25.03.2003 -0500, James Willard wrote: Yes I did that about an hour ago, but just to be absolutely sure I went ahead and did the following again just about 2 minutes ago: cvs update -d -P cd source make clean ./configure make can you try: cvs update -d -P cd source make distclean rm

Large RPC bug found, I think

2003-03-25 Thread Ronan Waide
Ok, I think I've figured this out, but since I'm relatively new to Samba internals I'm not entirely clear on how to fix it, or what I might break with my fix. In a large RPC call, such as an EnumPrinters 2 call with a big buffer, the DCE/RPC stuff gets split into several SMB messages and tossed

Re: Large RPC bug found, I think

2003-03-25 Thread jra
On Wed, Mar 26, 2003 at 01:58:49AM +, Ronan Waide wrote: Ok, I think I've figured this out, but since I'm relatively new to Samba internals I'm not entirely clear on how to fix it, or what I might break with my fix. In a large RPC call, such as an EnumPrinters 2 call with a big buffer,

RE: Compile error in server.c

2003-03-25 Thread James Willard
Ahh.. Okay... That was the magic solution, running autogen.sh. I did not realize that was also a necessary component to run. On a side note, does anybody know when we can expect net ads password to function without a segfault? It will be really cool to have that feature. Thanks, James Willard

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread Andrew Bartlett
On Wed, 2003-03-26 at 03:28, Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25 Mar 2003, Andrew Bartlett wrote: Would this be a better fix for the devicetype problem? I may be blind here, but the only difference in your patch that I see is some

VFS and the new modules system

2003-03-25 Thread Jelmer Vernooij
Hi! Here's a patch that adds support to the VFS for the new modules system. The only problem is that it breaks all current modules, but I don't think I can do anything about that. Any objections? Jelmer -- Jelmer Vernooij [EMAIL PROTECTED] - http://nl.linux.org/~jelmer/ 23:26:54 up 8 days,

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26 Mar 2003, Andrew Bartlett wrote: I may be blind here, but the only difference in your patch that I see is some rewritten debug messages. What am I overlooking? The second half of the patch? Ah...you mean adding the server_devicetype

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread Andrew Bartlett
On Wed, 2003-03-26 at 09:28, Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26 Mar 2003, Andrew Bartlett wrote: I may be blind here, but the only difference in your patch that I see is some rewritten debug messages. What am I overlooking? The

RE: Compile error in server.c

2003-03-25 Thread Esh, Andrew
Maybe use the -A option to cvs update, to clear any sticky tags that might be applied to your files. Such tags would prevent the latest code from being downloaded. -Original Message- From: James Willard [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 25, 2003 3:52 PM To: 'Jelmer Vernooij'

Re: winbind build/link question

2003-03-25 Thread Tim Potter
On Tue, Mar 25, 2003 at 12:37:33PM -0500, Roylance, Stephen D. wrote: I'm trying to use some of the functions in winbind_nss.c in my winbind_aix.c module. It compiles, but when I try to link it fill_pwent is unresolved. What do I need to link against in order to get fill_pwent and such from

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26 Mar 2003, Andrew Bartlett wrote: And removing the second set of push_string()s. It looked like you had some kind of merge error - your patch added new push_string() calls, rather than modified the original push_string() lines. Ahh...yes.

RE: winbind build/link question

2003-03-25 Thread Roylance, Stephen D.
The fill_pwent function is static in winbind_nss.c You are probably trying to call it directly from your winbind_aix.c which won't work. Can winbind_aix.c be modelled like winbind_solaris.c? That is, wrapper functions abstract out the vendor specific nss stuff which then call the

Re: VFS and the new modules system

2003-03-25 Thread Stefan (metze) Metzmacher
At 23:29 25.03.2003 +0100, Jelmer Vernooij wrote: I took Jelmer's patch and modifed it, to support an easy way to have per connection default_vfs_ops and per connection private data in the vfs modules so every module registers and got a unique vfs module number for te current smbd or vfstest

Re: VFS and the new modules system

2003-03-25 Thread Stefan (metze) Metzmacher
At 00:52 26.03.2003 +0100, Stefan (metze) Metzmacher wrote: At 23:29 25.03.2003 +0100, Jelmer Vernooij wrote: I took Jelmer's patch and modifed it, to support an easy way to have per connection default_vfs_ops and per connection private data in the vfs modules so every module registers and got a

Mounting to a Windows Share

2003-03-25 Thread Steven French
Does anyone know if this will be possible in future releases of samba? It's not really a samba issue, it's an SMBFS issue. You may want to check out the Linux CIFS VFS at http://us1.samba.org/samba/Linux_CIFS_client.html If unix extensions = yes in the smb.conf file on the Samba server, then

Re: A please report me error

2003-03-25 Thread Dave Collier-Brown
Righto, the background information is as follows:. --dave uname -a SunOS hobbes 5.8 Generic_108528-18 sun4u sparc SUNW,Ultra-1 Compiler: gcc version 2.95.3 20010315 (release) And the log entries were: configure:4693: checking net/if.h usability configure:4706: gcc -c -O -D_LARGEFILE_SOURCE

BUG (samba 2.2.8): smbd -l logfile does not work under solaris

2003-03-25 Thread tony shepherd
Folks ** I am not on this alias. Could all relevent replies please be CC'ed to me as well ** I have configured and compiled samba 2.2.8 with gcc 2.95.3 on Solaris 9 using the options --with-automount. When I try to use the command: smbd -D -l /var/log/log.smbd The log file is not created.

[pseudo-patch] source/web/swat.c

2003-03-25 Thread Green, Paul
Samba 3.0, Line 1269 of web/swat.c references TRUE rather than the POSIX-ly correct True. There may be others; this is the one that killed the build on Stratus VOS. Would whoever checked in this change please correct it? Many thanks. PG -- Paul Green, Senior Technical Consultant, Stratus

Re: Problems with ACLs in 2.2.8

2003-03-25 Thread Michael Steffens
Hello Jeff, Jeff Mandel wrote: As long as you're having a look, will you give a look at the mode problem at file create time? In some cases samba over-rides the umask and inherited acls and creates the file as r--r--r--. Only samba's force create will kind of fix that. It's like the

Re: [pseudo-patch] source/web/swat.c

2003-03-25 Thread John H Terpstra
On Tue, 25 Mar 2003, Green, Paul wrote: Samba 3.0, Line 1269 of web/swat.c references TRUE rather than the POSIX-ly correct True. There may be others; this is the one that killed the build on Stratus VOS. Would whoever checked in this change please correct it? Many thanks. Done. - John

Re: BUG (samba 2.2.8): smbd -l logfile does not work under solaris

2003-03-25 Thread tony shepherd
Oh, that is just so annoying This must have changed from 2.0.x to 2.2.x. It was logfile in 2.0.10 (what I am upgrading from)... Well, I feel like a goose now.That works so much better. Thanks for the help tony --On Tuesday, March 25, 2003 09:46:16 PM -0500 Brian Poole [EMAIL

Re: [PATCH] Better fix for devicetype?

2003-03-25 Thread Andrew Bartlett
On Tue, Mar 25, 2003 at 05:02:58PM -0600, Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26 Mar 2003, Andrew Bartlett wrote: And removing the second set of push_string()s. It looked like you had some kind of merge error - your patch added new

Re: A please report me error

2003-03-25 Thread Steve Langasek
On Tue, Mar 25, 2003 at 03:46:27PM -0500, Dave Collier-Brown wrote: In today's CVS, I caught this message zip by while configuring: ... checking net/if.h presence... yes configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite

Re: Compile error in server.c

2003-03-25 Thread Jelmer Vernooij
On Tue, Mar 25, 2003 at 04:12:04PM -0500, James Willard wrote about 'Compile error in server.c': I'm getting an error when trying to compile the HEAD branch of Samba. I've been following it in CVS since, well, since it was created. The problem suddenly appeared about a week or two ago and I've

Re: SMB URL

2003-03-25 Thread Michael B. Allen
On Tue, 25 Mar 2003 21:39:26 +0100 Stephan Kulow [EMAIL PROTECTED] wrote: Hi! I looked into the URL handling libsmbclient is doing and it's lacking quite some of the stuff that the DRAFT specifies (and some of the stuff that generally are required for URIs). Is someone working on that?

RE: Compile error in server.c

2003-03-25 Thread Anthony Liguori
autoconf isn't enough. Run autogen.sh (to ensure autoheader is run too). Anthony Liguori Linux/Active Directory Interoperability Linux Technology Center (LTC) - IBM Austin E-mail: [EMAIL PROTECTED] Phone: (512) 838-1208 Tie Line: 678-1208

RE: Compile error in server.c

2003-03-25 Thread James Willard
I promise you, I did everything that I said I did, including running make clean, make distclean, cvs update -d -P, autoconf, and ./configure. Is there something you would like for me to look at? My include/config.h does not have that #define, despite having rm'd include/config.h and running