Re: Modulize Group mapping

2002-06-13 Thread Kai Krueger
- Original Message - From: "Stefan (metze) Metzmacher" [EMAIL PROTECTED] Sent: Wednesday, June 12, 2002 10:43 AM > Hi, > I've startet to make the group mapping code modulized in the way it is done > in the auth and passdb subsystems. I think modularising the group mapping code is a

bug confirm pls

2002-06-13 Thread Dipl.-Ing.(FH) Th. Trautwein-Veit
Dear samba developer, i think i found a bug. I run SAMBA HEAD on an AIX 4.3.3 ML 10 IBM RS 6000 Hardware. I compile with : ./configure --with-acl-support --with-tdbsam The compile and install works great. Even the adding of userses to the password backend tdbsam_nua works local. But after i added

working with hidden shares 2.2.4

2002-06-13 Thread Nieminen, Jooel
the is no documentation on hidden share ability but adding $-sign to end of share it hides it.   only problem is that it's not accessible anymore.   for user who is not allowed to access the share it asks for username and password, but user which is valid is presented with: "network usage

Re: Modulize Group mapping

2002-06-13 Thread Stefan (metze) Metzmacher
At 09:53 13.06.2002 +0200, Kai Krueger wrote: >- Original Message - >From: "Stefan (metze) Metzmacher" [EMAIL PROTECTED] Sent: Wednesday, June >12, 2002 10:43 AM > > > Hi, > > > I've startet to make the group mapping code modulized in the way it is > done > > in the auth and passdb subs

2_2 Compile Broken by mangle_... changed to return void

2002-06-13 Thread Richard Bollinger
... Compiling smbd/dir.c smbd/dir.c: In function `get_dir_entry': smbd/dir.c:608: void value not ignored as it ought to be make: *** [smbd/dir.o] Error 1 ... Please fix. Thanks, Rich Bollinger

Can't map network drive

2002-06-13 Thread James Briar
I've tried everything i can think of but i can't map a network drive. Everything else on Samba is working ok. I can log on via the internet to look at the shares etc (by doing \\126.12.250.24:901.) and the processes are running ok. The /usr/local/samba/var/log.smbd shows (i set the log level to

Netbench and Samba 2.2.1a

2002-06-13 Thread David Collier-Brown
A colleague who runs a benchmarking group noticed something bizarre lately: while working with Netbench 7.0.2 running against Samba version 2.2.1a on RH Linux 7.2 on a 2xPIII 1400Ghz machine... | I can "net use f: \\lab39\files1" OK to the Samba shares. I | can use WordPad to read and write fil

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Mike Gerdts
On Wed, 2002-06-12 at 18:10, Simo Sorce wrote: > And samba is not the only application that do this kind of operation, > the proper fix would be to make smbfs driver able to "hide" a file if it > is unlilnked but yet open by some process, and then silently unlink it > when the last process closes

Re: Modulize Group mapping

2002-06-13 Thread Andrew Bartlett
"Stefan (metze) Metzmacher" wrote: > > At 09:53 13.06.2002 +0200, Kai Krueger wrote: > >- Original Message - > >From: "Stefan (metze) Metzmacher" [EMAIL PROTECTED] Sent: Wednesday, June > >12, 2002 10:43 AM > > > > > Hi, > > > > > I've startet to make the group mapping code modulized in

Re: [Samba] spoolss back connections to client

2002-06-13 Thread Gerald (Jerry) Carter
On Wed, 12 Jun 2002, Tom Vandepoel wrote: > Ok, did this: > > # diff srv_spoolss.c srv_spoolss.c.orig > 1415,1416c1415,1416 > < /* {"SPOOLSS_RFFPCNEX", SPOOLSS_RFFPCNEX, >api_spoolss_rffpcnex }, */ > < /* {"SPOOLSS_RFNPCNEX", SPOOLSS_RF

Re: Netbench and Samba 2.2.1a

2002-06-13 Thread Don DeVitt
I am the colleague David reefers to below. I haven't had time to update Dave on what I learned about this problem. There is NO problem with Samba. My problem was caused by the fact that NT mapped drives are not accessible in exactly the same way by an application launched by a Remote Shell Daemo

[PATCH] Several small patches

2002-06-13 Thread Jelmer Vernooij
Hi, Here are some of the patches that were still in my queue: pdb_test.diff - Some extra comments pdb_init_sam_talloc.diff - Change names used in DEBUG() statements pdb_fix.diff - Always fail when initialising one of the pdb backends fails These are not 100% tested:

Re: Netbench and Samba 2.2.1a

2002-06-13 Thread Herb Lewis
I run in user security and use altiris software to send remote commands to the clients. I ran into this same problem but was able to solve it by having the remote command to the client be a batch file that mounted the share and then invoked the netbench client program. That way the share mount and

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread jd
> This changes are not good for a normal samba installation. They do not change anything on a "normal" installation. On a "normal" installation unlink() and rmdir() never return ETXTBSY. > First of all, Samba has been built to be run on posix file systems, and > is not guaranteed to work 100% ok

RE: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Mike Gerdts
On Thu, 2002-06-13 at 12:26, Cole, Timothy D. wrote: > > -Original Message- > > From: Mike Gerdts [mailto:[EMAIL PROTECTED]] > > A similar solution could be used here. The equivalent of the .OLD > > directory could be something that is not exported by samba. If an > > unlink() fails beca

RE: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Cole, Timothy D.
> -Original Message- > From: Mike Gerdts [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 9:03 > To: Simo Sorce > Cc: [EMAIL PROTECTED]; Samba Technical Mailing List > Subject: Re: 2.2.5pre1: unlink design flaw > > Under HP-UX 10.20 I ran into issues with automated software > u

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Urban Widmark
On 13 Jun 2002, Simo Sorce wrote: > And samba is not the only application that do this kind of operation, > the proper fix would be to make smbfs driver able to "hide" a file if it > is unlilnked but yet open by some process, and then silently unlink it > when the last process closes it. > > It

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Simo Sorce
On Thu, 2002-06-13 at 19:49, [EMAIL PROTECTED] wrote: > > The race stay in the fact that you may rename the file and create a link > > to an important file between the close and the second unlink, with very > > bad results. > > On smbfs you cannot create links. Nor on fatfs. But samba runs on po

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Simo Sorce
On Thu, 2002-06-13 at 18:07, Urban Widmark wrote: > On 13 Jun 2002, Simo Sorce wrote: > > > And samba is not the only application that do this kind of operation, > > the proper fix would be to make smbfs driver able to "hide" a file if it > > is unlilnked but yet open by some process, and then si

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread Jeremy Allison
On Thu, Jun 13, 2002 at 08:28:08PM +0200, Simo Sorce wrote: > > I can't remember just now, but can you rename it while open? Under POSIX, yes. > If you can, then you may rename the file on unlink to a very rare name > and then delete oin close(). This is what NFS does. > > I have no idea what

Re: Netbench and Samba 2.2.1a

2002-06-13 Thread Richard Sharpe
On Thu, 13 Jun 2002, Don DeVitt wrote: > My problem was caused by the fact that NT mapped drives are not > accessible in exactly the same way by an application launched by > a Remote Shell Daemon as they are from applications that > are launched by the user from the desktop. The authentication is

Re: Netbench and Samba 2.2.1a

2002-06-13 Thread David Collier-Brown
On Thu, 13 Jun 2002, Don DeVitt wrote: > > My problem was caused by the fact that NT mapped drives are not > > accessible in exactly the same way by an application launched by > > a Remote Shell Daemon as they are from applications that > > are launched by the user from the desktop. The authentica

[PATCH] add pdb_set_{user,group}_sid_from_string

2002-06-13 Thread Jelmer Vernooij
Hi, This patch adds two functions to pdb_get_set.c: pdb_set_{user,group}_sid_from_string These functions are useful for pdb backends. Especially since using pdb_set_user_sid combined with string_to_sid would require allocating data for a new DOM_SID. Jelmer -- Jelmer Vernooij <[EMAIL PROTE

[PATCH] poptify testparm

2002-06-13 Thread Jelmer Vernooij
Hi, Here's another patch. This one makes the testparm utility use popt. Also did some reindenting, the current testparm.c contains a lot of spaces.. Jelmer -- Jelmer Vernooij <[EMAIL PROTECTED]> - http://nl.linux.org/~jelmer/ Development And Underdevelopment: http://library.thinkquest.org/C0

VFS : Is there a safe way to allocate memory ?

2002-06-13 Thread troutb
#define _AA_FDLIST_SIZE 1024 connect function contains ... extern unsigned char *_pwsFiles; _pwsFiles = (unsigned char *)malloc(_AA_FDLIST_SIZE); crashes share ... con't connect

[PATCH] add pdb_set_{user,group}_sid_from_string

2002-06-13 Thread Jelmer Vernooij
Hi, After some discussion with idra and metze updated patch to use more virtualization (use pdb_get_user_sid(sampass) instead of &sampass->private.user_sid). Jelmer -- Jelmer Vernooij <[EMAIL PROTECTED]> - http://nl.linux.org/~jelmer/ Development And Underdevelopment: http://library.thinkque

RE: working with hidden shares 2.2.4

2002-06-13 Thread ZINKEVICIUS,MATT (HP-Loveland,ex1)
Browseable = No --Matt -Original Message- From: Nieminen, Jooel [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 3:58 AM To: '[EMAIL PROTECTED]' Subject: working with hidden shares 2.2.4 the is no documentation on hidden share ability but adding $-sign to end of share it hides

Re: VFS : Is there a safe way to allocate memory ?

2002-06-13 Thread Simo Sorce
use talloc and keep the memory context somwhere you can always reach it and free it. On Thu, 2002-06-13 at 21:37, [EMAIL PROTECTED] wrote: > #define _AA_FDLIST_SIZE 1024 > > connect function contains ... > > extern unsigned char *_pwsFiles; > > _pwsFiles = (unsigned char *)malloc(_AA_FDLIST_SI

[PATCH] lp_passdb_backend() -> list, sid_copy() fix

2002-06-13 Thread Jelmer Vernooij
Hi, Here's my latest patch for today :-). This one brings: - convert lp_passdb_backend() parameter to a list - fix bug in sid_copy(), which crashed whenever a NULL pointer was given as an argument. (sometimes caused errors when user doesn't have access to secrets.tdb) Good night! Jelmer

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread jd
> A similar solution could be used here. The equivalent of the .OLD > directory could be something that is not exported by samba. If an > unlink() fails because of ETXTBUSY, rename() could be used to move it > out of the shared directory to a directory that is monitored by a > "deleted file reap

Re: 2.2.5pre1: unlink design flaw

2002-06-13 Thread jd
> From: <[EMAIL PROTECTED]> > > > > On smbfs you cannot create links. Nor on fatfs. > > But samba runs on posix file systems too, and they have it. Thats not the point. I said that the race condition does not occur under posix file systems, cause unlink NEVER returns ETXTBSY. I did not seen it

Re: [PATCH] add pdb_set_{user,group}_sid_from_string

2002-06-13 Thread Andrew Bartlett
Jelmer Vernooij wrote: > > Hi, > > After some discussion with idra and metze updated patch to use more > virtualization (use pdb_get_user_sid(sampass) instead of > &sampass->private.user_sid). NO!!! That function is const, and that is deliberate. The previous patch was better, but I really wo

Re: [PATCH] lp_passdb_backend() -> list, sid_copy() fix

2002-06-13 Thread Andrew Bartlett
Jelmer Vernooij wrote: > > Hi, > > Here's my latest patch for today :-). This one brings: > > - convert lp_passdb_backend() parameter to a list Looks ok. > - fix bug in sid_copy(), which crashed whenever a NULL pointer was > given as an argument. (sometimes caused errors when user doesn't >

Re: [PATCH] poptify testparm

2002-06-13 Thread Andrew Bartlett
Jelmer Vernooij wrote: > > Hi, > > Here's another patch. This one makes the testparm utility use popt. > > Also did some reindenting, the current testparm.c contains a lot of > spaces.. You really should try and make sure that patches don't add 'const' warnings. I'll chase these up myself thi

need help deciphering log.nmbd...

2002-06-13 Thread Ryan Mak
does anyone know what the following means?? thanx. -ryan     [2002/06/13 20:08:45, 0] nmbd/nmbd_responserecordsdb.c:find_response_record(236)  find_response_record: response packet id 15479 received with no matching record.[2002/06/13 20:08:45, 0] nmbd/nmbd_responserecordsdb.c:find_respons

Re: [Samba] spoolss back connections to client

2002-06-13 Thread Tim Potter
On Wed, Jun 12, 2002 at 09:11:12AM +0200, Tom Vandepoel wrote: > # diff srv_spoolss.c srv_spoolss.c.orig > 1415,1416c1415,1416 > < /* {"SPOOLSS_RFFPCNEX", SPOOLSS_RFFPCNEX, > api_spoolss_rffpcnex }, */ > < /* {"SPOOLSS_RFNPCNEX", SPOOLSS_R

Re: [PATCH] lp_passdb_backend() -> list, sid_copy() fix

2002-06-13 Thread Andrew Bartlett
Jelmer Vernooij wrote: > > Hi, > > Here's my latest patch for today :-). This one brings: > > - convert lp_passdb_backend() parameter to a list > - fix bug in sid_copy(), which crashed whenever a NULL pointer was > given as an argument. (sometimes caused errors when user doesn't > have acce

Getting the setsampwent functions to 'work right'

2002-06-13 Thread Andrew Bartlett
I was talking to tpot recently, and he found an interesting bug in the current mulitple pdb code. If we don't implment setsampwent() in a backend, and that is the only backend then we segfault... Now the is relitivly easy to 'fix', but I wonder if there is a better way to do the design: How abo

struct enum_csc_policy isn't terminated

2002-06-13 Thread Yasuma Takeda
In Samba-JP, a following problem was reported. Since the "enum_csc_policy" struct doesn't terminate appropriately, it may occur buffer overflow. I confirmed this problem using by SWAT. The "csc policy" entry includes "enum_map_to_guest" struct entry. This problem exists in 2.2.4 and HEAD. Ple