RE: [Samba] Wbinfo -u get user account sucessfully butgetentpasswd fails

2005-10-15 Thread Horak Daniel
  Steve Zeng escreveu:
   1) getent passwd thisUser
   It gave me nothing. If I run getent to check other user 
  accounts, 
   everything is OK.
  
   2) wbinfo -u | grep thisUser
   It shows thisUser does exist. 
  
   I could not figure out what the reason is. Can anybody 
 give me some 
   hint? I appreciate it.
  
  If you compare the information from thisUser with the 
  information of otherUser, did you see any differences?

I saw this situation (getent = no result, wbinfo can find the user) when
I was runnig Samba 3.0.10 from RHEL 4 as a domain member with Windows
2000 + SP4 + Rollup patch or Windows 2003 SP1 as domain controller. It
should be fixed in some current releases of Samba or you should use
client schannel = no in smb.conf.


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


[Samba] Problem with ntlm_auth

2005-10-15 Thread Tilo Lutz
Hi

I use suse 10.0 and have problems to set up ntlm_auth for squid.
It uses samba 3.0.20 and squid 2.5.stable10

I have set up winbind and everyhting seems to work.
I've changes groupownerchip of /var/lib/samba/winbindd_privileged
to squid. squid runs as group squid.

Everyhting is working fine for several minutes.
After a while it doesn't work anymore

proxy:/var/log/samba # /usr/local/sbin/ntlm_auth 
--helper-protocol=squid-2.5-basic --debuglevel=3
tilo *secret*
[2005/10/15 09:25:11, 3] utils/ntlm_auth.c:check_plaintext_auth(292)
  NT_STATUS_INVALID_HANDLE: Invalid handle (0xc008)
ERR

After restarting winbindd it works again:

proxy:/var/log/samba # /usr/local/sbin/ntlm_auth 
--helper-protocol=squid-2.5-basic --debuglevel=3
tilo *secret*
[2005/10/15 09:26:49, 3] utils/ntlm_auth.c:check_plaintext_auth(292)
  NT_STATUS_OK: Success (0x0)
OK

log.winbindd (log level=3) doesn't show anything interessting:
[2005/10/15 09:31:12, 3] 
nsswitch/winbindd_misc.c:winbindd_interface_version(460)
  [0]: request interface version
[2005/10/15 09:31:12, 3] nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(493)
  [0]: request location of privileged pipe
[2005/10/15 09:31:12, 3] nsswitch/winbindd_pam.c:winbindd_pam_auth(202)
  [0]: pam auth tilo

Any idea how to keep it running?

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


Re: [Samba] Problem with ntlm_auth

2005-10-15 Thread Robert Schetterer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tilo Lutz schrieb:
| Hi
|
| I use suse 10.0 and have problems to set up ntlm_auth for squid.
| It uses samba 3.0.20 and squid 2.5.stable10
|
| I have set up winbind and everyhting seems to work.
| I've changes groupownerchip of /var/lib/samba/winbindd_privileged
| to squid. squid runs as group squid.
|
| Everyhting is working fine for several minutes.
| After a while it doesn't work anymore
|
| proxy:/var/log/samba # /usr/local/sbin/ntlm_auth
| --helper-protocol=squid-2.5-basic --debuglevel=3
| tilo *secret*
| [2005/10/15 09:25:11, 3] utils/ntlm_auth.c:check_plaintext_auth(292)
|   NT_STATUS_INVALID_HANDLE: Invalid handle (0xc008)
| ERR
|
| After restarting winbindd it works again:
|
| proxy:/var/log/samba # /usr/local/sbin/ntlm_auth
| --helper-protocol=squid-2.5-basic --debuglevel=3
| tilo *secret*
| [2005/10/15 09:26:49, 3] utils/ntlm_auth.c:check_plaintext_auth(292)
|   NT_STATUS_OK: Success (0x0)
| OK
|
| log.winbindd (log level=3) doesn't show anything interessting:
| [2005/10/15 09:31:12, 3]
| nsswitch/winbindd_misc.c:winbindd_interface_version(460)
|   [0]: request interface version
| [2005/10/15 09:31:12, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(493)
|   [0]: request location of privileged pipe
| [2005/10/15 09:31:12, 3] nsswitch/winbindd_pam.c:winbindd_pam_auth(202)
|   [0]: pam auth tilo
|
| Any idea how to keep it running?
|
| Cheers, Tilo
Hi
perhaps you should change to 3.0.20b latest version of samba
cause of winbind errors suse 10 rpms are for download at ftp.suse.com or
samba mirrors
Regards

- --
Mit freundlichen Gruessen
Best Regards
Robert Schetterer

robert_at_schetterer.org
Munich / Bavaria / Germany
https://www.schetterer.org

\**
\* gnupgp
\* public key:
\* https://www.schetterer.org/public.key
\**
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDULPlb0iqzJq+0MgRAmDTAJ9MEAmCQIzBdlXwAbbO5Xw8cBm0hACfQRsN
HvzRRdOptLKHQmsDB3zzHRs=
=oFdx
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] Gerhard Schaller/HOL_DV/Kuester/DE ist außer Hau s. ['Watchdog': checked]

2005-10-15 Thread gerhard . schaller
Ich bin außer Haus ab 15.10.2005 und für Sie wieder erreichbar ab
23.10.2005.

I'm not in the office on 15.10.2005 and will be available to you on
23.10.2005.


Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Diese E-mail ist nur für den bezeichneten Adressaten bestimmt und kann
vertrauliche und/oder rechtlich geschützte Informationen enthalten. Sollten
Sie diese E-mail irrtümlich erhalten haben, informieren Sie bitte sofort
den Absender und vernichten Sie diese E-mail. Wenn Sie nicht der
vorgesehene Adressat dieser E-mail sein sollten, so beachten Sie bitte,
dass jede Überarbeitung, Weiterleitung, Verbreitung oder jeder weitere
Gebrauch dieser E-mail ausdrücklich untersagt ist.

This e-mail is intended solely for the addressee and may contain
confidential and/or privileged information. If you are not the intended
recipient, please notify the sender immediately and destroy this e-mail. In
this case any form of reproduction, disclosure, distribution or any action
taken or refrained from in reliance on it, is strictly prohibited.




.


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


[Samba] SAN

2005-10-15 Thread test ya
What advise would people have on using setting up a
storage area network to store user files on. This SAN
would be used by some linux clients directly but
primarily by a samba pdc. I was going to use nbd or
enbd. I know that these are for direct control of the
harddrive partition so the clients are out if i do
that. However nfs seems to be the best for what i
need. My Problem is also figuring how I would export
the directories to the samba servers and the few linux
clients. Should i do it per user or the whole /home
directory? Not this is a large SAN separated into
groups and user folders on multiple servers. Please
Help!

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


[Samba] Re: Dangling MS Access DB Lock Files *.ldb

2005-10-15 Thread Dragan Krnic
 I might have unwittingly made the impression that the problem only came 
 with 3.0.20. 
 The same problem was present in 3.0.14 as well as 3.0.4. It's a very 
 intermittent 
 problem which has been haunting me for months now.
 Then it's not this particular bug.

 No, it ain't. There's a dangling *.ldb file there write now. But now there 
 are 2 PIDs
 listed as holding the *.MDB file open with DENY_DOS and RDWR sharing 
 both with the
 same timestamp Fri Oct 14 19:58:09 2005, whereas formerly it used to be 
 only one open
 of *.mdb and one of *.ldb file. The *.ldb file was opened RDONLY about 10 
 minutes
 earlier by one of the 2 contestants. Can I do some more forensic on the logs?
 
 Ok, if you can reproduce this bug with 3.0.20b then refresh me with the 
 problem
 and then let's look at it closer.

Yes. Of course. I've just compiled and installed 3.0.20b and set a watchdog to
observe it.

I was thinking of adding a repair action to the watchdog script that would 
identify
the smbd PID keeping the *.ldb MS Access DB lock file open for so long and kill 
it,
but the command net rpc file never lists what I can easily see on the status 
page
of SWAT if I continuously refresh it until by chance one of the clients opens 
it.
The net rpc file

   only lists 0   \PIPE\samr   0x35   0  dummy user

all the time. Is there another CLI utility which lists the same thing as SWAT 
does?

Regards
Dragan

PS.: I've severely edited the verbosity of a samba log for the previous 
incident,
so that the MS Access rain-dance can easily be followed to the point where the
offending client for some reason reopens the lock file after once successfully
opening it with numopen=1, meaning that nobody else claims it until he reopens
it, when numopen increments to =2 for obvious readons, and then never remembers 
to close it the same number of times. It might be one of those MS tricks to 
scare 
the users off Samba? 

Would you like to take a look at it, if I send it to you off-samba-list?

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


Re: [Samba] Problem with ntlm_auth

2005-10-15 Thread Tilo Lutz
Hi

 Tilo Lutz schrieb:
 | I use suse 10.0 and have problems to set up ntlm_auth for squid.
 | It uses samba 3.0.20 and squid 2.5.stable10

Am Samstag 15 Oktober 2005 09:46 schrieb Robert Schetterer:
 perhaps you should change to 3.0.20b latest version of samba
 cause of winbind errors suse 10 rpms are for download at ftp.suse.com or
 samba mirrors

I have installed the latest rpm and now it seems to work.
Any idea why those patches not reported by you?

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


Re: [Samba] Re: Dangling MS Access DB Lock Files *.ldb

2005-10-15 Thread Stéphane Purnelle
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dragan Krnic a écrit :

 I might have unwittingly made the impression that the
 problem only came with 3.0.20. The same problem was present
 in 3.0.14 as well as 3.0.4. It's a very intermittent
 problem which has been haunting me for months now.

 Then it's not this particular bug.

 No, it ain't. There's a dangling *.ldb file there write now.
 But now there are 2 PIDs listed as holding the *.MDB file open
 with DENY_DOS and RDWR sharing both with the same timestamp
 Fri Oct 14 19:58:09 2005, whereas formerly it used to be only
 one open of *.mdb and one of *.ldb file. The *.ldb file was
 opened RDONLY about 10 minutes earlier by one of the 2
 contestants. Can I do some more forensic on the logs?

 Ok, if you can reproduce this bug with 3.0.20b then refresh me
 with the problem and then let's look at it closer.


 Yes. Of course. I've just compiled and installed 3.0.20b and set a
 watchdog to observe it.

 I was thinking of adding a repair action to the watchdog script
 that would identify the smbd PID keeping the *.ldb MS Access DB
 lock file open for so long and kill it, but the command net rpc
 file never lists what I can easily see on the status page of SWAT
 if I continuously refresh it until by chance one of the clients
 opens it. The net rpc file

 only lists 0 \PIPE\samr 0x35 0 dummy user

 all the time. Is there another CLI utility which lists the same
 thing as SWAT does?

 Regards Dragan

 PS.: I've severely edited the verbosity of a samba log for the
 previous incident, so that the MS Access rain-dance can easily be
 followed to the point where the offending client for some reason
 reopens the lock file after once successfully opening it with
 numopen=1, meaning that nobody else claims it until he reopens it,
 when numopen increments to =2 for obvious readons, and then never
 remembers to close it the same number of times. It might be one of
 those MS tricks to scare the users off Samba?

 Would you like to take a look at it, if I send it to you
 off-samba-list?

smbstatus list all connection and open file

- --
Stéphane Purnelle [EMAIL PROTECTED]
Site Web : http://www.linuxplusvalue.be
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDUN428tswkE3d0ecRAsQYAJ0TaShcH/nSt6QYS70ePxFRvmRlNwCeJ8hV
nROnK0ZPy5fQ/q7H+Dsnvw8=
=J8Gu
-END 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] Samba vs ADS problems

2005-10-15 Thread Daniel Jensen

Thank you for your help again :)

I have managed to fix the problem and still using 3.0.13 version of samba...
It apperas that my nsswitch.conf wasnt setup correctly... was missing 
some winbind entrys

Now the group lookups is working nicely

Im sorry for taking your time :) Now im sure I have explored most of 
what can be explored of samba and its components by a normal user :D So 
some good came of this :)


I look forward to see the next releases of samba... Keep up the nice 
work on this project, a nice alternative to rather expensive MS products 
that my boss wanted me to explore, and I must say with ACL included it 
is very nice :)


Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel Hindbo Jensen wrote:

| After installing SuSE 10.0 on another desktop PC which
| is running samba 3.0.20 (not 3.0.20a) it made the same error
| as the older samba version running on the live server
|
| However some small changes have occured in the
| wbinfo feedback... I can now lookup:
|
| # wbinfo --user-sids=S-1-5-21-220523388-1957994488-854245398-2749
...
| # wbinfo --user-domgroups=S-1-5-21-220523388-1957994488-854245398-2749
...
|
| However the groupname lookup for the user still returns the same
|
| IT02:/var/log/samba # wbinfo -r tarp+dhj
| 17000

...
| So is this all down to the version of samba I use?

winbindd itself was rewritten drastically in Samba 3.0.20
in order to providing more scalability.  There are rpc
infrastructure changes coming in 3.0.21 (pre1 is due out
on Monday) for better interoperabilty with newer MS
updates

| I have attached all the log files in the directory
| /var/log/samba + the samba smb.conf

Unfortunately, you didn't run winbindd at level 10.  That
is the critical one.  Run winbindd -d 10 manually.  And
then grab /var/log/samba/log.{winbindd,wb-*}





cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
There's an anonymous coward in all of us.   --anonymous
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDT7osIR7qMdg1EfYRAq3nAJoCalg19lxR8WLvPPktocgXV1BrCQCff0jd
d+1yMomkIeD8Y8++xM4sawM=
=qqrM
-END PGP SIGNATURE-



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


[Samba] Gerhard Schaller/HOL_DV/Kuester/DE ist außer Hau s. ['Watchdog': checked]

2005-10-15 Thread gerhard . schaller
Ich bin außer Haus ab 15.10.2005 und für Sie wieder erreichbar ab
23.10.2005.

I'm not in the office on 15.10.2005 and will be available to you on
23.10.2005.


Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.
Diese E-mail ist nur für den bezeichneten Adressaten bestimmt und kann
vertrauliche und/oder rechtlich geschützte Informationen enthalten. Sollten
Sie diese E-mail irrtümlich erhalten haben, informieren Sie bitte sofort
den Absender und vernichten Sie diese E-mail. Wenn Sie nicht der
vorgesehene Adressat dieser E-mail sein sollten, so beachten Sie bitte,
dass jede Überarbeitung, Weiterleitung, Verbreitung oder jeder weitere
Gebrauch dieser E-mail ausdrücklich untersagt ist.

This e-mail is intended solely for the addressee and may contain
confidential and/or privileged information. If you are not the intended
recipient, please notify the sender immediately and destroy this e-mail. In
this case any form of reproduction, disclosure, distribution or any action
taken or refrained from in reliance on it, is strictly prohibited.




.


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


[Samba] sambaLogonHours and timezones

2005-10-15 Thread David Wilson

Hi guys/girls,

How are you keeping ?

A while ago I mentioned a problem that I'm picking up with Samba with 
OpenLDAP and the logon hours restrictions which are implemented via the NT 
4.0 User Manager.


Basically my problem was that users were unable to login 2 hours before the 
actual restriction should kick in.
At the time I thought that perhaps the problem was caused by Slackware Linux 
and it's timezone implementation of SAST (GMT+2).

Since then I've experienced the same problem on SLES9 and Suse Linux 9.3.

From what I can see, the sambaLogonHours value is always set with GMT in 

mind.
Because in South Africa we are at GMT+2 Samba enforces restrictions 2 hours 
before it should.
For example if users should only denied login access at 16:00, Samba is 
denying them access at 14:00.


I've looked all over and cannot find a solution to the problem other than 
adding two hours to the logon hours restrictions for each user when using 
the NT User Manager tool.


Does anyone know of a workaround for this ? Is there a way to get Samba to 
check the time zone on the server first and make calculations before writing 
values for the sambaLogonHours attribute ?


Links/references:
Explanation of feature: http://www.archive-two.com/new-2794385-2895.html
http://lists.samba.org/archive/samba-technical/2004-December/038271.html
http://archives.free.net.ph/message/20051006.181854.4d7c50dc.en.html
http://archives.free.net.ph/message/20050701.071531.eeffd7e5.en.html
http://lists.samba.org/archive/samba/2005-February/099778.html

Thanks in advance.

Kind regards

David Wilson
CNS, CLS, Linux+
033 3427003
082 4147413
0860-1-LINUX

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


[Samba] smbcacls add acl fails 3.0.20

2005-10-15 Thread Henrik Zagerholm

Hi all!

I have a problem setting ACLs on a remote file on a Windows XP Pro  
SP2 box.


I issue the following command:
smbcacls -a 'ACL:BBI-DEV\beakid:ALLOWED/0/0x00100116' -U 'BBI-DEV 
\Admin' //BBI-DEV/Data /Niva.txt


And I get this response from debug level 3.

Password:
Connecting to host=BBI-DEV
Connecting to 192.168.1.124 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
Connecting to host=BBI-DEV
Connecting to 192.168.1.124 at port 445
Doing spnego session setup (blob length=16)
server didn't supply a full spnego negprot
Got challenge flags:
Got NTLMSSP neg_flags=0x628a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
lsa_io_sec_qos: length c does not match size 8
NT_TRANSACT_SET_SECURITY_DESC failed
ERROR: secdesc set failed: NT_STATUS_ACCESS_DENIED

Any help will be appreciated!


PS I can easily retrieve ACLs so it works one way :D

//Henrik

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


[Samba] Printing Delays - What's to blame?

2005-10-15 Thread Michael Lueck

Environment...
Client OS Win2K SP4
Corel WordPerfect Suite 12 SP2
Joined to Samba PDC 3.0.14a / Debian Sarge
CUPS printing
HP LaserJet 4000 on server LPT1

Delay...
Corel Presentations
File / Print / Current View to get one page printed / OK
Select another page
File / Print / wait wait wait...
The dialog will not pop until the paper has come out of the printer for the 
previous job

Any suggestions of what direction to head in for locating the program / code 
with the waiting problem?

--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Remove the upper case letters NOSPAM to contact me directly.

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


[Samba] Low Latency and Samba

2005-10-15 Thread AndyLiebman

I'm trying to optimize some servers for low  latency and low jitter. Do 
you have a reasonable ideas about specific Samba  options that might affect 
those attributes? 

In specific, I'm wondering  about the socket options. I would think 
TCP_NODELAY would be helpful in  reducing latency. 

However, I would also think that increasing the size  of the SO_RCVBUF and 
SO_SNDBUF would increase latency (because you would tend to  fill up larger 
buffers before writing incoming data to the filesystem, or you  would delay 
confirmation of writes going back out to the network). 

What  does the jury of Samba experts say about TCP_NODELAY and SO_RCVBUF 
and  SO_SNDBUF these days? Most documents and default smb.conf files that come 
with  distributions have 

socket options = TCP_NODELAY SO_RCVBUF=8192  SO_SNDBUF=8192

Are these considered magic numbers? 

I just  loaded up the most recent SUSE distribution, SUSE 10, and ITS default 
smb.conf  file does not set any socket options at all. 

Andy Liebman  

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


[Samba] Samba Speed versus Netatalk from OS X

2005-10-15 Thread AndyLiebman
Does anyone know why, when transferring data via  Gigabit Ethernet from OS X 
to Linux (or vice versa), you get about 50-60 MB/sec  with Samba 3.0.X (all 
versions I've tried, the rate depending on whether you use  Jumbo Frames) but 
you get about 105-110 MB/sec with Apple File Sharing Protocol  and Netatalk 
2.03? Is there any inherent reason why Samba goes at about half the  speed? 

By the way,  I'm talking about connecting with OS X (10.4.2  -- Tiger)'s 
native SMB/CIFS client. 

Andy Liebman  

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


[Samba] samba shutdown script

2005-10-15 Thread Software Groups
Hi,

I see following samba shutdown script line in the smb.conf file. Do
you know where can I get this shutdown.sh script?

shutdown script = /var/lib/samba/scripts/shutdown.sh

Thanks
--
Software Groups (SFG)
http://www.sfgroups.com
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba shutdown script

2005-10-15 Thread Robert Schetterer

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Software Groups schrieb:
| Hi,
|
| I see following samba shutdown script line in the smb.conf file. Do
| you know where can I get this shutdown.sh script?
|
| shutdown script = /var/lib/samba/scripts/shutdown.sh
|
| Thanks
| --
| Software Groups (SFG)
| http://www.sfgroups.com
Hi, this means sombody has written his own script, so you can do too

- --
Mit freundlichen Gruessen
Best Regards
Robert Schetterer

robert_at_schetterer.org
Munich / Bavaria / Germany
https://www.schetterer.org

\**
\* gnupgp
\* public key:
\* https://www.schetterer.org/public.key
\**
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDUVXsb0iqzJq+0MgRAhvuAJ4tpj707WyJdy6SOnnNJGfOEuUrWACeLeLy
BESqP8DyC2Ca3ebrWWD7VAQ=
=XOr5
-END 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] Re: what's the best filesystem

2005-10-15 Thread ch4os
I like the speed of ReiserFS, excellent!... but use ext3 for /boot and
/backup
as I can boot the ext3 from my OSX
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Samba ignores write and read list

2005-10-15 Thread stingray

Hi everybody,

I have problem with samba and really don't know how to solve it.

Seems as if samba ignored write list and read list options in smb.conf. 
Because when I have

writeable = yes
read list = dummy
user dummy can still write/delete. When I try to do it opposite, i.e.
read only = yes
write list = dummy
then dummy cannot write.

The point is, I have bunch of users specified by valid users (works ok) 
and few of them will have read-only access, the rest read-write access. 
I need to do it on samba level, not by unix rights.


Version of samba: 3.0.20
System: FreeBSD 4.9-RELEASE

Config file:

==
[global]
netbios name = FreeBSD
server string = FreeBSD Server
workgroup = GROUP
security = share
log file = /var/log/samba.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
encrypt passwords = yes
wins support = yes
local master = yes
domain master = yes
preferred master = yes
os level = 50
force create mode = 0766

[ALL]
path = /data/all
public = yes
guest ok = yes
writeable = yes

[SEC1]
path = /data/SEC1
public = no
writeable = yes
valid users = mike bill

[SEC2]
path = /data/SEC2
public = no
valid users = mike john
writeable = yes
read list = john
==

SEC1 works ok, SEC2 has problems described above. Testparm passes with 
no problems.


Thank you in advance for any idea how to solve it.

Best regards

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


[Samba] Samba Server for Embedded System, Network-Storage and Print-Serve r

2005-10-15 Thread Ranjeet Kumar - RD
Hi,

I am new to the mailing list, if any thing is wrong please excuse me in
advance. 

We are running Linux-2.4.20 on the MIPS32 architecture. We have USB2.0 host
and various network interfaces on the board and we want to support USB
Network-Storage and USB Print-Server. Until now I am able the make
USB-Storage and USB-Printer working locally. 

Please let us know HOWTO make it network. I read that Samba can enable these
devices to be shared with other machines in the network. Is there any other
way to support this feature? In case of Samba, what is the memory footprint
required? Is there any tiny version of Samba for Embedded System? For your
information, we have 16MB RAM and 4MB FLASH.

Really appreciate any help and comment!

Regards,
Ranjeet



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


[Samba] PRoblem with ntlm_auth

2005-10-15 Thread Tilo Lutz
Hi

I use suse 10.0. I want to use ntlm_auth
to authenticated users in squid.
Unfortunatly when I try to test the helper
I get this error:

proxy:~ # /usr/local/sbin/ntlm_auth --helper-protocol=squid-2.5-basic 
--debuglevel=3
tilo *password*
[2005/10/14 18:10:58, 3] utils/ntlm_auth.c:check_plaintext_auth(292)
  NT_STATUS_INVALID_HANDLE: Invalid handle (0xc008)
ERR

I have googled a bit but I didn't found a hint what this error means.

Other logfiles, e.g. log.smbd on the server doesn't change anything

This is the smb.conf:
[global]
workgroup = WMS-NET
netbios name = proxy
username map = /etc/samba/smbusers
map to guest = Bad User
include = /etc/samba/dhcp.conf
security = domain
password server = home
wins server = 192.168.0.7
encrypt passwords = yes
idmap uid = 9-10
idmap gid = 9-10
winbind use default domain = yes



Any ideas what is wrong?

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


Re: [Samba] wbinfo not looking up groups in mixed MS NT/2k AD

2005-10-15 Thread Andre Fernando Goldacker
Upgraded to samba-3.0.20b and it's working fine now.

I've noticed that, when I add / remove someone to / from the group
internet, which in my case is the one I give internet access, it is
taking a while for the user appear / be removed in the group, when I do
getent group the user only appears after a while, more or less 10
minutes. Is there a setting or something in which it updates quicker??

Thanks in advance,

André


On Fri, 2005-10-14 at 10:14 -0300, Felipe Augusto van de Wiel wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Andre Fernando Goldacker escreveu:
 [...]
  wbinfo -n 'EARTH\testgroup'
  Could not lookup name EARTH\testgroup
 
  I think that's the reason why my squid can't match users / groups.
  My winbind log file reports me the following lines when I try to 
  match user/group from squid:
 
  [2005/10/13 16:46:48, 0] lib/util_sid.c:string_to_sid(301)
string_to_sid: Sid Could not lookup name internet does not start 
  with 'S-'.
  [2005/10/13 16:46:48, 1]
  nsswitch/winbindd_sid.c:winbindd_sid_to_gid(241)
 
Could not cvt string to sid Could not lookup name internet
  Any clues why I can lookup users, but not goups?
  My AD has about 1100 users and 150 groups.
  Any help will be much appreciated,
 
   Never saw this problem before, but looking at the logs,
 looks like your group entry does not have the proper field set,
 or the field is not right, in other words, it does not start
 with a S- like all the SID's.
 
   It is not much help, but perhaps could be a start,
 good luck! Kind regards,
 
 - --
 //
 // Felipe Augusto van de Wiel [EMAIL PROTECTED]
 // CTI/Suporte - SEDU/PARANACIDADE
 // http://www.paranacidade.org.br/
 //
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.1 (GNU/Linux)
 Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
 
 iD8DBQFDT69HCj65ZxU4gPQRAud7AKCXdp+qPvaiyDX10VuqO3WpftM5MgCfQ4rN
 t1bixV+pGNo1N9MTvz9SfsA=
 =AqZF
 -END PGP SIGNATURE-
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] makepkg.sh for samba 3.0.20

2005-10-15 Thread xuan van

Hi,

I downloaded 3.0.20 from samba.org, ran makepkg.sh to create
samba pkg for Solaris. The install base for the new version
locates in /opt/samba and the smbd locates in /etc/samba.
I tried to modify the makepkg.sh to put everything under
/usr/local/samba as follow:

Delete:

   --localstatedir=/var/lib/samba \
   --with-piddir=/var/run \
   --with-logfilebase=/var/log/samba \
   --with-privatedir=/etc/samba/private \
   --with-configdir=/etc/samba \

Add:

   --localstatedir=/usr/local/samba/lib \
   --with-piddir=/var/run \
   --with-logfilebase=/usr/local/samba/var/log \
   --with-privatedir=/usr/local/samba/private \
   --with-configdir=/usr/local/samba/lib \

Replaced INSTALL_BASE=/opt/samba with INSTALL_BASE=/usr/local/samba

makepkg.sh completed with no error. However pkgadd gives me the 
following errors:

# pkgadd -d . samba

Processing package instance samba from /tmp

CIFS File and Print server
(sparc) 3.0.20
Copyright (C) 2001 Samba Team
Using /usr/local/samba as the package base directory.
## Processing package information.
pkgadd: ERROR: duplicate pathname /usr/local/samba/lib
pkgadd: ERROR: unable to process pkgmap

Installation of samba failed (internal error).
No changes were made to the system.

What am I missing?

Thanks,

Xuan




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


[Samba] SAMBA password sync

2005-10-15 Thread Sérgio A P Ferreira
Hello list,

 

I´m trying to synchronize NT password and Unix passwords at LDAP directory
through Samba. I want to know if I only to do is to configure “ldap password
sync = yes” ? If don´t,  what more is necessary to make this work?

 

Thanks,

 

Sergio Ferreira.

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


Re: [Samba] Patch: FC4 spec file

2005-10-15 Thread S Murthy Kambhampaty


--- Gerald (Jerry) Carter [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 S Murthy Kambhampaty wrote:
 
 | 2.)  The Fedora project's samba RPMS install
 | mount.cifs;   it would help to have samba.org's
 RPMS
 | do the same.
 |
 | It would be nice to see these patched incorporated
 | into the next version.
 
 
 This one will be in 3.0.20b

Thanks.




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Active Directory to OpenLDAP+Kerberos on Linux

2005-10-15 Thread Akshay Guleria
 No, although Samba can interact with Kerberos, it can't actually control
 an AD domain.  That's what Samba 4 is for.


ok. so finally, when is samba 4 coming !? :)
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] help needed for samba 3.0

2005-10-15 Thread Sunil Kumar
Hi all,

when I am tring to connect to my linux
share using linux for
ex: smbclient //linuxspan/kerberos -U suneel  - where as linuxspan is host
name and kerberos is a share name and suneel is ads user.
I am getting this error : tree connect failed : NT_STATUS_BAD_NETWORK_NAME.

pls help me on this.

Thanks in advance.

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


Re: [Samba] wbinfo not looking up groups in mixed MS NT/2k AD

2005-10-15 Thread John H Terpstra
On Friday 14 October 2005 12:25, Andre Fernando Goldacker wrote:
 Upgraded to samba-3.0.20b and it's working fine now.

 I've noticed that, when I add / remove someone to / from the group
 internet, which in my case is the one I give internet access, it is
 taking a while for the user appear / be removed in the group, when I do
 getent group the user only appears after a while, more or less 10
 minutes. Is there a setting or something in which it updates quicker??

Pleae check that nscd is not running. It sounds like it may be.

- John T.


 Thanks in advance,

 André

 On Fri, 2005-10-14 at 10:14 -0300, Felipe Augusto van de Wiel wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
  Andre Fernando Goldacker escreveu:
  [...]
 
   wbinfo -n 'EARTH\testgroup'
   Could not lookup name EARTH\testgroup
  
   I think that's the reason why my squid can't match users / groups.
   My winbind log file reports me the following lines when I try to
   match user/group from squid:
  
   [2005/10/13 16:46:48, 0] lib/util_sid.c:string_to_sid(301)
 string_to_sid: Sid Could not lookup name internet does not start
   with 'S-'.
   [2005/10/13 16:46:48, 1]
   nsswitch/winbindd_sid.c:winbindd_sid_to_gid(241)
  
 Could not cvt string to sid Could not lookup name internet
   Any clues why I can lookup users, but not goups?
   My AD has about 1100 users and 150 groups.
   Any help will be much appreciated,
 
  Never saw this problem before, but looking at the logs,
  looks like your group entry does not have the proper field set,
  or the field is not right, in other words, it does not start
  with a S- like all the SID's.
 
  It is not much help, but perhaps could be a start,
  good luck! Kind regards,
 
  - --
  //
  // Felipe Augusto van de Wiel [EMAIL PROTECTED]
  // CTI/Suporte - SEDU/PARANACIDADE
  // http://www.paranacidade.org.br/
  //
  -BEGIN PGP SIGNATURE-
  Version: GnuPG v1.4.1 (GNU/Linux)
  Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
 
  iD8DBQFDT69HCj65ZxU4gPQRAud7AKCXdp+qPvaiyDX10VuqO3WpftM5MgCfQ4rN
  t1bixV+pGNo1N9MTvz9SfsA=
  =AqZF
  -END PGP SIGNATURE-

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO  Reference Guide, 2 Ed., ISBN: 0131882228
Samba-3 by Example, 2 Ed., ISBN: 0131882221X
Hardening Linux, ISBN: 0072254971
Other books in production.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba Speed versus Netatalk from OS X

2005-10-15 Thread Andrew Morgan


On Sat, 15 Oct 2005 [EMAIL PROTECTED] wrote:


Does anyone know why, when transferring data via  Gigabit Ethernet from OS X
to Linux (or vice versa), you get about 50-60 MB/sec  with Samba 3.0.X (all
versions I've tried, the rate depending on whether you use  Jumbo Frames) but
you get about 105-110 MB/sec with Apple File Sharing Protocol  and Netatalk
2.03? Is there any inherent reason why Samba goes at about half the  speed?

By the way,  I'm talking about connecting with OS X (10.4.2  -- Tiger)'s
native SMB/CIFS client.


This has been my experience with OS X clients against Netatalk and Samba. 
I think it is a fault in the OS X smb client.


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


[Samba] Samba 3.0.20b - still getting Winbind Dead but subsys locked

2005-10-15 Thread PC
I can remove the /var/locl/subsys/winbindd file to clear the subsys locked 
message but this does not chnage the winbind crash problem.

I originally noticed this problem on 20a and thought that 20b had a fix for 
the winbind crash.

Any clues?

I am running RH ES 4.0 64 bit with samba packages downlaoded from 
enterprisesamba.com.

PC

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


Re[1]: my prog

2005-10-15 Thread David

Hello!
Cheap software, instant download:
http://www.geocities.com/nyutc4avwkm2h/

Jantvik Rios Carpenter Lange Michel


PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


svn commit: samba r11082 - in branches/SAMBA_4_0/source/winbind: .

2005-10-15 Thread vlendec
Author: vlendec
Date: 2005-10-15 08:17:22 + (Sat, 15 Oct 2005)
New Revision: 11082

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11082

Log:
Fix a segfault
Modified:
   branches/SAMBA_4_0/source/winbind/wb_async_helpers.c


Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_async_helpers.c
===
--- branches/SAMBA_4_0/source/winbind/wb_async_helpers.c2005-10-15 
00:50:03 UTC (rev 11081)
+++ branches/SAMBA_4_0/source/winbind/wb_async_helpers.c2005-10-15 
08:17:22 UTC (rev 11082)
@@ -139,6 +139,7 @@
talloc_get_type(ireq-async.private, struct finddcs_state);
 
state-ctx-status = irpc_call_recv(ireq);
+   talloc_free(ireq);
if (!composite_is_ok(state-ctx)) return;
 
state-dcs[0].name = talloc_steal(state-dcs, state-r.out.dcname);



svn commit: samba r11083 - in branches/SAMBA_4_0/source/scripting/ejs: .

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 09:25:43 + (Sat, 15 Oct 2005)
New Revision: 11083

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11083

Log:
use the addresses from the record

metze
Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_samba3.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_samba3.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_samba3.c   2005-10-15 
08:17:22 UTC (rev 11082)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_samba3.c   2005-10-15 
09:25:43 UTC (rev 11083)
@@ -405,7 +405,9 @@
ips = mprObject(array);
 
for (j = 0; j  samba3-winsdb_entries[i].ip_count; j++) {
-   mprAddArray(ips, j, mprString(iface_n_ip(i)));
+   const char *addr;
+   addr = sys_inet_ntoa(samba3-winsdb_entries[i].ips[j]);
+   mprAddArray(ips, j, mprString(addr));
}
 
mprSetVar(w, ips, ips);



svn commit: samba r11084 - in branches/SAMBA_4_0/source/lib/appweb: ejs mpr

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 09:28:56 + (Sat, 15 Oct 2005)
New Revision: 11084

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11084

Log:
- allow hex numbers with 'a'...'f' digits to be parsed
- parse hex numbers correct

tridge: how could we submit this to the upstream appweb library?

metze
Modified:
   branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLex.c
   branches/SAMBA_4_0/source/lib/appweb/mpr/var.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLex.c
===
--- branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLex.c   2005-10-15 09:25:43 UTC 
(rev 11083)
+++ branches/SAMBA_4_0/source/lib/appweb/ejs/ejsLex.c   2005-10-15 09:28:56 UTC 
(rev 11084)
@@ -633,12 +633,19 @@
break;
}
if (tolower(c) == 'x') {
-   if (tokenAddChar(ep, c)  0) {
-   return EJS_TOK_ERR;
-   }
-   if ((c = inputGetc(ep))  0) {
-   break;
-   }
+   do {
+   if (tokenAddChar(ep, c)  0) {
+   return EJS_TOK_ERR;
+   }
+   if ((c = inputGetc(ep))  0) {
+   break;
+   }
+   } while (isdigit(c) || (tolower(c) = 'a'  
tolower(c) = 'f'));
+
+   mprDestroyVar(ep-tokenNumber);
+   ep-tokenNumber = mprParseVar(ep-token, type);
+   inputPutback(ep, c);
+   return EJS_TOK_NUMBER;
}
if (! isdigit(c)) {
 #if BLD_FEATURE_FLOATING_POINT

Modified: branches/SAMBA_4_0/source/lib/appweb/mpr/var.c
===
--- branches/SAMBA_4_0/source/lib/appweb/mpr/var.c  2005-10-15 09:25:43 UTC 
(rev 11083)
+++ branches/SAMBA_4_0/source/lib/appweb/mpr/var.c  2005-10-15 09:28:56 UTC 
(rev 11084)
@@ -2015,7 +2015,7 @@
if (isdigit(c)) {
num64 = (c - '0') + (num64 * radix);
} else if (c = 'a'  c = 'f') {
-   num64 = (c - 'a') + (num64 * radix);
+   num64 = (c - ('a' - 10)) + (num64 * 
radix);
} else {
break;
}
@@ -2132,7 +2132,7 @@
if (isdigit(c)) {
num = (c - '0') + (num * radix);
} else if (c = 'a'  c = 'f') {
-   num = (c - 'a') + (num * radix);
+   num = (c - ('a' - 10)) + (num * radix);
} else {
break;
}



svn commit: samba r11086 - in branches/SAMBA_4_0/source/scripting/ejs: .

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 10:04:33 + (Sat, 15 Oct 2005)
New Revision: 11086

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11086

Log:
add sys.unix2nttime() function

metze
Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_sys.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_sys.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_sys.c  2005-10-15 
09:32:04 UTC (rev 11085)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_sys.c  2005-10-15 
10:04:33 UTC (rev 11086)
@@ -67,6 +67,22 @@
 }
 
 /*
+  return time as a 64 bit nttime value from a 32 bit time_t value
+*/
+static int ejs_sys_unix2nttime(MprVarHandle eid, int argc, struct MprVar 
**argv)
+{
+   NTTIME nt;
+   if (argc != 1 || !mprVarIsNumber(argv[0]-type)) {
+   ejsSetErrorMsg(eid, sys_unix2nttime invalid arguments);
+   return -1;
+   }
+   unix_to_nt_time(nt, mprVarToNumber(argv[0]));
+   struct MprVar v = mprCreateNumberVar(nt);
+   mpr_Return(eid, v);
+   return 0;
+}
+
+/*
   return the given time as a gmtime structure
 */
 static int ejs_sys_gmtime(MprVarHandle eid, int argc, struct MprVar **argv)
@@ -313,6 +329,7 @@
mprSetCFunction(obj, interfaces, ejs_sys_interfaces);
mprSetCFunction(obj, hostname, ejs_sys_hostname);
mprSetCFunction(obj, nttime, ejs_sys_nttime);
+   mprSetCFunction(obj, unix2nttime, ejs_sys_unix2nttime);
mprSetCFunction(obj, gmtime, ejs_sys_gmtime);
mprSetCFunction(obj, ldaptime, ejs_sys_ldaptime);
mprSetCFunction(obj, httptime, ejs_sys_httptime);



svn commit: samba r11087 - in branches/SAMBA_4_0/source: nbt_server/wins scripting/libjs setup

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 10:15:42 + (Sat, 15 Oct 2005)
New Revision: 11087

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11087

Log:
- add type,name,scope as attributes to winsRecords,
  so you can use them in search filters,
  only for administration not used inside the winserver code
- fix the samba3 ugrade scripts to create a correct samba4 wins.ldb

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
   branches/SAMBA_4_0/source/scripting/libjs/upgrade.js
   branches/SAMBA_4_0/source/setup/upgrade


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
===
--- branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c  2005-10-15 10:04:33 UTC 
(rev 11086)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c  2005-10-15 10:15:42 UTC 
(rev 11087)
@@ -513,6 +513,13 @@
 
msg-dn = winsdb_dn(msg, rec-name);
if (msg-dn == NULL) goto failed;
+   ret |= ldb_msg_add_fmt(msg, type, 0x%02X, rec-name-type);
+   if (rec-name-name) {
+   ret |= ldb_msg_add_string(msg, name, rec-name-name);
+   }
+   if (rec-name-scope) {
+   ret |= ldb_msg_add_string(msg, scope, rec-name-scope);
+   }
ret |= ldb_msg_add_fmt(msg, objectClass, winsRecord);
ret |= ldb_msg_add_fmt(msg, recordType, %u, rec-type);
ret |= ldb_msg_add_fmt(msg, recordState, %u, rec-state);

Modified: branches/SAMBA_4_0/source/scripting/libjs/upgrade.js
===
--- branches/SAMBA_4_0/source/scripting/libjs/upgrade.js2005-10-15 
10:04:33 UTC (rev 11086)
+++ branches/SAMBA_4_0/source/scripting/libjs/upgrade.js2005-10-15 
10:15:42 UTC (rev 11087)
@@ -228,22 +228,73 @@
 function upgrade_wins(samba3)
 {
var ldif = ;
+   var version_id = 0;
+
for (i in samba3.winsentries) {
+   var rType;
+   var rState;
+   var nType;
+   var numIPs = 0;
var e = samba3.winsentries[i];
-   
+   var now = sys.nttime();
+   var ttl = sys.unix2nttime(e.ttl);
+
+   version_id++;
+
+   for (var i in e.ips) {
+   numIPs++;
+   }
+
+   if (e.type == 0x1C) {
+   rType = 0x2;
+   } else if (sys.bitAND(e.type, 0x80)) {
+   if (numIPs  1) {
+   rType = 0x2;
+   } else {
+   rType = 0x1;
+   }
+   } else {
+   if (numIPs  1) {
+   rType = 0x3;
+   } else {
+   rType = 0x0;
+   }
+   }
+
+   if (ttl  now) {
+   rState = 0x0;/* active */
+   } else {
+   rState = 0x1;/* released */ 
+   }
+
+   nType = (sys.bitAND(e.nb_flags,0x60)5);
+
ldif = ldif + sprintf(
-dn: type=%d,name=%s
+dn: name:%s,type=0x%02X
+type: 0x%02X
 name: %s
-objectClass: wins
-nbFlags: %x
-expires: %s
-, e.type, e.name, e.name, e.type, e.nb_flags, sys.ldaptime(e.ttl));
+objectClass: winsRecord
+recordType: %u
+recordState: %u
+nodeType: %u
+isStatic: 0
+expireTime: %s
+versionID: %llu
+, e.name, e.type, e.type, e.name, 
+   rType, rState, nType, 
+   sys.ldaptime(ttl), version_id);
 
for (var i in e.ips) {
ldif = ldif + sprintf(address: %s\n, e.ips[i]);
}
}
 
+   ldif = ldif + sprintf(
+dn: CN=VERSION
+objectClass: winsMaxVersion
+maxVersion: %llu
+, version_id);
+
return ldif;
 }
 
@@ -569,7 +620,7 @@
 dn: @MODULES
 changetype: modify
 replace: @LIST
[EMAIL PROTECTED]: samldb,timestamps,objectguid,rdn_name,samba3sam
[EMAIL PROTECTED]: samldb,operational,objectguid,rdn_name,samba3sam
 );
if (!ok) {
message(Error enabling samba3sam module:  + 
samdb.errstring() + \n);

Modified: branches/SAMBA_4_0/source/setup/upgrade
===
--- branches/SAMBA_4_0/source/setup/upgrade 2005-10-15 10:04:33 UTC (rev 
11086)
+++ branches/SAMBA_4_0/source/setup/upgrade 2005-10-15 10:15:42 UTC (rev 
11087)
@@ -75,7 +75,7 @@
 if (options.targetdir != undefined) {
paths = new Object();
paths.smbconf = sprintf(%s/smb.conf, options.targetdir);
-   var ldbs = new 
Array(hklm,hkcr,hku,hkcu,hkpd,hkpt,samdb,rootdse,secrets,winsdb);
+   var ldbs = new 
Array(hklm,hkcr,hku,hkcu,hkpd,hkpt,samdb,rootdse,secrets,wins);
for (var i in ldbs) {
var n = ldbs[i];
paths[n] = sprintf(tdb://%s/%s.ldb, options.targetdir, n);



Re: svn commit: samba r11082 - in branches/SAMBA_4_0/source/winbind: .

2005-10-15 Thread Stefan Metzmacher
On Sat, Oct 15, 2005 at 08:17:22AM +, [EMAIL PROTECTED] wrote:
   state-ctx-status = irpc_call_recv(ireq);
 + talloc_free(ireq);
   if (!composite_is_ok(state-ctx)) return;
Hi Volker,

typicaly in samba4 the _recv() function free's the request struct,
we should maybe add that to irpc_call_recv() too,

btw: why does it segfault here? when you don't free the struct here?

metze


svn commit: samba r11088 - in branches/SAMBA_4_0/source/nbt_server/wins: .

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 10:55:30 + (Sat, 15 Oct 2005)
New Revision: 11088

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11088

Log:
don't try to set empty strings values as attributes
our ldb doesn't support them, does w2k3 LDAP supports them?

metze
Modified:
   branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c
===
--- branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c  2005-10-15 10:15:42 UTC 
(rev 11087)
+++ branches/SAMBA_4_0/source/nbt_server/wins/winsdb.c  2005-10-15 10:55:30 UTC 
(rev 11088)
@@ -514,10 +514,10 @@
msg-dn = winsdb_dn(msg, rec-name);
if (msg-dn == NULL) goto failed;
ret |= ldb_msg_add_fmt(msg, type, 0x%02X, rec-name-type);
-   if (rec-name-name) {
+   if (rec-name-name  *rec-name-name) {
ret |= ldb_msg_add_string(msg, name, rec-name-name);
}
-   if (rec-name-scope) {
+   if (rec-name-scope  *rec-name-scope) {
ret |= ldb_msg_add_string(msg, scope, rec-name-scope);
}
ret |= ldb_msg_add_fmt(msg, objectClass, winsRecord);



svn commit: samba r11089 - in branches/SAMBA_4_0/source: param wrepl_server

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 11:04:46 + (Sat, 15 Oct 2005)
New Revision: 11089

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11089

Log:
start the winsreplication task when we run with wins support = yes

metze
Modified:
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/param/loadparm.c
===
--- branches/SAMBA_4_0/source/param/loadparm.c  2005-10-15 10:55:30 UTC (rev 
11088)
+++ branches/SAMBA_4_0/source/param/loadparm.c  2005-10-15 11:04:46 UTC (rev 
11089)
@@ -603,7 +603,7 @@
do_parameter(max connections, -1, NULL);
 
do_parameter(dcerpc endpoint servers, epmapper srvsvc wkssvc rpcecho 
samr netlogon lsarpc spoolss drsuapi winreg dssetup, NULL);
-   do_parameter(server services, smb rpc nbt ldap cldap web kdc, NULL);
+   do_parameter(server services, smb rpc nbt wrepl ldap cldap web kdc, 
NULL);
do_parameter(ntptr providor, simple_ldb, NULL);
do_parameter(auth methods, anonymous sam_ignoredomain, NULL);
do_parameter(private dir, dyn_PRIVATE_DIR, NULL);

Modified: branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c
===
--- branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-10-15 
10:55:30 UTC (rev 11088)
+++ branches/SAMBA_4_0/source/wrepl_server/wrepl_server.c   2005-10-15 
11:04:46 UTC (rev 11089)
@@ -381,6 +381,10 @@
  */
 static NTSTATUS wreplsrv_init(struct event_context *event_ctx, const struct 
model_ops *model_ops)
 {
+   if (!lp_wins_support()) {
+   return NT_STATUS_OK;
+   }
+
return task_server_startup(event_ctx, model_ops, wreplsrv_task_init);
 }
 



svn commit: samba r11091 - in branches/SAMBA_4_0/source/torture: . nbt

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 12:30:08 + (Sat, 15 Oct 2005)
New Revision: 11091

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11091

Log:
add a NBT-WINSREPLICATION-QUICK test that passed the current samba4 server

metze
Modified:
   branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/nbt/winsreplication.c
===
--- branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-10-15 
12:23:33 UTC (rev 11090)
+++ branches/SAMBA_4_0/source/torture/nbt/winsreplication.c 2005-10-15 
12:30:08 UTC (rev 11091)
@@ -1487,6 +1487,36 @@
 /*
   test WINS replication operations
 */
+BOOL torture_nbt_winsreplication_quick(void)
+{
+   const char *address;
+   struct nbt_name name;
+   TALLOC_CTX *mem_ctx = talloc_new(NULL);
+   NTSTATUS status;
+   BOOL ret = True;
+
+   make_nbt_name_server(name, lp_parm_string(-1, torture, host));
+
+   /* do an initial name resolution to find its IP */
+   status = resolve_name(name, mem_ctx, address, NULL);
+   if (!NT_STATUS_IS_OK(status)) {
+   printf(Failed to resolve %s - %s\n,
+  name.name, nt_errstr(status));
+   talloc_free(mem_ctx);
+   return False;
+   }
+
+   ret = test_assoc_ctx1(mem_ctx, address);
+   ret = test_assoc_ctx2(mem_ctx, address);
+
+   talloc_free(mem_ctx);
+
+   return ret;
+}
+
+/*
+  test WINS replication operations
+*/
 BOOL torture_nbt_winsreplication(void)
 {
const char *address;

Modified: branches/SAMBA_4_0/source/torture/torture.c
===
--- branches/SAMBA_4_0/source/torture/torture.c 2005-10-15 12:23:33 UTC (rev 
11090)
+++ branches/SAMBA_4_0/source/torture/torture.c 2005-10-15 12:30:08 UTC (rev 
11091)
@@ -2340,8 +2340,9 @@
/* nbt tests */
{NBT-REGISTER, torture_nbt_register, 0},
{NBT-WINS, torture_nbt_wins, 0},
+   {NBT-DGRAM, torture_nbt_dgram, 0},
+   {NBT-WINSREPLICATION-QUICK, torture_nbt_winsreplication_quick, 0},
{NBT-WINSREPLICATION, torture_nbt_winsreplication, 0},
-   {NBT-DGRAM, torture_nbt_dgram, 0},

/* libnet tests */
{NET-USERINFO, torture_userinfo, 0},



svn commit: samba r11092 - in branches/SAMBA_4_0/source/script/tests: .

2005-10-15 Thread metze
Author: metze
Date: 2005-10-15 12:30:58 + (Sat, 15 Oct 2005)
New Revision: 11092

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11092

Log:
run NBT-WINSREPLICATION-QUICK test with make test

metze
Modified:
   branches/SAMBA_4_0/source/script/tests/test_nbt.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_nbt.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_nbt.sh  2005-10-15 12:30:08 UTC 
(rev 11091)
+++ branches/SAMBA_4_0/source/script/tests/test_nbt.sh  2005-10-15 12:30:58 UTC 
(rev 11092)
@@ -18,7 +18,7 @@
 PATH=bin:$PATH
 export PATH
 
-for f in NBT-REGISTER NBT-WINS; do
+for f in NBT-REGISTER NBT-WINS NBT-WINSREPLICATION-QUICK; do
 testit $f bin/smbtorture $TORTURE_OPTIONS //$SERVER/_none_ $f || 
failed=`expr $failed + 1`
 done
 



svn commit: samba r11093 - in branches/SAMBA_4_0/source: include winbind

2005-10-15 Thread vlendec
Author: vlendec
Date: 2005-10-15 19:18:05 + (Sat, 15 Oct 2005)
New Revision: 11093

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11093

Log:
Implement wb_queue_domain_send: If the domain is not yet initialized, do that
first. And if a request is being processed, queue it. This correctly survived
3 endless loops with wbinfo's doing different things while starting up smbd.

The number of indirections starts to become a bit scary, but what can you do
without a decent programming language that provides closures :-)

One thing that we might consider is to auto-generate async rpc requests that
return composite_context structs instead of rpc_requests. Otherwise I'd have
to write a lot of wrappers like composite_netr_LogonSamLogon_send.

The alternative would be to write two versions of wb_queue_domain_send which I
would like to avoid. This is cluttered enough already.

Volker

Modified:
   branches/SAMBA_4_0/source/include/structs.h
   branches/SAMBA_4_0/source/winbind/wb_async_helpers.c
   branches/SAMBA_4_0/source/winbind/wb_connect_lsa.c
   branches/SAMBA_4_0/source/winbind/wb_init_domain.c
   branches/SAMBA_4_0/source/winbind/wb_pam_auth.c
   branches/SAMBA_4_0/source/winbind/wb_server.h


Changeset:
Sorry, the patch is too large (596 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11093


svn commit: samba r11094 - in branches/SAMBA_4_0/source: libnet winbind

2005-10-15 Thread vlendec
Author: vlendec
Date: 2005-10-15 22:01:15 + (Sat, 15 Oct 2005)
New Revision: 11094

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11094

Log:
Connect to SAM, implement getdcname
Added:
   branches/SAMBA_4_0/source/winbind/wb_cmd_getdcname.c
   branches/SAMBA_4_0/source/winbind/wb_cmd_lookupname.c
   branches/SAMBA_4_0/source/winbind/wb_connect_sam.c
Modified:
   branches/SAMBA_4_0/source/libnet/libnet_join.c
   branches/SAMBA_4_0/source/winbind/config.mk
   branches/SAMBA_4_0/source/winbind/wb_async_helpers.c
   branches/SAMBA_4_0/source/winbind/wb_init_domain.c
   branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c
   branches/SAMBA_4_0/source/winbind/wb_samba3_protocol.c
   branches/SAMBA_4_0/source/winbind/wb_server.h


Changeset:
Sorry, the patch is too large (812 lines) to include; please use WebSVN to see 
it!
WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=11094


Build status as of Sun Oct 16 00:00:03 2005

2005-10-15 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2005-10-15 
00:00:12.0 +
+++ /home/build/master/cache/broken_results.txt 2005-10-16 00:00:09.0 
+
@@ -1,17 +1,17 @@
-Build status as of Sat Oct 15 00:00:02 2005
+Build status as of Sun Oct 16 00:00:03 2005
 
 Build counts:
 Tree Total  Broken Panic 
 ccache   10 2  0 
-distcc   9  2  0 
-lorikeet-heimdal 33 20 0 
-ppp  15 0  0 
-rsync35 2  0 
+distcc   10 2  0 
+lorikeet-heimdal 33 18 0 
+ppp  16 0  0 
+rsync35 3  0 
 samba2  0  0 
 samba-docs   0  0  0 
-samba4   36 18 4 
-samba_3_037 11 0 
+samba4   35 18 3 
+samba_3_036 11 0 
 smb-build25 5  0 
-talloc   11 6  0 
-tdb  35 4  0 
+talloc   12 6  0 
+tdb  9  3  0