RE: [Samba] Re: Problems with Samba and Windows 2003 Active DomainServer

2005-06-10 Thread Mark A. Holm
The one over whelming theme that I keep running across with my Linux 
installations is that you cannot deploy the packages that come
with the distributions. Which always makes me wonder why the packages exist in 
the first place, if you can't make them work in a
real environment.

The steps that I am doing, follow both what you did and each of the different 
tutorials I found, with the exception of compiling the
Samba packages from source. Has anybody been able to make this work using the 
distributed packages from the Fedora distribution or
SuSE? This installation was my first test to see how easy/hard this was going 
to be. I have another client that is looking at
deploying approximately 200 workstations. If I have to hand compile each new 
machine, these will take a lot longer to deploy, even
with scripting and a centralized distribution server.

markh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of M Maki
Sent: Thursday, June 09, 2005 10:09 AM
To: samba@lists.samba.org
Subject: [Samba] Re: Problems with Samba and Windows 2003 Active DomainServer

 Any and all help greatly appreciated. It shouldn't be this hard to make
 Windows and Linux work together. sigh!
 
   markh

Mark,

This is how I do it for a WIN2K3 Active Directory domain. I only have 
rights to add computers to our domain and this has worked great for me. 
Took me a few days to get it right. It's not Fedora, maybe it will 
convert you to Debian! I have this documented internally. I should post 
it somewhere public.

Samba Install on Debian Sarge (now Stable!) from Net Install 
http://www.debian.org/CD/netinst/

Install Debian. Don't add any packages during install:

Run command:
apt-get install sudo libkrb5-dev krb5-user libldap2-dev acl libacl1-dev 
quota quotatool rdate

I use sudo that's why it is included. I guess you can do it all as root.

You don't need the quota packages if your not using quotas.
I use rdate to keep my clocks in sync.

Run the commands:

wget http://us2.samba.org/samba/ftp/samba-latest.tar.gz

tar xvzf samba-latest.tar.gz

cd samba-3.0.14a/source

./configure --with-winbind --with-ads --with-quotas --with-acl-support 
--with-mandir=/usr/share/man

make  sudo make install

cp samba-3.0.14a/source/nsswitch/libnss_winbind.so /lib

ln -s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

touch /etc/ld.so.conf

sbin/ldconfig -v | grep winbind

My /usr/local/samba/lib/smb.conf

[global]

 workgroup = PWR
 realm = PWR.INT.XYZ.COM
 security = ADS
 password server = pwroakdc1.pwr.int.xyz.com
 log file = /usr/local/samba/var/%m.log
 preferred master = No
 local master = No
 domain master = No
 wins server = 192.168.1.22
 idmap uid = 1-4
 idmap gid = 1-4
 # winbind use default domain = Yes
 winbind enum users = No
 winbind enum groups = No
 winbind nested groups = Yes
 socket options = TCP_NODELAY
 socket options = SO_RCVBUF=8192

[users]
 path = /home/users
 read only = No
 admin users = PWR\mmaki

I don't use winbind enum users because we have over 20K users in our domain.

ONLY changes to my /etc/nsswitch.conf

  passwd: files compat winbind
  group:  files compat winbind
  shadow:   compat

My COMPLETE /etc/krb5.conf

[libdefaults]
 default_realm = PWR.INT.xyz.com

[realms]
 PWR.INT.xyz.com = {
 kdc = pwroakdc1.pwr.int.xyz.com
 kdc = inppwrodc.pwr.int.xyz.com
 }

[domain_realm]
 .pwr.int.xyz.com = PWR.INT.XYZ.COM


My /etc/fstab for using quotas:

/dev/sda1 /home/users ext3 defaults,acl,usrquota,grpquota  0   2

My hosts (/etc/hosts)

add

192.168.1.12  sambaserver.pwr.int.xyz.com  sambaserver

and remove sambaserver from localhost

My /etc/init.d/samba

# Not the best but it works
#!/bin/sh
#
# Start the Samba daemons (nmbd and smbd).
#
/usr/local/samba/sbin/nmbd -D
/usr/local/samba/sbin/smbd -D
/usr/local/samba/sbin/winbindd -B

Run the commands:
ln -s /etc/init.d/samba /etc/rc2.d/S80samba
chmod go+x /etc/init.d/samba

Run command:
/usr/local/samba/bin/net ads join -U [EMAIL PROTECTED]

If sucsessfully joined you should be on your way!

Good Luck,

Mike


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



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


Re: [Samba] Changing Passsword from Windows XP (Samba is not in Domain)

2005-06-10 Thread Michael Jürgens
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
no help in sight about that?

Michael Jürgens schrieb:

 Hello,

 I?ve a Samba 3.0.9 Server which will be connected sometimes from
 Windows XP workstations over a vpn.
 Neither the workstations nor the Samba server is in any Domain.
 Now my question:
 Is there any way to change the password on the Samba server from
 Windows?

 I?ve tried to connect the Windows user and group manager to the Samba
 server but I get only the response the the RPC Server is not running on
 the remote machine.

 regards,
 Michael
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
 
iD8DBQFCqUOYdyJE65t6hK8RAuNpAJ9Ip61vadnvupf9PuFDjk+ZXdLguQCgioKq
x9kuLlghjuPeogV7/Bvq12o=
=qxTz
-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] Changing Passsword from Windows XP (Samba is not in Domain)

2005-06-10 Thread Michael Jürgens
no help in sight about that?

Michael Jürgens schrieb:

 Hello,

 I?ve a Samba 3.0.9 Server which will be connected sometimes from
 Windows XP workstations over a vpn.
 Neither the workstations nor the Samba server is in any Domain.
 Now my question:
 Is there any way to change the password on the Samba server from
 Windows?

 I?ve tried to connect the Windows user and group manager to the Samba
 server but I get only the response the the RPC Server is not running on
 the remote machine.

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


[Samba] how to list computers that are joined to the domain?

2005-06-10 Thread Tomasz Chmielewski

How to list computers that are joined to the domain?

Is the best way to do:

getent passwd | grep $


Or perhaps there are some Samba-specific tools to do that?

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


Re: [Samba] New HP Printer Drivers wont upload (samba 3.0.11)

2005-06-10 Thread Luca Olivetti

En/na Gerald (Jerry) Carter ha escrit:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phil Burrow wrote:

| I'm trying to upload the latest Windows XP PCL6
| driver for our Laserjet  4250TN to my Samba 3.0.11
| server. It works, and uploads the driver files,
| but then at the end it produces an error on the
| XP client the  operation could not
| be completed. The logs on the samba server state:
|
| move_driver_to_download_area: Unable to
|   rename [W32X86/HPC4250C.INI] to [W32X86/3/HPC4250C.INI]

if you send me the driver archive or download URL, I'll
take a look.


Any news on this issue?
Today I've been asked if an hp business inkjet 1200 is compatible with 
Linux (what that actually means is if it's possible to install drivers 
on the server for pointclick printing), this time *before* actually 
buying the printer.

I downloaded the driver here

ftp://ftp.hp.com/pub/softlib/software5/COL8907/bi-23649-2/bi1203sp.exe

and I have the same problem, so I advised *not* to buy this printer, but 
I fear most newer drivers have this issue.


Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Problems with authenticating linux against Windows 2000 Active Directory

2005-06-10 Thread Marcelin Bruno
Hi,

I am trying to authenticating Linux (Debian) against Windows 2000 Active
Directory. It works but i have errors in winbindd logs.
This is how my Active Directory Forest is organized :
myCompany.com
Site1.myCompany.com
Site2.myCompany.com
Site3.myCompany.com
...
SiteX.myCompany.com

I am in the site1 and samba speaks with all the other sites. Why? How to
prevent that?

This my configuration files and the log file

 Smf.conf #

workgroup = SITE1
realm = SITE1.MYCOMPANY.COM
security = ADS
obey pam restrictions = Yes
password server = PasswordServerName
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = lmhosts host bcast
dns proxy = No
idmap uid = 500-1000
idmap gid = 500-1000
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = Yes
winbind nested groups = Yes
invalid users = root


## krb5.conf 

[libdefaults]
default_realm = SITE1.MYCOMPANY.COM
dns_lookup_realm = false

[realms]
SITE1.MYCOMPANY.COM= {
 kdc = kdc.SITE1.MYCOMPANY.COM
}

[domain_realm]
.site1.mycompany.com=SITE1.MYCOMPANY.COM


## log.winbindd ##

ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Cannot resolve network address for KDC in
requested realm)
[2005/06/10 10:10:50, 1]
nsswitch/winbindd_ads.c:ads_cached_connection(81)
  ads_connect for domain SITE2-NBT failed: Cannot resolve network
address for KDC in requested realm
[2005/06/10 10:10:51, 1] libsmb/clikrb5.c:ads_krb5_mk_req(389)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Cannot resolve network address for KDC in
requested realm)
[2005/06/10 10:10:51, 1] libsmb/clikrb5.c:ads_krb5_mk_req(389)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Cannot resolve network address for KDC in
requested realm)
[2005/06/10 10:10:51, 1]
nsswitch/winbindd_ads.c:ads_cached_connection(81)
  ads_connect for domain SITE3 failed: Cannot resolve network address
for KDC in requested realm
[2005/06/10 10:10:51, 1] libsmb/clikrb5.c:ads_krb5_mk_req(389)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Cannot resolve network address for KDC in
requested realm)
[2005/06/10 10:10:51, 1] libsmb/clikrb5.c:ads_krb5_mk_req(389)
  ads_krb5_mk_req: krb5_get_credentials failed for
[EMAIL PROTECTED] (Cannot resolve network address for KDC in
requested realm)
[2005/06/10 10:10:51, 1]
nsswitch/winbindd_ads.c:ads_cached_connection(81)
  ads_connect for domain SITE4-NBT failed: Cannot resolve network
address for KDC in requested realm

Any Ideas?
Bruno

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


[Samba] change windows ADS passwords from linux box

2005-06-10 Thread Stefanos Karasavvidis

I have samba clients authenticating to Windows ADS through winbind.

All works perfectly, but I don't how to enable my linux users to change 
their password (on the windows machine) from the linux box.


Although there is a great deal of documentation on the internet, I could 
not find anything specifically to this...


A small howto on what smb.conf/pam/nsswitch/xxx parameters are required 
to do this will be greatly appreciated.


Regards

Stefanos
--
==
Stefanos Karasavvidis
Electronic  Computer Engineer, M.Eng.
e-mail : [EMAIL PROTECTED]

Technical University of Crete, Campus
Information Systems Center
Address: Akrotiri, Chania, 73100
Tel.: (+30) 28210 37352, 37355 (central), 37766 (ENV.ENG. buildings)
Fax:  (+30) 28210 37571
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread giuseppe59

Stefanos Karasavvidis wrote:

I have samba clients authenticating to Windows ADS through winbind.

All works perfectly, but I don't how to enable my linux users to change 
their password (on the windows machine) from the linux box.


Password ? it is the ads password to logon on PDC ?

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


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread Stefanos Karasavvidis



giuseppe59 wrote:

 Stefanos Karasavvidis wrote:

 I have samba clients authenticating to Windows ADS through winbind.

 All works perfectly, but I don't how to enable my linux users to 
change their password (on the windows machine) from the linux box.




 Password ? it is the ads password to logon on PDC ?

both the username and the password are provided from a windows Active 
Directory Server. They are not stored anywhere locally


--
==
Stefanos Karasavvidis
Electronic  Computer Engineer, M.Eng.
e-mail : [EMAIL PROTECTED]

Technical University of Crete, Campus
Information Systems Center
Address: Akrotiri, Chania, 73100
Tel.: (+30) 28210 37352, 37355 (central), 37766 (ENV.ENG. buildings)
Fax:  (+30) 28210 37571

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


Re: [Samba] Re: Re: Problems with testing Openldapserver telnetlocalhost 389

2005-06-10 Thread Tony Earnshaw
fre, 10.06.2005 kl. 03.19 skrev Andreas Bauer:

 Tony Earnshaw:
  Have I also to create an admin account in passwd?
  No. /etc/passwd has nothing to do with what you're doing with LDAP.
 
 But I need smbpasswd accounts?

All the accounts go into LDAP. All users, machines, groups, are in LDAP.
Nothing should go into /etc/passwd.

--Tonni

-- 
mail: [EMAIL PROTECTED]
http://www.billy.demon.nl


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


Re: [Samba] W2K printer problem

2005-06-10 Thread Tony Earnshaw
fre, 10.06.2005 kl. 06.32 skrev Joe Cipale:

 I am getting the following prblem from my Winblows printer.
 
 Using the CUPS printer Config tool, the printer can be setup as a 
 smb://host_name/printer
 
 When I attempt to send a test page, I get the following message:
 Description: Brother LaserJet
 Location: royal
 Printer State: processing, accepting jobs.
 Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: 
 Connection failed with error NT_STATUS_ACCESS_DENIED
 Device URI: smb://royal/lsj
 
 I have the printer setup to accept sharing on the WIndows host(royal),
 I have the permissions set to allow everyone to print/manage 
 printers/print jobs
 
 This is a small, 3 workstation network at home. Nothing fancy. This is 
 the one
 item that CONTINUES to drive me up the g**damn wall (printing to windows...)
 
 A wee bit of help, please?

Simply set up the cups printer as a normal Unix printer (such that you
can always print from that machine), following the instructions in the
Samba docs to enable raw printing. In fact, following the docs for
setting up the printer is a pre.

--Tonni

-- 
mail: [EMAIL PROTECTED]
http://www.billy.demon.nl


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


Re: [Samba] YASQ

2005-06-10 Thread Tony Earnshaw
fre, 10.06.2005 kl. 06.35 skrev Joe Cipale:

 Using Fedora Core 2, I have edited/created my swat file, restarted the 
 xinetd service,
 but when I attempt to launch SWAT using local host, I get the following 
 message:
 
 The connection was refused trying to contact localhost:901
 
 ANy ideas?

You didn't change disable = no in /etc/xinetd.d/swat?

--Tonni

-- 
mail: [EMAIL PROTECTED]
http://www.billy.demon.nl


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


[Samba] netbios description

2005-06-10 Thread graeme

Guys


I have a samba server that has joined and existing 2000 domain (used for 
squid NTLM auth)


When using My network places on an xp  server i see the following
Samba 3.0.11 (Squid-server)


Now the servers name is Squid-server, and the description seems to be 
Samba 3.0.11.  How do i remove this description ?


I have look through the smb.conf man pages and can find where you set 
the netbios name but not the descrition.



Cheers

Graeme

--
Chaos. Panic. Disorder. My work here today is done


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


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread Stefanos Karasavvidis
thanks Giuseppe, but I can't do that because I do not install separate 
kerberos implementation (I use the samba packages from sernet, which 
have kerberos statically built). So I do not have this utility, and I do 
not want to install it.


I was hoping that there is something built in in samba that can do that

Anyway, thanks again

giuseppe59 wrote:

 Stefanos Karasavvidis wrote:

   both the username and the password are provided from a windows 
Active Directory Server. They are not stored anywhere locally

  

 Hello Stefanos

 I change the password using ktpasswd from the linux box.
 I havo no tested net ads passwdord.

 Giuseppe


--
==
Stefanos Karasavvidis
Electronic  Computer Engineer, M.Eng.
e-mail : [EMAIL PROTECTED]

Technical University of Crete, Campus
Information Systems Center
Address: Akrotiri, Chania, 73100
Tel.: (+30) 28210 37352, 37355 (central), 37766 (ENV.ENG. buildings)
Fax:  (+30) 28210 37571


--
==
Stefanos Karasavvidis
Electronic  Computer Engineer, M.Eng.
e-mail : [EMAIL PROTECTED]

Technical University of Crete, Campus
Information Systems Center
Address: Akrotiri, Chania, 73100
Tel.: (+30) 28210 37352, 37355 (central), 37766 (ENV.ENG. buildings)
Fax:  (+30) 28210 37571
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE [Samba] netbios description

2005-06-10 Thread spu

Hi,

server string parameter in smb.conf

---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur
10/06/2005 11:35:50 :

 Guys


 I have a samba server that has joined and existing 2000 domain (used for
 squid NTLM auth)

 When using My network places on an xp  server i see the following
 Samba 3.0.11 (Squid-server)


 Now the servers name is Squid-server, and the description seems to be
 Samba 3.0.11.  How do i remove this description ?

 I have look through the smb.conf man pages and can find where you set
 the netbios name but not the descrition.


 Cheers

 Graeme

 --
 Chaos. Panic. Disorder. My work here today is done


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


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread giuseppe59

Stefanos Karasavvidis wrote:

I was hoping that there is something built in in samba that can do that


net ads password ?

I don' use it, but i believe it is working fine.

Giuseppe

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


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread giuseppe panei

Stefanos Karasavvidis wrote:

I was hoping that there is something built in in samba that can do that


net ads password ?

I don' use it, but i believe it is working fine.

Giuseppe

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


Re: [Samba] change windows ADS passwords from linux box

2005-06-10 Thread Stefanos Karasavvidis

nope

[EMAIL PROTECTED]:~$ net ads password
You must supply an administrator username/password

I need my users to be able to change it without admin intervention

giuseppe panei wrote:

Stefanos Karasavvidis wrote:


I was hoping that there is something built in in samba that can do that


net ads password ?

I don' use it, but i believe it is working fine.

Giuseppe



--
==
Stefanos Karasavvidis
Electronic  Computer Engineer, M.Eng.
e-mail : [EMAIL PROTECTED]

Technical University of Crete, Campus
Information Systems Center
Address: Akrotiri, Chania, 73100
Tel.: (+30) 28210 37352, 37355 (central), 37766 (ENV.ENG. buildings)
Fax:  (+30) 28210 37571
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Re: Re: Problems with testing Openldapservertelnetlocalhost 389

2005-06-10 Thread Andreas Bauer
 But I need smbpasswd accounts?

Tony Earnshaw schrieb
 All the accounts go into LDAP. All users, machines, groups, are in LDAP.
 Nothing should go into /etc/passwd.

I do not mean in /etc/passwd, but create an account like smbpasswd -a -u 
user in /etc/samba/ or
with pdbedit -a -u user. Because, I need a password to log in as a LDAPuser 
from my windows client in LDAP Server.

Many thanks
Andreas

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



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


[Samba] Win xp can get all access

2005-06-10 Thread Casper


Hi,

 I run in strange problem. I have Samba server 3.0.11 where is few 
departament directory. All directory have only one user who can get 
access and password for it. Now in few days I run in problem, that I 
have one user and one computer with fresh win xp with all updates 
installed where this user with own password can after writing password 
access for all directorys... If I put another dep. password in this 
computer it can`t get to other password, but with one particular 
password it get to all directory... With other computers I can to make 
it. In log shows, when it is in own directory has own user, but when it 
goes to another diretocty it shows another user, without even writing 
password, but with full access to it... Have anybody experience some 
think like that too? Have sugestion what is problem?


sample:

[global]
workgroup = Main
netbios name = Pub
server string = Fail server
security = share
[dep1]
path = /date/Dep1
comment = Dep1
read only = Yes
read list = dep1
writable = No
[dep2]
path = /date/Dep2
comment = Dep2
read only = No
force user = dep2
writable = Yes



have good day,

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


[Samba] Re: Re: Re: Problems with testing Openldapservertelnetloc alhost 389

2005-06-10 Thread Geoff Scott
Andreas Bauer wrote:
 But I need smbpasswd accounts?
 
 Tony Earnshaw schrieb
 All the accounts go into LDAP. All users, machines, groups, are in
 LDAP. Nothing should go into /etc/passwd.
 
 I do not mean in /etc/passwd, but create an account like smbpasswd -a
 -u user in /etc/samba/ or with pdbedit -a -u user. Because, I need a
 password to log in as a LDAPuser from my windows client in LDAP
 Server.   
 
 Many thanks
 Andreas
 

Andreas,
 it seems like you are getting plenty of help and in the process the person
who is helping you is reinventing the wheel.  I know how hard it is getting
to grips with all the things that go into making a successful samba domain
with an ldapsam backend but it really seems like you haven't taken the time
to read the samba guide:

http://www.samba.org/samba/docs/man/Samba-Guide/

It has some hearty recipes that can really help you.

The answer to the above is that you use some scripts to add users to the
ldap backend.  The smbldap-tools, despite what Tony Earnshaw thinks of them,
work fine in the majority of situations.  Particularly the 8.9 series.
Please read the guide to see how to put it all together.  

Come back with questions saying things like  I got to the happy users
chapter section x.x.x and my logs show this is happening:

Paste logs

How do I resolve this?


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


[Samba] winbind and pam on FC3

2005-06-10 Thread David Rigler


I cant get a login from an FC3 setup unless the user has a local account.

Jun 10 11:53:12 fc3 login(pam_unix)[12082]: check pass; user (elina) unknown
Jun 10 11:53:12 fc3 login(pam_unix)[12082]: authentication failure; 
logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost=  user=elina

Jun 10 11:53:12 fc3 pam_winbind[12082]: user 'elina' granted access
Jun 10 11:53:12 fc3 login(pam_unix)[12082]: could not identify user 
(from getpwnam(elina))
Jun 10 11:53:12 fc3 login[12082]: User not known to the underlying 
authentication module


any ideas

dave

===
/etc/pam.d/login 
#%PAM-1.0

auth   required pam_securetty.so
auth   required pam_stack.so service=system-auth
auth   required pam_nologin.so
accountrequired pam_stack.so service=system-auth
password   required pam_stack.so service=system-auth
# pam_selinux.so close should be the first session rule
sessionrequired pam_selinux.so close
sessionrequired pam_stack.so service=system-auth
sessionoptional pam_console.so
sessionrequired pam_mkhomedir.so skel=/etc/skel/ umask=0077
# pam_selinux.so open should be the last session rule
sessionrequired pam_selinux.so multiple open

/etc/pam.d/system-auth
#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
authrequired  /lib/security/$ISA/pam_env.so
authsufficient/lib/security/$ISA/pam_unix.so likeauth nullok
authsufficient/lib/security/$ISA/pam_winbind.so use_first_pass
authrequired  /lib/security/$ISA/pam_deny.so

account required  /lib/security/$ISA/pam_unix.so broken_shadow
account sufficient/lib/security/$ISA/pam_succeed_if.so uid  100 
quiet
account [default=bad success=ok user_unknown=ignore] 
/lib/security/$ISA/pam_winbind.so

account required  /lib/security/$ISA/pam_permit.so

passwordrequisite /lib/security/$ISA/pam_cracklib.so retry=3
passwordsufficient/lib/security/$ISA/pam_unix.so nullok 
use_authtok md5 shadow

passwordsufficient/lib/security/$ISA/pam_winbind.so use_authtok
passwordrequired  /lib/security/$ISA/pam_deny.so

session required  /lib/security/$ISA/pam_limits.so
session required  /lib/security/$ISA/pam_unix.so

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


[Samba] Re: samba Digest, Vol 30, Issue 16

2005-06-10 Thread Frederic . vezina
Bonjour, Prenez note que je vais être absent du bureau à partir de la semaine 
du13 juin. Je serai de retour la semaine du 20 juin 2005.

Hello.  Please note that I will be out of the office the week of june 13, 
returning on june 20.  
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] how to list computers that are joined to the domain?

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tomasz Chmielewski wrote:
| How to list computers that are joined to the domain?
|
| Is the best way to do:
|
| getent passwd | grep $
|
|
| Or perhaps there are some Samba-specific tools
| to do that?

This will get you workstation a domain trust accounts:

pdbedit -L -w | grep '\[[WI]'




cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqYf8IR7qMdg1EfYRAqPMAJ4urgVMTX980M9SOgY3lK5UG1JkkgCfehdR
4zuCzCRAGeIDBAnOGoHYAg0=
=MqTQ
-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] Re: change windows ADS passwords from linux box

2005-06-10 Thread news.gmane.org

Stefanos Karasavvidis wrote:

All works perfectly, but I don't how to enable my linux users to change 
their password (on the windows machine) from the linux box.


Have you tried
$ passwd
?

It worked for me the last time I tried it.

-- Rex

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


Re: [Samba] net ads join fails 3/4's of the time

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rex Dieter wrote:

| I just wanted to share my frustrations with trying
| to use samba to join  linux machines to our AD
| (so I could use pam_winbind primarily).  I'm
| using Red Hat Enterprise 4 boxes, with samba-3.0.14a,
| krb5-libs-1.3.4-12, kernel-2.6.9-5.0.5.EL (I tried
| Fedora Core 3 too,  with similar results).  I (pre)added
| machines to the AD using the Active  Directory Users
| and Computers tool.
|
| I initially had clock skew problems (yielding kerberos
| errors), but I  now have synchronized system clocks.
|
| Now, I've found that the
| $ net ads join
| command(*) always says it succeeds joining the domain,
| but a subsequent
| $ wbinfo -t
| about 75% of the time yields an error:
| NT_STATUS_ACCESS_DENIED
|
| If I re-run those 2 commands repeatedly, I *eventually*
| will get machine  that has successfully joined the
| AD domain (where 'wbinfo -t' succeeds
| and pam_winbind successfully authenticates users).

I doner if you are dealing with a AD replication lag.  How
many DC's are there in the domain?




cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqY1vIR7qMdg1EfYRAo5gAJwLy/LFXX82huhugrXmSp+WPUChCACg5mmz
bX2b3k/PvXxwh4jg68jrWDc=
=iJfG
-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] Active Directory authentication very slow (winbind/PAM)

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Frank Gruman wrote:

| I have Samba authenticating to a medium-sized Windows
| 2000 Active Directory domain (approx 5000 users).
| The authentication times are  ranging from 15 to
| 30 seconds, and when trying to win acceptance for
| Linux as a stable server platform / file and
| development code  repository, this performance
| is unacceptable to many of my peers.  It is the
| same whether they authenticate through the Apache
| engine or if I add authentication to the xdm config
| and I login to KDE, or even from command line.

Frank,  Use ethereal and try to determine where the lag
is?  Is it actually during the authentication ?  Is it a
name resolution delay?  Or is it during the getpwnam()?







cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqY3LIR7qMdg1EfYRAuscAJ9pZfcsuYwjgLLTwxzql+4FgEgf6QCfQNLn
L9P2RccV8Wg5zIlJFO2LHCI=
=hgO/
-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] Winbind user primary group

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Etienne Goyer wrote:

| My problem is that I would like to set winbind
| user's primary group to a specific group from
| the local /etc/group.  Is this possible at all ?
| Otherwise, any alternative to tweak winbind
| user's group membership ?

You'll need to modify the winbindd's source code
yourself.  It's pretty easy.  Look in
nsswitch/winbindd_user.c:winbindd_getpwnam().
You'll also need to fixc the cooresponding getpwuid()
call.




cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqY4/IR7qMdg1EfYRAswMAKCTkiHIFgcnQkZe/pVocnav2tIJbgCg2dF9
zd5AgwcKZlIvfMV+avtg4wg=
=VTpl
-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] id and id username don't match up when using Winbind groups

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graeme Humphries wrote:

| getent group network-group-name shows that certain
| users are in a group. id username shows that the
| user belongs to that group. But if I su - username  id,
| the group is mysteriously missing. As a result,
| certain users cannot get into certain directories
| whose access is controlled via group, whether it's
| on the commandline, through a Samba share, or whatever else.
|
| It's not all network groups that are affected, just a few
| ones at random. However, it is consistent in that if
| a user is having problems with a certain group, you
| can add and remove them from that group any number of
| times, and they will always have problems with that group.
|
| Any suggestions on how to fix / debug / workaround
| this problem would be *greatly* appreciated.

Graeme,

Look for differences in the success and failure cases
from a level 10 winbindd log.




cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqY7DIR7qMdg1EfYRAtYCAKClFnYoI32qCebFLPV8Uf3+mvzY0wCgh8xq
GwkvjeMswurUaXLZmtqhUbA=
=4/df
-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] Re: net ads join fails 3/4's of the time

2005-06-10 Thread news.gmane.org

Gerald (Jerry) Carter wrote:


Rex Dieter wrote:



| Now, I've found that the
| $ net ads join
| command(*) always says it succeeds joining the domain,
| but a subsequent
| $ wbinfo -t
| about 75% of the time yields an error:
| NT_STATUS_ACCESS_DENIED
|
| If I re-run those 2 commands repeatedly, I *eventually*
| will get machine  that has successfully joined the
| AD domain (where 'wbinfo -t' succeeds
| and pam_winbind successfully authenticates users).

I doner if you are dealing with a AD replication lag.  How
many DC's are there in the domain?


3 DC's.  If your hunch is right, what should I do?  Simply wait longer 
between the 'net ads join' and 'wbinfo -t'?


-- Rex

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


RE: [Samba] Re: Problems with Samba and Windows 2003 ActiveDomainServer

2005-06-10 Thread Paul Gienger
Has anybody been able to make this work using the distributed packages from
the Fedora distribution or SuSE?

Most of the time the distro packages are compiled with the kitchen sink
included so you can get just about anything working.  Maybe you could shoot
a note back to your distro's builders asking why SuperCoolOption isn't built
in?  The stock Fedora rpm worked fine for our needs (ldap) but we've moved
away from them since they didn't update fast enough.  Still sticking with an
rpm build from the samba.org specfile, which btw, does seem to have ADS
built in.


 going to be. I have another client that is looking at
 deploying approximately 200 workstations. If I have to hand compile each
 new machine, these will take a lot longer to deploy, even
 with scripting and a centralized distribution server.

If you have any decent sized linux (or any OS deployment really), it helps
if you have some sort of internal deployment server.  It also helps if you
use the package manager that came with your system rather than compiling
everything as a source file with ./configure ; make ; make install.  RPM
may have its problems, or people just like to whine about it, but for gods
sake it's built in, and 99% of the time it works.  

With our fedora servers we have an internal yum server.  To deploy a package
to any number of systems it's not too difficult:

1. Build rpm package
2. Place it in the repository and run the yum repo update command.
3. Either of 2 things to get it installed
  a. If this is an update or special version of a package, wait till the
nightly update comes and gets it.
  b. if this is a new package, go to the system and run yum install
mysupercoolpackage

I am taking for granted that you've got your machines already configured for
your internal repository, since of course, that's the whole point: to show
how easy it is to install things if you've got the infrastructure set to use
it.  Actually creating an internal server is fairly easy if you follow the
documentation.

I'm also just talking Fedora, I'd be surprised if SuSE didn't have something
similar, I'm ignoring the rest of the world since you only mentioned SuSE
and Fedora.


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


Re: [Samba] Samba w/o local users on Samba server?

2005-06-10 Thread Robert Schuettler
On Mon, Jun 06, 2005 at 12:08:49PM -0600, John H Terpstra wrote:

 What you are asking is: Can a Samba server be a domain member server or 
 client in a Windows NT4 domain, or in an Active Directory domain?

Yes and no. If we don't want to have a Windows-based server in the
picture, it looks like I'll need to configure a(nother) Samba server as
a PDC in order for the first one to join a domain. I'll give that a try
anyway ( and come back with more detailed questions later - if there
are any. ;-)

 Suggest you refer to chapter 7 of the book Samba-3 by Example (aka. 
 Samba-Guide). This chapter deals exclusively with this subject.

I'll do that. Thanks!

 You can obtain a copy of this book from:
   http://www.samba.org/samba/docs/Samba-Guide.pdf

Wow: June 6th, now June 9th; you're really keeping your documentation
up-to-(almost-today's-)date. 

 The information you provide above does not identify which of our 
 documentation 
 is deficient.

Don't worry, I didn't say it was defincient. All I said is that AFAICS
you always need to have local Linux/Unix users (and groups) with User
Level security.

| Currently domain level security in Samba does not free you from
| having to create local UNIX users to represent the users attached to
| your server. (...)

  from:
  The Official Samba-3 HOWTO and Reference Guide, 1st printing, p.74

Thanks for your reply! Cheers, Robert
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] net ads join fails 3/4's of the time

2005-06-10 Thread Rex Dieter

Gerald (Jerry) Carter wrote:


Rex Dieter wrote:

| Now, I've found that the
| $ net ads join
| command(*) always says it succeeds joining the domain,
| but a subsequent
| $ wbinfo -t
| about 75% of the time yields an error:
| NT_STATUS_ACCESS_DENIED
|
| If I re-run those 2 commands repeatedly, I *eventually*
| will get machine  that has successfully joined the
| AD domain (where 'wbinfo -t' succeeds
| and pam_winbind successfully authenticates users).

I doner if you are dealing with a AD replication lag.  How
many DC's are there in the domain?



3 DC's.  If your hunch is right, what should I do?  Simply wait longer 
between the 'net ads join' and 'wbinfo -t' (I'm currently waiting 2 
seconds)?


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


[Samba] Re: Samba problems - looks like a bug in client

2005-06-10 Thread Anne Wilson
On Thursday 09 Jun 2005 18:09, you wrote:
 Tell me everything you can about your setup

This is a small home LAN - two boxes running Mandriva 2005LE, four assorted 
windows boxes and one box running Mandrake 10.0,  with samba giving file 
and print services to the rest.  The box called 'david' is the samba client 
that is my workhorse, and on which I am seeing the problem (although it is 
present on the other Mandriva box too).  The server runs samba 3.0.10 and 
client is running samba 3.0.13, though I have tried installing 3.1 without 
seeing any difference.  I have reverted to 3.0.13.

I am seeing huge delays when transferring files direct from an application.  
Small gnumeric files save instantly on the local filesystem, but take 1.5 
minutes over the lan.  OOCalc has been unable to save the same spreadsheet 
at all, saying that access is denied.  Printing from OOWriter is 
exceptionally slow, though this is never as bad from any other application.

 1. Command syntax may have changed on you.

Always possible.  My main problem, though, is in saving files across the 
lan, direct from apps like gnumeric.

 2. Network connectivity (check both sides with nmap).  I noticed that on
 LE2005 that shorewall is on and set up by default.

Shorewall is not installed on this (the client) box, and windows boxes can 
save correctly, indicating that shorewall on the server is working 
correctly.

 3. File system permissions on your share directories.  (test by making
 it chmod 777)

Normally the shared directories are 770, but I have already tested them with 
777.

 With nmap you can check both from the same box:

 nmap -sT 192.168.2.101 192.168.2.102

 Where the first is my server and the second is my client.

[EMAIL PROTECTED] Desktop]# nmap -sT 192.168.0.30 192.168.0.70

Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-06-10 14:08 BST
Interesting ports on anne-linux.lydgate.net (192.168.0.30):
(The 1644 ports scanned but not shown below are in state: closed)
PORT  STATE SERVICE
22/tcpopen  ssh
25/tcpopen  smtp
53/tcpopen  domain
110/tcp   open  pop3
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
143/tcp   open  imap
389/tcp   open  ldap
445/tcp   open  microsoft-ds
631/tcp   open  ipp
636/tcp   open  ldapssl
873/tcp   open  rsync
913/tcp   open  unknown
993/tcp   open  imaps
995/tcp   open  pop3s
2049/tcp  open  nfs
6000/tcp  open  X11
1/tcp open  snet-sensor-mgmt
19150/tcp open  gkrellmd
MAC Address: 00:0E:A6:AC:39:24 (Asustek Computer)

Interesting ports on david.lydgate.net (192.168.0.70):
(The 1653 ports scanned but not shown below are in state: closed)
PORT  STATE SERVICE
22/tcpopen  ssh
111/tcp   open  rpcbind
139/tcp   open  netbios-ssn
445/tcp   open  microsoft-ds
774/tcp   open  rpasswd
873/tcp   open  rsync
950/tcp   open  oftep-rpc
2049/tcp  open  nfs
6000/tcp  open  X11
1/tcp open  snet-sensor-mgmt

Nmap finished: 2 IP addresses (2 hosts up) scanned in 2.706 seconds

I now have further information.  With the help of a more proficient user I 
have managed to collect the following evidence from ethereal running on the 
server:

1170 38.414157   192.168.0.70  192.168.0.30  SMB  Trans2 
Request, SET_PATH_INFO, Path: \Documents\Spreadsheets\.gsf-save-vkxojF
   1171 38.414318   192.168.0.30  192.168.0.70  SMB  
Trans2 Response, SET_PATH_INFO
   1297 68.409645   192.168.0.70  192.168.0.30  SMB  
Trans2 Request, QUERY_PATH_INFO, Query File Unix Basic, Path: 
\Documents\Spreadsheets\.gsf-save-vkxojF
   1298 68.410110   192.168.0.30  192.168.0.70  SMB  
Trans2 Response, QUERY_PATH_INFO
 
This clearly shows the 30-second delay.  The save ends with a Close Response 
at 68.538988 yet it is 90 seconds from the start before I get control back.

I'll gladly run any more tests required, but as a newbie to ethereal I shall 
need very specific instructions.

Anne
-- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels


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

Re: [Samba] Re: net ads join fails 3/4's of the time

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

| I wonder if you are dealing with a AD replication lag.  How
| many DC's are there in the domain?
|
| 3 DC's.  If your hunch is right, what should I do?
| Simply wait longer between the 'net ads join' and
| 'wbinfo -t'?

Yup.  I don't recall what the default replication period
is in AD so you might want to look it up.





cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqZRnIR7qMdg1EfYRAjBWAJ49zga2LzEkjz7VHBVqMWRBVoj7iACfVsHm
KVOVU1ntd3KlnAJK/fTPG34=
=xP/d
-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] eclipse workspace corrupt after roaming

2005-06-10 Thread Rainer Traut

Hi,

here ist the profile part of my smb.conf, it's samba 3.0.14a on Redhat EL4:

[Profiles]
comment = Roaming profiles share
path = /shares/profiles
writeable = yes
create mask = 0700
directory mask = 0770
browsable = no
valid users = @users root
force user = %U
profile acls = yes
hide dot files = no
csc policy = disable

I am testing an eclipse workspace on XP SP2 but the workspace seems to 
be corrupt after roaming. I looked at file rights but everything seems 
ok. (The .metadata dir ist writable)


Here is the part of the eclipse logfile:

!ENTRY org.eclipse.ui 4 0 2005-06-10 15:17:23.655
!MESSAGE The platform metadata area could not be written: C:\Dokumente 
und Einstellungen\tr.DOM\workspace\.metadata.  By default the platform 
writes its content
under the current working directory when the platform is launched.  Use 
the -data parameter to

specify a different content area for the platform.
!STACK 0
java.lang.IllegalStateException: The platform metadata area could not be 
written: C:\Dokumente und Einstellungen\tr.DOM\workspace\.metadata.  By 
default the platform writes its content
under the current working directory when the platform is launched.  Use 
the -data parameter to

specify a different content area for the platform.

I added hide dot files = no to get the directories with the beginning 
. _not_ hidden but it does not work. I cannot see any difference in 
file/folder permission before/after roaming.


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


[Samba] samba configure not working

2005-06-10 Thread Mattier, Ricardo
Hello,
I'm having an issue compiling samba with-ads enabled.  I've
successfully compiled kerberosV5 and Openldap.  I can the following line
when compiling Samba ./configure --with-pam --with-ads
--with-ldap=/usr/local/openldap --with-winbind --with-krb5
The configure fails due to not having ldap support.  Any ideas?
 
Rick Mattier
Systems Analyst II
Windriver Systems
120 Royall St
Canton, Ma 02021
[EMAIL PROTECTED]
Canton: 781 364-2002
Nashua: 603 897-2084
 
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] samba configure not working

2005-06-10 Thread Paul Gienger
 I'm having an issue compiling samba with-ads enabled.  I've
 successfully compiled kerberosV5 and Openldap.  I can the following line
 when compiling Samba ./configure --with-pam --with-ads
 --with-ldap=/usr/local/openldap --with-winbind --with-krb5
 The configure fails due to not having ldap support.  Any ideas?

With the limited info you've given, you may not be finding the libraries.
On various versions of solaris, I've had to use any or all of these:

export FLAGS=-I/opt/openldap/include
export CPPFLAGS=-I/opt/openldap/include
export LDFLAGS=-L/opt/openldap/lib
export CFLAGS=-I/opt/openldap/include

YMMV of course.  If you could provide a little more info you may get a bit
more information back. I could see the following being relevant:

- your OS type and version - there may be a dynamic linker we could
configure.
- a chunk of the ./configure before the failure
- the output of env (or the equivalent for your shell)
- some info about your openldap and krb installs, ./configure lines would
probably do nicely

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


[Samba] DM Direct Newsletter: June 10, 2005

2005-06-10 Thread DM Direct
===
DM DirectJune 10, 2005
http://www.DMReview.com
DM Direct is an extension of DMReview magazine online.
===

A Scoop on Scope: A Process-Driven Approach to Avoiding Challenged Projects
by Rudolf Melik

This article discusses the focus of traditional project management, the 
importance of a disciplined and repeatable approach, and the benefits of 
working toward process-driven project execution.
http://www.dmreview.com/editorial/newsletter_article.cfm?articleId=1029814

The Data Warehouse Appliance Myth
by Roger Gaskell

In this day and age, do you only want single-use proprietary hardware?
http://www.dmreview.com/editorial/newsletter_article.cfm?articleId=1029817

Enterprise Information Integration: A Pragmatic Approach
by JP Morgenthal

This excerpt is the introduction to the book, Enterprise Information 
Integration: A Pragmatic Approach, which takes a look at the task of 
integrating data across federated data sets and applications into a cohesive, 
meaningful and searchable knowledgebase.
http://www.dmreview.com/editorial/newsletter_article.cfm?articleId=1029829

Industry Implementations
by DMReview.com Web Editorial Staff

http://www.dmreview.com/editorial/newsletter_article.cfm?articleId=1029830


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

RightOrder 
Speed Up Query Performance 10-50x
Accurate and Consistent Customer View
Are you among the 62% of IT managers who say data volume
and query complexity constrain performance? To learn how
to accelerate your most demanding queries by 10-50x,
download the RightOrder QueryEdge Acceleration Whitepaper
and ask about our free Query Performance Assessment Program.
http://www.rightorder.com/contact/DM_Review_06_10_05.htm

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Information Visualization: The New Frontier of Business Intelligence
Date:  On Demand
Information visualization skills and tools can effectively mine the value of 
your data assets to a degree that finally achieves a BI return on investment 
that doesn't require creative accounting. In this Web seminar, DM Review 
columnist Stephen Few will introduce you to the emerging domain of information 
visualization and then two innovative software vendors, Advizor Solutions and 
Tableau Software, will demonstrate its potential through live demonstrations of 
their products.
Click here to register: http://list.thomsonmedia.com/t/1897772/3262516/11969/0/

Greater Scale and Speed of Integration: Change Data Capture
Date:  June 14, 2005
Time:  2 p.m. ET
The pace of business is increasing so your ability to make operational 
decisions should increase too. Data volumes continue to grow while your 
integration windows get shorter. You need access to today's data in order to 
stay competitive. Find out how to solve these business data problems. Join 
industry thought leaders from DataMirror and Forrester for an interactive Web 
seminar about Change Data Capture technology for effective data integration.
Click here to register: http://list.thomsonmedia.com/t/1897772/3262516/11737/0/

Reporting and Analysis for SAP - with or without BW
Date:  June 17, 2005
Time:  1 p.m. ET
QlikView gives SAP users powerful, easy-to-use analytics - with or without 
SAP´s BW being deployed. Learn how QlikView delivers the best of BI - 
dashboard-based analytics applications that drill down to the transaction level 
- without the time, cost and limitations of OLAP-based solutions.
Click here to register: http://list.thomsonmedia.com/t/1897772/3262516/11643/0/

QlikView - Business Analysis and Reporting for JD Edwards
Date:  June 22, 2005
Time:  2 p.m. ET
Join QlikTech online for 45 minutes and see how QlikView Business Intelligence 
Software can take your JD Edwards data and give timely access to information - 
in applications that take just days to deploy and just minutes to learn to use.
Click here to register: http://list.thomsonmedia.com/t/1897772/3262516/12084/0/

Seeing Clearly: Enabling Rapid Insight Via End-to-End Financial and Management 
Reporting
Date:  June 22, 2005
Time:  2 p.m. ET
This Web seminar will discuss how companies can enable rapid insight via 
end-to-end financial and management reporting. Kathleen Wilhide of IDC will 
provide the market implications for implementing a robust reporting 
infrastructure, followed by Rafael Marrero-Gonzalez, who will provide a 
firsthand account of how MasTec is delivering robust reporting infrastructure 
to the business users.
Click here to register: http://list.thomsonmedia.com/t/1897772/3262516/12120/0/

Applebee's Evolution of Metrics
Date:  June 23, 2005
Time:  11 a.m. ET
iChoosing the right metrics for the right business decisions/i
Join DM Review and Teradata for this free Web seminar with experts from 
Applebee's 

[Samba] samba ldap problem

2005-06-10 Thread Morgan Hallgren
I have tried to create a samba domain with a ldap backend.

This is how my ldap structure looks like.

# example.com
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
o: example
dc: example

# groups, example.com
dn: ou=groups,dc=example,dc=com
objectClass: organizationalUnit
ou: groups

# Domain Admins, groups, example.com
dn: cn=Domain Admins,ou=groups,dc=example,dc=com
objectClass: posixGroup
objectClass: sambaGroupMapping
gidNumber: 512
cn: Domain Admins
memberUid: root
description: Netbios Domain Administrators
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-512
sambaGroupType: 2
displayName: Domain Admins

# Domain Users, groups, example.com
dn: cn=Domain Users,ou=groups,dc=example,dc=com
objectClass: posixGroup
objectClass: sambaGroupMapping
gidNumber: 513
cn: Domain Users
description: Netbios Domain Users
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-513
sambaGroupType: 2
displayName: Domain Users

# Domain Guests, groups, example.com
dn: cn=Domain Guests,ou=groups,dc=example,dc=com
objectClass: posixGroup
objectClass: sambaGroupMapping
gidNumber: 514
cn: Domain Guests
description: Netbios Domain Guests Users
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-514
sambaGroupType: 2
displayName: Domain Guests

# computers, example.com
dn: ou=computers,dc=example,dc=com
objectClass: organizationalUnit
ou: computers

# PDC, example.com
dn: sambaDomainName=PDC,dc=example,dc=com
objectClass: sambaDomain
sambaDomainName: PDC
sambaNextGroupRid: 9
sambaNextUserRid: 9
sambaSID: S-1-5-21-3527759599-3696857034-3584459987
sambaNextRid: 9

# people, example.com
dn: ou=people,dc=example,dc=com
objectClass: organizationalUnit
ou: people

# root, people, example.com
dn: uid=root,ou=people,dc=example,dc=com
uid: root
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-500
sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-512
displayName: root
sambaAcctFlags: [U  ]
objectClass: account
objectClass: sambaSamAccount
sambaPwdMustChange: 2147483647
sambaLMPassword: 63D2114DE42F744B30A84C4AFE5A
sambaNTPassword: 5460FB29D247C383F63E1E3A417FC39B
sambaPasswordHistory: 
 
sambaPwdCanChange: 1118395221
sambaPwdLastSet: 1118395221

# win2k$, Computers, example.com
dn: uid=win2k$,ou=Computers,dc=example,dc=com
uid: win2k$
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-3022
sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-1201
objectClass: sambaSamAccount
objectClass: account
displayName: win2k$
sambaPwdMustChange: 2147483647
sambaAcctFlags: [W  ]
sambaPwdCanChange: 1118395893
sambaNTPassword: 5C70F10A2EAD0B4FE5588114C98ED1ED
sambaPwdLastSet: 1118395893

# Martin Hallgren, people, example.com
dn: cn=Martin Hallgren,ou=people,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: posixAccount
objectClass: top
objectClass: krb5Principal
objectClass: krb5KDCEntry
objectClass: sambaSamAccount
krb5PrincipalName: [EMAIL PROTECTED]
krb5KeyVersionNumber: 1
krb5MaxLife: 86400
krb5MaxRenew: 604800
krb5KDCFlags: 126
cn: Martin Hallgren
givenName: Martin
mail: [EMAIL PROTECTED]
sn: Hallgren
uid: martin
uidNumber: 1050
gidNumber: 100
homeDirectory: /home/martin
loginShell: /bin/bash
sambaAcctFlags: [U  ]
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-3250
sambaPwdCanChange: 1118395383
sambaPwdMustChange: 2147483647
sambaLMPassword: 01FC5A6BE7BC6929AAD3B435B51404EE
sambaNTPassword: 0CB6948805F797BF2A82807973B89537
sambaPasswordHistory: 
 
sambaPwdLastSet: 1118395383

# nobody, people, example.com
dn: uid=nobody,ou=people,dc=example,dc=com
objectClass: account
objectClass: sambaSamAccount
objectClass: posixAccount
uid:: bm9ib2R5ICAgICAgICAgICAgICAgICA=
sambaPwdLastSet: 0
sambaLogonTime: 2147483647
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 2147483647
sambaPwdMustChange: 2147483648
displayName: Nobody
cn: Nobody
sambaSID: S-1-5-21-3527759599-3696857034-3584459987-501
sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-514
gecos:: Tm9ib2R5IG9yIEd1ZXN0ICAgICAgIA==
homeDirectory:: L2Rldi9udWxsICAgICAgICAgICAgIA==
loginShell:: L2Rldi9udWxsICAgICA=
uidNumber: 65534
gidNumber: 65534
sambaAcctFlags: [UX ]

# Morgan Hallgren, people, example.com
dn: cn=Morgan Hallgren,ou=people,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: posixAccount
objectClass: top
objectClass: krb5Principal
objectClass: krb5KDCEntry
objectClass: sambaSamAccount
krb5PrincipalName: [EMAIL PROTECTED]
krb5KeyVersionNumber: 1
krb5MaxLife: 86400
krb5MaxRenew: 604800
krb5KDCFlags: 126
cn: Morgan Hallgren
givenName: Morgan
mail: [EMAIL PROTECTED]
sn: Hallgren
uid: moja
uidNumber: 1000
gidNumber: 100
homeDirectory: /home/morgan
loginShell: /bin/bash
sambaAcctFlags: [U  ]

[Samba] RHEL 4 rpm for Samba 3.0.14 ?

2005-06-10 Thread Etienne Goyer
Hi,

Does anyone know of a binary rpm for Samba 3.0.14 that wonrk RHEL 4 ?
The binary RedHat rpm on samba.org have been compiled for RedHat 9, and
it does'nt install on RHEL.  I would recompile the .src.rpm, but if
anybody know of a repository that carry a binary, I would be glad to
hear about it.

Thanks !

Etienne Goyer

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


RE: [Samba] samba configure not working

2005-06-10 Thread Paul Gienger
 Of course, I apologize.  I'm currently running Solaris9.  This is the

Ahh, Solaris, in this case, have you configured crle at all? Run it once on
the command line

# crle

And you'll get output that tells you what you have currently and how to set
it that way.  On the only solaris box I have left, the output includes:
(note that this isn't my system and it has a lot of stuff going on)

crle -c /var/ld/ld.config -l
/lib:/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/openwin/lib:/usr/sfw/li
b:/usr/local/BerkeleyDB.3.3/lib:/usr/local/qt/lib:/opt/openldap/lib:/usr/loc
al/mysql/lib/mysql

You'll notice that it has a path to openldap/lib in there.  Make sure yours
does, and if not, then take the line it spit out and add
:/usr/local/ldap/lib to it

See if that gets you anywhere.  I'd also set a couple of the env variables I
stated earlier.

 last few lines I get when compiling samba:
   checking for ber_scanf in -llber... no
   checking for ldap_init in -lldap... yes
   checking for ldap_domain2hostlist... no
   checking for ldap_set_rebind_proc... yes
   checking whether ldap_set_rebind_proc takes 3 arguments... 3
   checking for ldap_initialize... no
   configure: error: libldap is needed for LDAP support
 
 The ldap config -- ./configure --prefix=/usr/local/openldap
 --without-bdb --disable-bdb --enable-null
 Kerberos config -- ./configure --prefix=/usr/local/kerberos5
 
 My Env variables are as follows:
 LD_LIBRARY_PATH=/usr/local/openldap/bin
 LOGNAME=root
 PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/local/samba/bin
 :/usr/local/kerberos5:/usr/local/openldap
 PS1=chilly:#
 SHELL=/sbin/sh
 TERM=xterm
 TZ=US/Eastern
 
 Rick Mattier
 Systems Analyst II
 Windriver Systems
 120 Royall St
 Canton, Ma 02021
 [EMAIL PROTECTED]
 Canton: 781 364-2002
 Nashua: 603 897-2084
 
 -Original Message-
 From: Paul Gienger [mailto:[EMAIL PROTECTED]
 Sent: Friday, June 10, 2005 10:07 AM
 To: Mattier, Ricardo; [EMAIL PROTECTED]
 Subject: RE: [Samba] samba configure not working
 
  I'm having an issue compiling samba with-ads enabled.  I've
  successfully compiled kerberosV5 and Openldap.  I can the following
  line when compiling Samba ./configure --with-pam --with-ads
  --with-ldap=/usr/local/openldap --with-winbind --with-krb5 The
  configure fails due to not having ldap support.  Any ideas?
 
 With the limited info you've given, you may not be finding the
 libraries.
 On various versions of solaris, I've had to use any or all of these:
 
 export FLAGS=-I/opt/openldap/include
 export CPPFLAGS=-I/opt/openldap/include
 export LDFLAGS=-L/opt/openldap/lib
 export CFLAGS=-I/opt/openldap/include
 
 YMMV of course.  If you could provide a little more info you may get a
 bit more information back. I could see the following being relevant:
 
 - your OS type and version - there may be a dynamic linker we could
 configure.
 - a chunk of the ./configure before the failure
 - the output of env (or the equivalent for your shell)
 - some info about your openldap and krb installs, ./configure lines
 would probably do nicely


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


Re: [Samba] RHEL 4 rpm for Samba 3.0.14 ?

2005-06-10 Thread Rainer Traut

Hi,

Etienne Goyer wrote:

Hi,

Does anyone know of a binary rpm for Samba 3.0.14 that wonrk RHEL 4 ?
The binary RedHat rpm on samba.org have been compiled for RedHat 9, and
it does'nt install on RHEL.  I would recompile the .src.rpm, but if
anybody know of a repository that carry a binary, I would be glad to
hear about it.


There is a portal site here:
http://enterprisesamba.com/
and their rpms here
http://ftp.sernet.de/pub/samba/rhel/rhel4/

But personally I use this one:
http://people.redhat.com/fenlason/.samba/

This is an unofficial samba rpm but made by the redhat guys.
I took the src rpm and made slight changes to the version number for 
3.0.14a and took the last two patches out (should be in 3.0.14a).

Mail me if you want to have the spec file.

Rainer



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


RE [Samba] samba ldap problem

2005-06-10 Thread spu

What is your guest user in smb.conf ?

check if is not nobody, the guest acoutn is used by samba for first
connection.

---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur
10/06/2005 16:20:56 :

 I have tried to create a samba domain with a ldap backend.

 This is how my ldap structure looks like.

 # example.com
 dn: dc=example,dc=com
 objectClass: dcObject
 objectClass: organization
 o: example
 dc: example

 # groups, example.com
 dn: ou=groups,dc=example,dc=com
 objectClass: organizationalUnit
 ou: groups

 # Domain Admins, groups, example.com
 dn: cn=Domain Admins,ou=groups,dc=example,dc=com
 objectClass: posixGroup
 objectClass: sambaGroupMapping
 gidNumber: 512
 cn: Domain Admins
 memberUid: root
 description: Netbios Domain Administrators
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-512
 sambaGroupType: 2
 displayName: Domain Admins

 # Domain Users, groups, example.com
 dn: cn=Domain Users,ou=groups,dc=example,dc=com
 objectClass: posixGroup
 objectClass: sambaGroupMapping
 gidNumber: 513
 cn: Domain Users
 description: Netbios Domain Users
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-513
 sambaGroupType: 2
 displayName: Domain Users

 # Domain Guests, groups, example.com
 dn: cn=Domain Guests,ou=groups,dc=example,dc=com
 objectClass: posixGroup
 objectClass: sambaGroupMapping
 gidNumber: 514
 cn: Domain Guests
 description: Netbios Domain Guests Users
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-514
 sambaGroupType: 2
 displayName: Domain Guests

 # computers, example.com
 dn: ou=computers,dc=example,dc=com
 objectClass: organizationalUnit
 ou: computers

 # PDC, example.com
 dn: sambaDomainName=PDC,dc=example,dc=com
 objectClass: sambaDomain
 sambaDomainName: PDC
 sambaNextGroupRid: 9
 sambaNextUserRid: 9
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987
 sambaNextRid: 9

 # people, example.com
 dn: ou=people,dc=example,dc=com
 objectClass: organizationalUnit
 ou: people

 # root, people, example.com
 dn: uid=root,ou=people,dc=example,dc=com
 uid: root
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-500
 sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-512
 displayName: root
 sambaAcctFlags: [U  ]
 objectClass: account
 objectClass: sambaSamAccount
 sambaPwdMustChange: 2147483647
 sambaLMPassword: 63D2114DE42F744B30A84C4AFE5A
 sambaNTPassword: 5460FB29D247C383F63E1E3A417FC39B
 sambaPasswordHistory:

  
 sambaPwdCanChange: 1118395221
 sambaPwdLastSet: 1118395221

 # win2k$, Computers, example.com
 dn: uid=win2k$,ou=Computers,dc=example,dc=com
 uid: win2k$
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-3022
 sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-1201
 objectClass: sambaSamAccount
 objectClass: account
 displayName: win2k$
 sambaPwdMustChange: 2147483647
 sambaAcctFlags: [W  ]
 sambaPwdCanChange: 1118395893
 sambaNTPassword: 5C70F10A2EAD0B4FE5588114C98ED1ED
 sambaPwdLastSet: 1118395893

 # Martin Hallgren, people, example.com
 dn: cn=Martin Hallgren,ou=people,dc=example,dc=com
 objectClass: inetOrgPerson
 objectClass: organizationalPerson
 objectClass: person
 objectClass: posixAccount
 objectClass: top
 objectClass: krb5Principal
 objectClass: krb5KDCEntry
 objectClass: sambaSamAccount
 krb5PrincipalName: [EMAIL PROTECTED]
 krb5KeyVersionNumber: 1
 krb5MaxLife: 86400
 krb5MaxRenew: 604800
 krb5KDCFlags: 126
 cn: Martin Hallgren
 givenName: Martin
 mail: [EMAIL PROTECTED]
 sn: Hallgren
 uid: martin
 uidNumber: 1050
 gidNumber: 100
 homeDirectory: /home/martin
 loginShell: /bin/bash
 sambaAcctFlags: [U  ]
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-3250
 sambaPwdCanChange: 1118395383
 sambaPwdMustChange: 2147483647
 sambaLMPassword: 01FC5A6BE7BC6929AAD3B435B51404EE
 sambaNTPassword: 0CB6948805F797BF2A82807973B89537
 sambaPasswordHistory:

  
 sambaPwdLastSet: 1118395383

 # nobody, people, example.com
 dn: uid=nobody,ou=people,dc=example,dc=com
 objectClass: account
 objectClass: sambaSamAccount
 objectClass: posixAccount
 uid:: bm9ib2R5ICAgICAgICAgICAgICAgICA=
 sambaPwdLastSet: 0
 sambaLogonTime: 2147483647
 sambaLogoffTime: 2147483647
 sambaKickoffTime: 2147483647
 sambaPwdCanChange: 2147483647
 sambaPwdMustChange: 2147483648
 displayName: Nobody
 cn: Nobody
 sambaSID: S-1-5-21-3527759599-3696857034-3584459987-501
 sambaPrimaryGroupSID: S-1-5-21-3527759599-3696857034-3584459987-514
 gecos:: Tm9ib2R5IG9yIEd1ZXN0ICAgICAgIA==
 homeDirectory:: L2Rldi9udWxsICAgICAgICAgICAgIA==
 loginShell:: L2Rldi9udWxsICAgICA=
 uidNumber: 65534
 gidNumber: 65534
 sambaAcctFlags: [UX ]

 # Morgan Hallgren, people, example.com
 dn: cn=Morgan Hallgren,ou=people,dc=example,dc=com
 objectClass: inetOrgPerson
 

[Samba] Re: RHEL 4 rpm for Samba 3.0.14 ?

2005-06-10 Thread Etienne Goyer
Rainer Traut wrote:
 But personally I use this one:
 http://people.redhat.com/fenlason/.samba/
 
 This is an unofficial samba rpm but made by the redhat guys.
 I took the src rpm and made slight changes to the version number for
 3.0.14a and took the last two patches out (should be in 3.0.14a).
 Mail me if you want to have the spec file.

I'll try these; the rpms from SerNet have been built to co-exist with
the standard, but I would prefer a drop-in replacement.

Are there a good reason why you took out the two patches ?  From what I
understand, they are just redundant.

Thanks a lot !

Etienne Goyer

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


Re: RE [Samba] samba ldap problem

2005-06-10 Thread Laradji nacer

[EMAIL PROTECTED] wrote:

What is your guest user in smb.conf ?

check if is not nobody, the guest acoutn is used by samba for first
connection.


Yes it s nobody user .

I have modify this with guest user in ldap directory .

--
Laradji nacer n.laradji at ovea dot com
   ovea http://www.ovea.com
Tél : +33 4 6767    Gsm : +33 6 1059 6883
1024D/DFCF1726 : 33A5 7162 4370 9C30 E22C 0721 DBA7 CBEE DFCF 1726

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


Re: [Samba] updating samba via rpm

2005-06-10 Thread Stuart Highlander

- Original Message - 
From: Paul Gienger [EMAIL PROTECTED]
To: 'Ian Clancy' [EMAIL PROTECTED]; 'Stuart Highlander'
[EMAIL PROTECTED]
Cc: samba@lists.samba.org
Sent: Thursday, June 09, 2005 9:50 AM
Subject: RE: [Samba] updating samba via rpm


  I can't remember exactly, but i think gnome-vfs2-smb depends on
  samba-common. Other gnome rpm's depend on gnome-vfs2-smb etc 
  The rpm from the site provides one rpm package :
  samba-3.0.14a-1

 Really? Last time recompiled the samba spec file, I was given 4 rpm files,
 just like the RH/Fedora implementation.  The spec file states that it came
 from:

 URL: http://www.samba.org/

 Source: ftp://www.samba.org/pub/samba/%{name}-%{version}.tar.bz2


  If your not bothered about using gnome you can uninstall the Fedora
  Samba rpm's (stop samba first of course):
  rpm --nodeps -e samba samba-common samba-client

 Why oh why people insist on jeopardizing their rpm db integrity when
 perfectly sane options exist...  yes you're putting in the same files, but
 now anything that was depending on samba-common, or any other package that
 used to be there, is going to be confused when it goes looking for its
 dependencies.  Hrm, yum wants to update gnome-vfs (or whatever else) and
 samba isn't installed...  it may either install old versions or break
 entirely and update nothing.

 Compile the spec and then in one line:

 Rpm -Uvh samba-3.0.14a-1.i386.rpm samba-client-3.0.14a-1.i386.rpm
 samba-common-3.0.14a-1.i386.rpm samba-swat-3.0.14a-1.i386.rpm

 Leave out the swat if you so desire and/or the h option if you don't like
 the progress bar.


  then install the rpm from samba.org
  rpm -Uvh samba-3.0.14a-1.i386.rpm
 
  One thing to look out for. What was previously located in
  /var/cache/samba is now located in /var/lib/samba.
  regards

thanks to all who have responded to my original post.

i have read the document regarding the src rpm's and it confirms what paul
stated in his reply regarding the use of the rpm command..

in my previous post, i stated that i use  rpm -Fvh.  paul's reply and other
documentation stated to use rpm -Uvh.  the only difference i see is that
rpm -Fvh updates the package if it is installed and rpm -Uvh updates the
package.  i will use the rpm -Uvh on my test samba server and see how it
goes.

has anyone seen any serious issues, gotchas, better-do's, or suggestions,
when updating from version 3.0.10-1 to version 3.0.14a-1?

thank you for your help,

stuart

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


[Samba] Unusual permissions problem

2005-06-10 Thread Ray Anderson
Hello,

I have an issue with samba-3.0.10-1.fc3 permissions.

The situation is this:

I have a client that wants one user to have write permission to a directory, 
but a GROUP of users to have read access.  Simple,
right?  First, I set up the directory structure per Linux:

(According to the samba guide, it's more efficient to use sticky bits on the 
directory instead of using the force user clause in the
smb.conf file.)

drwsr-s---   2 tcuser tcgroup 8.0K Jun 10 08:06 timecards

Testing:
Log in as a user who is a member of the tcgroup, can read all files in 
the tree:  Success
Log in as tcuser, can read, write, and delete all files in the tree:  
Success

So I'm feeling pretty good about the Linux permissions.  Now time to create the 
share:


[timecards]
   comment = Timecards
   path = /timecards
   create mask = 0640
   write list = tcuser
   valid users = tcuser, @tcgroup

If I understand correctly, and obviously I don't, the write list and valid 
users lines are redundant, as Samba is supposed to use
the file system permissions.

Now the issue:

I log in (via smbclient) as tcuser:  Success

Put a file into the share:  Success

Rename the file:  Success

Get the file back:  Access Denied.

So this user can put files but cannot read them back.  (!)

The really strange thing is if I set the world read bit to the file, then 
tcuser can read the file just fine, but from a Linux file
permission perspective, that's a really bad thing, right?

Any advice for this?

Many thanks in advance,

-=Ray

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


Re: [Samba] Re: RHEL 4 rpm for Samba 3.0.14 ?

2005-06-10 Thread Rainer Traut

Etienne Goyer wrote:

Rainer Traut wrote:


But personally I use this one:
http://people.redhat.com/fenlason/.samba/

This is an unofficial samba rpm but made by the redhat guys.
I took the src rpm and made slight changes to the version number for
3.0.14a and took the last two patches out (should be in 3.0.14a).
Mail me if you want to have the spec file.



I'll try these; the rpms from SerNet have been built to co-exist with
the standard, but I would prefer a drop-in replacement.

Are there a good reason why you took out the two patches ?  From what I
understand, they are just redundant.


Redundant? That's why I took them out... :)

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


Re: [Samba] Re: net ads join fails 3/4's of the time

2005-06-10 Thread Rex Dieter

Gerald (Jerry) Carter wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

| I wonder if you are dealing with a AD replication lag.  How
| many DC's are there in the domain?
|
| 3 DC's.  If your hunch is right, what should I do?
| Simply wait longer between the 'net ads join' and
| 'wbinfo -t'?

Yup.  I don't recall what the default replication period
is in AD so you might want to look it up.



Thanks.  Will do.

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


[Samba] By Example issues

2005-06-10 Thread Chris Aitken
Hi All,

In the Samba by example book, why is redirection of the Local Settings
advocated?

Can anyone give me a few good reasons why one would do this? It has given me
no end of nightmares here this week!

Regards,

Chris


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: [Samba] winbind and pam on FC3

2005-06-10 Thread David Rigler


Hi Giuseppe

I was thinking that getpwnam should fail, that user doesnt exist locally.
But the pam_unix and/or pam stack should be able to cope with that ?

dave


giuseppe59 wrote:


Hello David

I experience the same problem.


wbinfo -u, wbinfo -g, wbinfo -t, getent passwd,
kinit, kpassw work fine.

It seem the problem is getpwnam function.
Getpwnam search in the passwd file ?

Giuseppe

David Rigler wrote:



I cant get a login from an FC3 setup unless the user has a local 
account.


Jun 10 11:53:12 fc3 login(pam_unix)[12082]: check pass; user (elina) 
unknown
Jun 10 11:53:12 fc3 login(pam_unix)[12082]: authentication failure; 
logname=LOGIN uid=0 euid=0 tty=tty1 ruser= rhost=  user=elina

Jun 10 11:53:12 fc3 pam_winbind[12082]: user 'elina' granted access
Jun 10 11:53:12 fc3 login(pam_unix)[12082]: could not identify user 
(from getpwnam(elina))
Jun 10 11:53:12 fc3 login[12082]: User not known to the underlying 
authentication module


any ideas

dave





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


[Samba] question

2005-06-10 Thread Diller, Susan [OCDUS non JJ]
Can someone tell me where to find information on the following messages?

[2005/06/09 02:07:20, 0] lib/util_sock.c:(436)
  read_data: read failure for 4. Error = Connection reset by peer

[2005/06/10 08:53:03, 0] smbd/server.c:(308)
  open_sockets: accept: No buffer space available

Thanks,
Sue Diller
Kelly Technical Services (ocdus-non JJ)
Phone: (585) 453-4272;  Fax: (585)453-3894 
Networking  Computing Services
Retained Support for Ortho-Clinical Diagnostics
Johnson  Johnson 
Confidentiality Notice: This e-mail transmission may contain confidential or
legally privileged information that is intended only for the individual or
entity named in the e-mail address. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
reliance upon the contents of this e-mail is strictly prohibited. If you
have received this e-mail transmission in error, please reply to the sender,
so that Johnson  Johnson can arrange for proper delivery, and then please
delete the message from your Inbox. Thank you. 


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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 07:59 -0500, Gerald (Jerry) Carter wrote:
 | getent group network-group-name shows that certain
 | users are in a group. id username shows that the
 | user belongs to that group. But if I su - username  id,
 | the group is mysteriously missing.

 Look for differences in the success and failure cases
 from a level 10 winbindd log.

Anything specific I should be looking for? I'm digging through it now,
but that's a *lot* of info. :)

Graeme

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


[Samba] Re: Samba problems - looks like a bug in client

2005-06-10 Thread Jim C.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 This is a small home LAN - two boxes running Mandriva 2005LE, four assorted 
...
 seeing any difference.  I have reverted to 3.0.13.
 
 I am seeing huge delays when transferring files direct from an application.  
...
 at all, saying that access is denied.  Printing from OOWriter is 

It's probably timing out meaning that it is taking so long that OOCalc
eventually gives up.  This would seem to indicate that it's strictly a
performance problem of some sort.

1. Post the smb.conf for the server.  Use the following procedure:
testparm  dumpfile.txt[enter][enter].  Edit the file to remove anything
that isn't relevant and then paste the remainder into a mail message.

2. Post the client side connection procedure and any errors.

 exceptionally slow, though this is never as bad from any other application.

Are these other applications using smaller files?

1. Command syntax may have changed on you.
 
 
 Always possible.  My main problem, though, is in saving files across the 
 lan, direct from apps like gnumeric.

Have you considered using an NFS mount in the short term until you get
the bugs worked out?  It's easy.  If you like I can show you how.

 Shorewall is not installed on this (the client) box, and windows boxes can 
 save correctly, indicating that shorewall on the server is working 
 correctly.

OK, but of course I had to ask.

3. File system permissions on your share directories.  (test by making
it chmod 777)
 Normally the shared directories are 770, but I have already tested them with 
 777.

The trick to trouble shooting is having a process-of-elimination
procedure.  If we always do our testing with it chmod 777 we know that
it really can't be a permissions issue.  We also have to concern
ourselves with the possibility that there might be more than one issue
as well as the idea that the problems may not be obvious. Since there
*might* be a permissions issue that we don't understand we make the
share world writable during testing as a matter of procedure.  If you
have important files in that directory that you want to safeguard,
consider creating an empty directory for sharing during the test
procedure. :-)

With nmap you can check both from the same box:
...
 need very specific instructions.

Do you have nscd running on either of these machines? If not give it a
try on both.

Do you have DNS on your local network?

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqcyHB4AhF6wVFMERAoFzAJ9b9OLYKScJ+1IZ+LrIemxXHCZ54wCfW6QR
sRx7oKSkP6L8243GiW86m3o=
=n1X+
-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] winbind and pam on FC3

2005-06-10 Thread giuseppe panei

David Rigler wrote:


Hi Giuseppe

I was thinking that getpwnam should fail, that user doesnt exist locally.
But the pam_unix and/or pam stack should be able to cope with that ?

dave



Hi dave

Yes, they should be able.
I have written a simple C program which is calling getpwnam. If passwd 
don' t contains the user, it is returning an error. If I am adding by 
hand the user, I can logon to console with ads account.


I am reading the samba documentation.

Giuseppe



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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 07:59 -0500, Gerald (Jerry) Carter wrote:
 Look for differences in the success and failure cases
 from a level 10 winbindd log.
 

Alright, the big difference I'm noticing is that when I run plain id,
pretty much nothing shows up in the logs. However, when I run id
graemehu (my username), I get the following:

[2005/06/10 11:34:26, 10] nsswitch/winbindd_group.c:fill_grent_mem(187)
  appending someguy at ndx 8
[2005/06/10 11:34:26, 10] nsswitch/winbindd_group.c:fill_grent_mem(215)
  num_mem = 20, len = 171, mem =
graemehu,someguy,someotherguy,somegirl,someothergirl,people,morenames
[2005/06/10 11:34:26, 10] nsswitch/winbindd_group.c:fill_grent_mem(222)
  fill_grent_mem returning 1

The names correspond to the group I'm having problems with... so it's
like it's just using cached (and incorrect) data when I run id, but it
goes and retrieves info from winbind every time when I run id
graemehu.

Any thoughts? My gut feeling is that it's something in how the nsswitch
module is caching user and group info, and when it choose to refresh
that, but I don't really know how to dig deeper into that.

Graeme

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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graeme Humphries wrote:

| Any thoughts? My gut feeling is that it's something in
| how the nsswitch module is caching user and group info,
| and when it choose to refresh that, but I don't really
| know how to dig deeper into that.

Try this as root:  wbinfo -a 'domain\user%pw'
(filling in the approriate username and password.
Then su - 'domain\username' and run id.







cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqdPDIR7qMdg1EfYRArZHAJ9lyPSHjBHaSRN4UV0eeHXEHIuq0QCdHRiO
Oh9hqsaSrAbD83w+ZTGBcPo=
=1XRC
-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] id and id username don't match up when using Winbind groups

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 12:54 -0500, Gerald (Jerry) Carter wrote:
 Try this as root:  wbinfo -a 'domain\user%pw'
 (filling in the approriate username and password.
 Then su - 'domain\username' and run id.

I'm using '+' as a delimiter, but in any case:

# wbinfo -a 'DOMAIN+graemehu%password'
plaintext password authentication succeeded
challenge/response password authentication succeeded
[EMAIL PROTECTED]:~ # su - 'DOMAIN+graemehu'
[EMAIL PROTECTED]:~$ id
uid=10670(graemehu) gid=10047(maingroup)
groups=10011(the_group_that_never_showed_up)

Yay! And, connecting to the share controlled by that group, I can now
get into it! HOORAY!

So, my next question is, how do I force this to happen on a global level
for all users, say, every 5 minutes. ;)

Graeme


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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graeme Humphries wrote:
| On Fri, 2005-06-10 at 12:54 -0500, Gerald (Jerry) Carter wrote:
|Try this as root:  wbinfo -a 'domain\user%pw'
|(filling in the approriate username and password.
|Then su - 'domain\username' and run id.
|
| I'm using '+' as a delimiter, but in any case:
|
| # wbinfo -a 'DOMAIN+graemehu%password'
| plaintext password authentication succeeded
| challenge/response password authentication succeeded
| [EMAIL PROTECTED]:~ # su - 'DOMAIN+graemehu'
| [EMAIL PROTECTED]:~$ id
| uid=10670(graemehu) gid=10047(maingroup)
| groups=10011(the_group_that_never_showed_up)
|
| Yay! And, connecting to the share controlled by that
| group, I can now get into it! HOORAY!
|
| So, my next question is, how do I force this to happen
| on a global level for all users, say, every 5 minutes. ;)

are you using security = domain or ads ?  If the latter
then stop winbindd and remove $(lockdir)/netsamlogon_cache.tdb.
If the former, then the cache should be updated every time
the user's logs in.

In technical terms, the cache is a copy of the NET_USER_INFO_3
structure in the samlogin() reply (used for NTLM authenication).
You're not the first one to be bitten by this.  It was more
useful in Samba 2.2.x installations.  We'll definitely fix
this somehow before the next stable release.




cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqdjEIR7qMdg1EfYRAn8kAKDvsoZmEZV42qdWc3jCgU/ybHlu7wCggr3p
K99hFwGihwhxau6SzEoBJo8=
=RnX8
-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] Unusual permissions problem [SOLUTION]

2005-06-10 Thread Ray Anderson
Replying to my own message. 

It turns out the I have samba-vscan-clamav installed, and it WAS running as 
clamav, which of course couldn't read the file.  I have
the access such that vscan failure = access denied, so changed the running user 
to root for the clamav service and life is good.

Thanks,

-=Ray

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On 
 Behalf Of Ray Anderson
 Sent: Friday, June 10, 2005 8:23 AM
 To: samba@lists.samba.org
 Subject: [Samba] Unusual permissions problem
 
 Hello,
 
 I have an issue with samba-3.0.10-1.fc3 permissions.
 
 The situation is this:
 
 I have a client that wants one user to have write permission 
 to a directory, but a GROUP of users to have read access.  Simple,
 right?  First, I set up the directory structure per Linux:
 
 (According to the samba guide, it's more efficient to use 
 sticky bits on the directory instead of using the force user 
 clause in the
 smb.conf file.)
 
 drwsr-s---   2 tcuser tcgroup 8.0K Jun 10 08:06 timecards
 
 Testing:
   Log in as a user who is a member of the tcgroup, can 
 read all files in the tree:  Success
   Log in as tcuser, can read, write, and delete all files 
 in the tree:  Success
 
 So I'm feeling pretty good about the Linux permissions.  Now 
 time to create the share:
 
 
 [timecards]
comment = Timecards
path = /timecards
create mask = 0640
write list = tcuser
valid users = tcuser, @tcgroup
 
 If I understand correctly, and obviously I don't, the write 
 list and valid users lines are redundant, as Samba is supposed to use
 the file system permissions.
 
 Now the issue:
 
 I log in (via smbclient) as tcuser:  Success
 
 Put a file into the share:  Success
 
 Rename the file:  Success
 
 Get the file back:  Access Denied.
 
 So this user can put files but cannot read them back.  (!)
 
 The really strange thing is if I set the world read bit to 
 the file, then tcuser can read the file just fine, but from a 
 Linux file
 permission perspective, that's a really bad thing, right?
 
 Any advice for this?
 
 Many thanks in advance,
 
 -=Ray
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/listinfo/samba
 

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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 13:15 -0500, Gerald (Jerry) Carter wrote:
 are you using security = domain or ads ?

ADS. I was under the impression that security = domain was broken with
SP1? Or has than been fixed in 3.0.14a?

 If the latter then stop winbindd and remove $(lockdir)/netsamlogon_cache.tdb.
 If the former, then the cache should be updated every time
 the user's logs in.

Ok, so to clear this up in ADS continually, I'll need to make a cron job
that shuts down winbind, removes this file, and then starts winbind up
again?

 In technical terms, the cache is a copy of the NET_USER_INFO_3
 structure in the samlogin() reply (used for NTLM authenication).

Ahhh, and it's just not getting updated properly with ADS?

 You're not the first one to be bitten by this.  It was more
 useful in Samba 2.2.x installations.  We'll definitely fix
 this somehow before the next stable release.

Cool. As long as I have a workaround, I'm happy, but it'd be nice to
have it cleaned up. Is 3.0.15 the next stable release, or does Samba use
the even=stable odd=devel numbering?

Graeme


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


Re: [Samba] id and id username don't match up when using Winbind groups

2005-06-10 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Graeme Humphries wrote:

| ADS. I was under the impression that security = domain
| was broken with SP1? Or has than been fixed in 3.0.14a?

security = ads is better for windows 2003 sp1.  I just wanted
to clarify what your configuration was.  And we now think
that we know how to fix security = domain as well.

| Ok, so to clear this up in ADS continually, I'll
| need to make a cron job that shuts down winbind,
| removes this file, and then starts winbind up
| again?

*if* user's never fall back to NTLM authentication
\and always use kerberos tickets, the cache will
never be initialized for that user so theoretically
it should not cause a problem.  But then Windows
clients do tend to fallback to NTLM more than one
would expect.

| In technical terms, the cache is a copy of the
| NET_USER_INFO_3 structure in the samlogin()
| reply (used for NTLM authenication).
|
| Ahhh, and it's just not getting updated properly
| with ADS?

Correct.

| Cool. As long as I have a workaround, I'm happy, but
| it'd be nice to have it cleaned up. Is 3.0.15
| the next stable release, or does Samba use the
| even=stable odd=devel numbering?

Well we're skipping a few release numbers due to
the large amount of upcoming changes.  So the next
stable release will be 3.0.20.  Here's the original
mail.

http://lists.samba.org/archive/samba/2005-May/106122.html





cheers, jerry
=
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
I never saved anything for the swim back. Ethan Hawk in Gattaca
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCqecQIR7qMdg1EfYRApgfAKC6MDbUPeVvt34CGL78J02Vndv2EACgrLV7
Gt40ZrBXvTs7LpdAlDaxjXA=
=pQpp
-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] id and id username don't match up when using Winbind groups

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 14:16 -0500, Gerald (Jerry) Carter wrote:
 *if* user's never fall back to NTLM authentication
 \and always use kerberos tickets, the cache will
 never be initialized for that user so theoretically
 it should not cause a problem.  But then Windows
 clients do tend to fallback to NTLM more than one
 would expect.

Yes, after I initially deleted it, the file was recreated about 2
minutes later. However, I'm fairly certain that's because we have a lot
of Win98/95 clients on the network that only get phased out when their
hardware kicks it, so I'm stuck with the cron thing for now. That's fine
with me though, I'm happy to just have a workable solution, since I've
been fighting with this ever since our SP1 upgrade 2 weeks ago.

 Well we're skipping a few release numbers due to
 the large amount of upcoming changes.  So the next
 stable release will be 3.0.20.  Here's the original
 mail.
 
 http://lists.samba.org/archive/samba/2005-May/106122.html

Ahhh, that's very interesting! The printer stuff especially will be
great, as we've been busy migrating towards a central (Samba) print
server from printers scattered all over the network. Excellent!

Graeme

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


Re: [Samba] Re: Samba problems - looks like a bug in client

2005-06-10 Thread Anne Wilson
On Friday 10 Jun 2005 18:23, Jim C. wrote:

  at all, saying that access is denied.  Printing from OOWriter is

 It's probably timing out meaning that it is taking so long that OOCalc
 eventually gives up.  This would seem to indicate that it's strictly a
 performance problem of some sort.

Very likely.

 1. Post the smb.conf for the server.  Use the following procedure:
 testparm  dumpfile.txt[enter][enter].  Edit the file to remove anything
 that isn't relevant and then paste the remainder into a mail message.

[global]
log file = /var/log/samba/log.%m
smb passwd file = /etc/samba/smbpasswd
load printers = yes
name resolve order = hosts lmhosts bcast
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
username level = 8
deadtime = 30
map to guest = bad user
encrypt passwords = yes
hosts allow = 192.168.0. 127.0.0.1
printer admin = @adm
password level = 8
dns proxy = no
netbios name = anne-linux
printing = cups
printcap name = cups
server string = Samba Server %v
local master = yes
workgroup = lydgate.net
printcap name = cups
security = user
preferred master = yes
max log size = 50
log level = 3
dos charset = 850
unix charset = ISO8859-15

[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   create mode = 0770
   
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer 
drivers.

   use client driver = yes

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   write list = @adm root
   guest ok = yes
   inherit permissions = yes

[pdf-gen]
   path = /var/tmp
   guest ok = No
   printable = Yes
   comment = PDF Generator (only valid users)
   print command = /usr/share/samba/scripts/print-pdf %s %H //%L/%u 
%m %I %J 
lpq command = /bin/true

[public2]
   comment = For sharing large files
   path = /public
   browseable = yes
   writable = yes

[public]
   comment = Public in Anne's home dir.
   path = /home/anne/Public
   browseable = yes
   writable = yes
   
[MP3s]
   comment = mp3 on Anne's home dir.
   path = /home/anne/mp3
   browseable = yes
   writable = yes

[SPREADSHEETS]
   path = /home/anne/Documents/Spreadsheets
   comment = /home/anne/Documents/Spreadsheets
   public = no
   valid users = anne,david,gillian
   guest ok = no
   writable = yes
#   wide links = no

 2. Post the client side connection procedure and any errors.

Generally, using Save As  /mnt/homes from an application.  I have also 
tried konqueror's lan browser, but when I select smb as the protocol it 
gives me the login dialogue constantly (appearing to be rejecting the 
password?).

  exceptionally slow, though this is never as bad from any other
  application.

 Are these other applications using smaller files?

No.  I can print large images from gimp much faster than OOWriter prints a 
text document.

 1. Command syntax may have changed on you.
 
  Always possible.  My main problem, though, is in saving files across
  the lan, direct from apps like gnumeric.

 Have you considered using an NFS mount in the short term until you get
 the bugs worked out?  It's easy.  If you like I can show you how.

I had two nfs mount icons on my desktop before I upgraded.  They don't work 
any more either.  Fish, however, works well and for the moment I'm using 
icons with a fish command for convenient mounting.

  Shorewall is not installed on this (the client) box, and windows boxes
  can save correctly, indicating that shorewall on the server is working
  correctly.

 OK, but of course I had to ask.

 3. File system permissions on your share directories.  (test by making
 it chmod 777)
 
  Normally the shared directories are 770, but I have already tested them
  with 777.

 The trick to trouble shooting is having a process-of-elimination
 procedure.  If we always do our testing with it chmod 777 we know that
 it really can't be a permissions issue.  We also have to concern
 ourselves with the possibility that there might be more than one issue
 as well as the idea that the problems may not be obvious. Since there
 *might* be a permissions issue that we don't understand we make the
 share world writable during testing as a matter of procedure.  If you
 have important files in that directory that you want to safeguard,
 consider creating an empty directory for sharing during the test
 procedure. :-)

There is only one of the shared directories that I would be unhappy about 
having 777.  I can leave that out of the testing.

 With nmap you can check both from the same box:

 ...

  need very specific instructions.

 Do you have nscd running on either of these machines? If not give it a
 try on both.

I haven't met 

Re: [Samba] Re: Samba problems - looks like a bug in client

2005-06-10 Thread Anne Wilson
On Friday 10 Jun 2005 20:32, Anne Wilson wrote:
  2. Post the client side connection procedure and any errors.

 Generally, using Save As  /mnt/homes from an application.  I have also
 tried konqueror's lan browser, but when I select smb as the protocol it
 gives me the login dialogue constantly (appearing to be rejecting the
 password?).

I forgot to say, if, in konqueror, I connect to 192.168.0.30/anne it 
connects without a problem.  If I try for anne-linux/anne I get the login 
dialogue loop.  All boxes on the lan are properly defined with ip, long 
name and short name in the hosts file.

  Do you have nscd running on either of these machines? If not give it a
  try on both.

 I haven't met nscd before.  I'll have to check up on that.  I'm snatching
 time out for the moment to answer this, but I'll look at it as soon as I
 can.

Nscd is now installed on both boxes.

Anne
-- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels


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

[Samba] MSWORD problem after upgrade to samba 3.0.14a

2005-06-10 Thread James Mauser
Hey all, 

 I was wondering if anyone else is experiencing a problem with Samba
3.0.14a.

 

The problems is after the users connects to a samba share and opens msword,
creates a document then does file|save 

Then opens the file and makes changes then does file|save again, it comes
up and says that the backup copy of the file could not be created and never
actually saves the file.

You have to do save as instead.

 

In msword if you turn off always save a backup copy then file|save works
with no problem.

 

 

This has only happened after upgrading from samba 3.0.10 to 3.0.14a

 

 

 

Samba is a member of a windows 2003 AD. Users connect to the share with
their AD username 

 

 

I have set logging up quite high but the only thing that stands out is 

[2005/06/10 16:37:37, 2] smbd/posix_acls.c:set_canon_ace_list(2420)

  set_canon_ace_list: sys_acl_set_file type file failed for file
~WRD1929.tmp (Operation not supported).

 

 

 

Have I overlooked a change I have needed to do since upgrading to 3.0.14a ?

 

Thanks

 

James Mauser

Computer Coordinator 

College of Engineering and Computer Science

Florida Atlantic University

561-239-2546

 

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


Re: [Samba] MSWORD problem after upgrade to samba 3.0.14a

2005-06-10 Thread Graeme Humphries
On Fri, 2005-06-10 at 17:29 -0400, James Mauser wrote:
 [2005/06/10 16:37:37, 2] smbd/posix_acls.c:set_canon_ace_list(2420)
 
   set_canon_ace_list: sys_acl_set_file type file failed for file
 ~WRD1929.tmp (Operation not supported).

We've noticed that since switching to Samba 3.0.14a, Office 2000 and
newer resets the ACLs on files to some pretty ridiculous values after
saving. Other Windows applications don't do the same thing.

However, it sounds like you're not even getting that far. Do you have
ACL support enabled for that partition?

Graeme

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


[Samba] Urgent request

2005-06-10 Thread Rajan, Varad G
I have installed the samba on a unix server and try to mount from a PC 
 and I get the error the file sis already mounted, though it is not. Is
there a file that keeps track of mounted partitions?. How do I clear
that mount point? I don't see the mount point on Unix.

..varad

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


[Samba] Policy Violation

2005-06-10 Thread LUXRELAY_SMS_SMTP
The following message sent by this account has violated system policy:

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Sat, 11 Jun 2005 05:20:52 +0200
Subject: Spamed?


The following violations were detected:

--- Scan information follows ---

Virus Name: [EMAIL PROTECTED]
File Attachment: list_ed_3986388911.zip/document.txt
   .exe
Attachment Status: deleted

--- File name Block information follows ---

File Attachment: M2005061105205219647.mes/list_ed_3986388911.zip/document.txt   
.exe
Matching file name: *.exe




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


svn commit: samba r7455 - in branches/SAMBA_4_0/source/libcli: .

2005-06-10 Thread tpot
Author: tpot
Date: 2005-06-10 07:49:00 + (Fri, 10 Jun 2005)
New Revision: 7455

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

Log:
Remove some talloc contexts that aren't used.

Modified:
   branches/SAMBA_4_0/source/libcli/cliconnect.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/cliconnect.c
===
--- branches/SAMBA_4_0/source/libcli/cliconnect.c   2005-06-10 03:26:39 UTC 
(rev 7454)
+++ branches/SAMBA_4_0/source/libcli/cliconnect.c   2005-06-10 07:49:00 UTC 
(rev 7455)
@@ -67,14 +67,10 @@
 {
struct smb_composite_sesssetup setup;
NTSTATUS status;
-   TALLOC_CTX *mem_ctx;
 
cli-session = smbcli_session_init(cli-transport, cli, True);
if (!cli-session) return NT_STATUS_UNSUCCESSFUL;
 
-   mem_ctx = talloc_init(smbcli_session_setup);
-   if (!mem_ctx) return NT_STATUS_NO_MEMORY;
-
setup.in.sesskey = cli-transport-negotiate.sesskey;
setup.in.capabilities = cli-transport-negotiate.capabilities;
setup.in.credentials = credentials;
@@ -84,8 +80,6 @@
 
cli-session-vuid = setup.out.vuid;
 
-   talloc_free(mem_ctx);
-
return status;
 }
 
@@ -144,10 +138,7 @@
 {
struct smbcli_tree *tree;
NTSTATUS status;
-   TALLOC_CTX *mem_ctx;
 
-   mem_ctx = talloc_init(smbcli_full_connection);
-
*ret_cli = NULL;
 
status = smbcli_tree_full_connection(parent_ctx,
@@ -164,8 +155,6 @@
(*ret_cli)-transport = tree-session-transport;

 done:
-   talloc_free(mem_ctx);
-
return status;
 }
 



svn commit: samba r7456 - in branches/SAMBA_4_0/source/lib/ejs: .

2005-06-10 Thread tpot
Author: tpot
Date: 2005-06-10 07:58:45 + (Fri, 10 Jun 2005)
New Revision: 7456

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

Log:
Add a simple type that represents a pointer.  The ejs people may ask us
to change this later but that will be pretty easy.  

We can use this type to pass around pointers to handles in C.  Talloc
allows us to do type checking too.

Modified:
   branches/SAMBA_4_0/source/lib/ejs/ejsParser.c
   branches/SAMBA_4_0/source/lib/ejs/ejsProcs.c
   branches/SAMBA_4_0/source/lib/ejs/var.c
   branches/SAMBA_4_0/source/lib/ejs/var.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ejs/ejsParser.c
===
--- branches/SAMBA_4_0/source/lib/ejs/ejsParser.c   2005-06-10 07:49:00 UTC 
(rev 7455)
+++ branches/SAMBA_4_0/source/lib/ejs/ejsParser.c   2005-06-10 07:58:45 UTC 
(rev 7456)
@@ -1659,6 +1659,7 @@
case MPR_TYPE_CFUNCTION:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_OBJECT:
+   case MPR_TYPE_PTR:
mprCopyVarValue(ep-result, mprCreateBoolVar(0), 0);
return 0;
 

Modified: branches/SAMBA_4_0/source/lib/ejs/ejsProcs.c
===
--- branches/SAMBA_4_0/source/lib/ejs/ejsProcs.c2005-06-10 07:49:00 UTC 
(rev 7455)
+++ branches/SAMBA_4_0/source/lib/ejs/ejsProcs.c2005-06-10 07:58:45 UTC 
(rev 7456)
@@ -310,6 +310,7 @@
case MPR_TYPE_OBJECT:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_STRING_CFUNCTION:
+   case MPR_TYPE_PTR:
mprCopyVar(ep-result, obj, MPR_SHALLOW_COPY);
break;
 

Modified: branches/SAMBA_4_0/source/lib/ejs/var.c
===
--- branches/SAMBA_4_0/source/lib/ejs/var.c 2005-06-10 07:49:00 UTC (rev 
7455)
+++ branches/SAMBA_4_0/source/lib/ejs/var.c 2005-06-10 07:58:45 UTC (rev 
7456)
@@ -1182,6 +1182,21 @@
return v;
 }
 
+/*
+ * Initialize an opaque pointer.
+ */
+
+MprVar mprCreatePtrVar(void *ptr, const char *name)
+{
+   MprVar v;
+
+   memset(v, 0x0, sizeof(v));
+   v.type = MPR_TYPE_PTR;
+   v.ptr = ptr;
+
+   return v;
+}
+
 
/**/
 #if BLD_FEATURE_FLOATING_POINT
 /*
@@ -1398,6 +1413,10 @@
dest-cFunctionWithStrings = src-cFunctionWithStrings;
break;
 
+   case MPR_TYPE_PTR:
+   dest-ptr = src-ptr;
+   break;
+
case MPR_TYPE_CFUNCTION:
dest-cFunction = src-cFunction;
break;
@@ -1645,6 +1664,10 @@
mprAllocSprintf(out, size, [C StringFunction]);
break;
 
+   case MPR_TYPE_PTR:
+   mprAllocSprintf(out, size, [C Pointer: %p], obj-ptr);
+   break;
+
case MPR_TYPE_FUNCTION:
mprAllocSprintf(out, size, [JavaScript Function]);
break;
@@ -1779,6 +1802,9 @@
case MPR_TYPE_OBJECT:
return 0;
 
+   case MPR_TYPE_PTR:
+   return (vp-ptr != NULL);
+
case MPR_TYPE_BOOL:
return vp-boolean;
 
@@ -1821,6 +1847,7 @@
case MPR_TYPE_CFUNCTION:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_OBJECT:
+   case MPR_TYPE_PTR:
return 0;
 
case MPR_TYPE_BOOL:
@@ -1896,6 +1923,7 @@
case MPR_TYPE_CFUNCTION:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_OBJECT:
+   case MPR_TYPE_PTR:
return 0;
 
case MPR_TYPE_BOOL:
@@ -2010,6 +2038,7 @@
case MPR_TYPE_CFUNCTION:
case MPR_TYPE_FUNCTION:
case MPR_TYPE_OBJECT:
+   case MPR_TYPE_PTR:
return 0;
 
case MPR_TYPE_BOOL:

Modified: branches/SAMBA_4_0/source/lib/ejs/var.h
===
--- branches/SAMBA_4_0/source/lib/ejs/var.h 2005-06-10 07:49:00 UTC (rev 
7455)
+++ branches/SAMBA_4_0/source/lib/ejs/var.h 2005-06-10 07:58:45 UTC (rev 
7456)
@@ -92,6 +92,7 @@
 #define MPR_TYPE_FUNCTION  8   /* JavaScript function 
*/
 #define MPR_TYPE_STRING9   /* String (immutable) */
 #define MPR_TYPE_STRING_CFUNCTION  10  /* C/C++ function with string 
args */
+#define MPR_TYPE_PTR   11  /* C pointer */
 
 /*
  * Create a type for the default number type
@@ -315,6 +316,7 @@
void*thisPtr;
} cFunctionWithStrings;
MprStr  string; 
/* Allocated string */
+   void *ptr;  /* C pointer */
 #if !BLD_DEBUG  !LINUX  !VXWORKS
};
 #endif
@@ -351,6 +353,7 @@
 extern MprVar  mprCreateBoolVar(bool value);
 extern MprVar  mprCreateCFunctionVar(MprCFunction 

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

2005-06-10 Thread tpot
Author: tpot
Date: 2005-06-10 08:00:02 + (Fri, 10 Jun 2005)
New Revision: 7457

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

Log:
Return an ejs C pointer object from the ejs connect() function.

Add a session_setup() function that does an anonymous session setup.  Will
add credential passing later.

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_cli.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_cli.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_cli.c  2005-06-10 
07:58:45 UTC (rev 7456)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_cli.c  2005-06-10 
08:00:02 UTC (rev 7457)
@@ -23,21 +23,9 @@
 #include includes.h
 #include lib/ejs/ejs.h
 #include librpc/gen_ndr/ndr_nbt.h
+#include libcli/raw/libcliraw.h
+#include libcli/composite/composite.h
 
-static struct MprVar mprTransport(struct smbcli_transport *transport)
-{
-   struct MprVar res, val;
-
-   res = mprCreateObjVar(transport, MPR_DEFAULT_HASH_SIZE);
-
-   val = mprCreateStringVar(talloc_get_name(transport), 1);
-   mprCreateProperty(res, name, val);
-
-   /* TODO: Create a C pointer value property */
-
-   return res;
-}
-
 /* Connect to a server */
 
 static int ejs_cli_connect(MprVarHandle eid, int argc, char **argv)
@@ -93,15 +81,73 @@
 
/* Return a socket object */
 
-   ejsSetReturnValue(eid, mprTransport(transport));
+   ejsSetReturnValue(eid, mprCreatePtrVar(transport, 
talloc_get_name(transport)));
 
return 0;
 }
 
+/* Perform a session setup:
+   
+ session_setup(conn, DOMAIN\USERNAME%PASSWORD);
+ session_setup(conn, USERNAME, PASSWORD);
+ session_setup(conn, DOMAIN, USERNAME, PASSWORD);
+
+ */
+
+static int ejs_cli_ssetup(MprVarHandle eid, int argc, MprVar **argv)
+{
+   struct smbcli_transport *transport;
+   struct smbcli_session *session;
+   struct smb_composite_sesssetup setup;
+   struct cli_credentials *creds;
+   NTSTATUS status;
+
+   /* Argument parsing */
+
+   if (argc  1 || argc  3) {
+   ejsSetErrorMsg(eid, session_setup invalid arguments);
+   return -1;
+   }
+
+   if (argv[0]-type != MPR_TYPE_PTR) {
+   ejsSetErrorMsg(eid, first arg is not a connect handle);
+   return -1;
+   }
+
+   transport = argv[0]-ptr;
+
+   /* Do session setup */
+
+   session = smbcli_session_init(transport, transport, True);
+   if (!session) {
+   ejsSetErrorMsg(eid, session init failed);
+   return -1;
+   }
+
+   creds = cli_credentials_init(session);
+   cli_credentials_set_anonymous(creds);
+
+   setup.in.sesskey = transport-negotiate.sesskey;
+   setup.in.capabilities = transport-negotiate.capabilities;
+   setup.in.credentials = creds;
+   setup.in.workgroup = lp_workgroup();
+
+   status = smb_composite_sesssetup(session, setup);
+
+   session-vuid = setup.out.vuid; 
+
+   /* Return a session object */
+
+   ejsSetReturnValue(eid, mprCreatePtrVar(session, 
talloc_get_name(session)));
+
+   return 0;
+}
+
 /*
   setup C functions that be called from ejs
 */
 void smb_setup_ejs_cli(void)
 {
-   ejsDefineStringCFunction(-1, connect, ejs_cli_connect, NULL, 
MPR_VAR_SCRIPT_HANDLE);  
+   ejsDefineStringCFunction(-1, connect, ejs_cli_connect, NULL, 
MPR_VAR_SCRIPT_HANDLE);
+   ejsDefineCFunction(-1, session_setup, ejs_cli_ssetup, NULL, 
MPR_VAR_SCRIPT_HANDLE);
 }



svn commit: samba r7458 - in branches/SAMBA_4_0/source/ntvfs/posix: .

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 08:24:34 + (Fri, 10 Jun 2005)
New Revision: 7458

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

Log:
don't look at components[-1] :-)
we now survive the RAW-UNLINK test without crashing

metze

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c2005-06-10 
08:00:02 UTC (rev 7457)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c2005-06-10 
08:24:34 UTC (rev 7458)
@@ -392,12 +392,14 @@
memmove(components[i], components[i+1], 
sizeof(char *)*(num_components-i));
i--;
+   continue;
}
if (strcmp(components[i], ..) == 0) {
if (i  1) return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
memmove(components[i-1], components[i+1], 
sizeof(char *)*(num_components-(i+1)));
i -= 2;
+   continue;
}
}
 



svn commit: samba r7459 - in branches/SAMBA_4_0/source/ntvfs/posix: .

2005-06-10 Thread tridge
Author: tridge
Date: 2005-06-10 08:52:26 + (Fri, 10 Jun 2005)
New Revision: 7459

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

Log:
fixed pvfs for the RAW-MUX test

when you cancel a lock, w2k3 gives NT_STATUS_FILE_LOCK_CONFLICT not
NT_STATUS_CANCELLED. Strange.

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c   2005-06-10 08:24:34 UTC 
(rev 7458)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_lock.c   2005-06-10 08:52:26 UTC 
(rev 7459)
@@ -118,7 +118,7 @@
 
/* we don't retry on a cancel */
if (reason == PVFS_WAIT_CANCEL) {
-   status = NT_STATUS_CANCELLED;
+   status = NT_STATUS_FILE_LOCK_CONFLICT;
} else {
status = brl_lock(pvfs-brl_context,
  f-handle-brl_locking_key,



svn commit: samba r7460 - in branches/SAMBA_4_0/source/lib/socket_wrapper: .

2005-06-10 Thread tridge
Author: tridge
Date: 2005-06-10 12:21:46 + (Fri, 10 Jun 2005)
New Revision: 7460

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

Log:
fixed several problems with the socket wrapper code and unbound sockets

This should fix the LOCAL-SOCKET test in the build farm

Modified:
   branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c
===
--- branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c   
2005-06-10 08:52:26 UTC (rev 7459)
+++ branches/SAMBA_4_0/source/lib/socket_wrapper/socket_wrapper.c   
2005-06-10 12:21:46 UTC (rev 7460)
@@ -22,8 +22,10 @@
 #ifdef _SAMBA_BUILD
 #include includes.h
 #include system/network.h
+#include system/filesys.h
 #else
 #include sys/types.h
+#include sys/stat.h
 #include sys/socket.h
 #include errno.h
 #include sys/un.h
@@ -95,8 +97,8 @@
}
 
in-sin_family = AF_INET;
-   in-sin_port = 1025; /* Default to 1025 */
-   p = strchr(un-sun_path, '/');
+   in-sin_port = htons(1025); /* Default to 1025 */
+   p = strrchr(un-sun_path, '/');
if (p) p++; else p = un-sun_path;
 
if (sscanf(p, sock_ip_%d_%u, type, prt) == 2) {
@@ -107,9 +109,20 @@
return 0;
 }
 
-static int convert_in_un(int type, const struct sockaddr_in *in, struct 
sockaddr_un *un)
+static int convert_in_un(struct socket_info *si, const struct sockaddr_in *in, 
struct sockaddr_un *un)
 {
+   int type = si-type;
uint16_t prt = ntohs(in-sin_port);
+   if (prt == 0) {
+   struct stat st;
+   /* handle auto-allocation of ephemeral ports */
+   prt = 5000;
+   do {
+   snprintf(un-sun_path, sizeof(un-sun_path), 
%s/sock_ip_%d_%u, 
+getenv(SOCKET_WRAPPER_DIR), type, ++prt);
+   } while (stat(un-sun_path, st) == 0  prt  1);
+   ((struct sockaddr_in *)si-myname)-sin_port = htons(prt);
+   } 
snprintf(un-sun_path, sizeof(un-sun_path), %s/sock_ip_%d_%u, 
 getenv(SOCKET_WRAPPER_DIR), type, prt);
return 0;
@@ -126,7 +139,7 @@
return NULL;
 }
 
-static int sockaddr_convert_to_un(const struct socket_info *si, const struct 
sockaddr *in_addr, socklen_t in_len, 
+static int sockaddr_convert_to_un(struct socket_info *si, const struct 
sockaddr *in_addr, socklen_t in_len, 
 struct sockaddr_un *out_addr)
 {
if (!out_addr)
@@ -136,7 +149,7 @@
 
switch (in_addr-sa_family) {
case AF_INET:
-   return convert_in_un(si-type, (const struct sockaddr_in 
*)in_addr, out_addr);
+   return convert_in_un(si, (const struct sockaddr_in *)in_addr, 
out_addr);
case AF_UNIX:
memcpy(out_addr, in_addr, sizeof(*out_addr));
return 0;
@@ -235,9 +248,53 @@
child_si-myname = sockaddr_dup(addr, *addrlen);
}
 
+   child_si-peername_len = *addrlen;
+   child_si-peername = sockaddr_dup(addr, *addrlen);
+
+   DLIST_ADD(sockets, child_si);
+
return fd;
 }
 
+/* using sendto() or connect() on an unbound socket would give the
+   recipient no way to reply, as unlike UDP and TCP, a unix domain
+   socket can't auto-assign emphemeral port numbers, so we need to
+   assign it here */
+static int swrap_auto_bind(struct socket_info *si)
+{
+   struct sockaddr_un un_addr;
+   struct sockaddr_in in;
+   int i;
+   
+   un_addr.sun_family = AF_UNIX;
+   
+   for (i=0;i1000;i++) {
+   snprintf(un_addr.sun_path, sizeof(un_addr.sun_path), 
+%s/sock_ip_%u_%u, getenv(SOCKET_WRAPPER_DIR), 
+SOCK_DGRAM, i + 1);
+   if (bind(si-fd, (struct sockaddr *)un_addr, 
+sizeof(un_addr)) == 0) {
+   si-tmp_path = strdup(un_addr.sun_path);
+   si-bound = 1;
+   break;
+   }
+   }
+   if (i == 1000) {
+   return -1;
+   }
+   
+   memset(in, 0, sizeof(in));
+   in.sin_family = AF_INET;
+   in.sin_port   = htons(i);
+   in.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
+   
+   si-myname_len = sizeof(in);
+   si-myname = sockaddr_dup(in, si-myname_len);
+   si-bound = 1;
+   return 0;
+}
+
+
 int swrap_connect(int s, const struct sockaddr *serv_addr, socklen_t addrlen)
 {
int ret;
@@ -256,6 +313,11 @@
return -1;
}
 
+   if (si-bound == 0  si-domain != AF_UNIX) {
+   ret = swrap_auto_bind(si);
+   if (ret == -1) return -1;
+   }
+
ret = sockaddr_convert_to_un(si, (const struct sockaddr *)serv_addr, 
addrlen, un_addr);
if (ret == -1) return -1;
 
@@ 

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

2005-06-10 Thread tridge
Author: tridge
Date: 2005-06-10 12:43:11 + (Fri, 10 Jun 2005)
New Revision: 7461

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

Log:
this is the start of some code for mapping IDL onto ejs. This is hand
written code, and it doesn't work or even compile yet. I am committing
it to make it easier to discuss the approach with jelmer and tpot.

The intention is that this code will eventually end up being mostly
auto-generated (with the utility functions split out, just like
librpc/ndr/*.c)


Added:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls_irpc.c


Changeset:
Added: branches/SAMBA_4_0/source/scripting/ejs/smbcalls_irpc.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls_irpc.c 2005-06-10 
12:21:46 UTC (rev 7460)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls_irpc.c 2005-06-10 
12:43:11 UTC (rev 7461)
@@ -0,0 +1,197 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   provide hooks into IRPC calls from ejs scripts.
+
+   Copyright (C) Andrew Tridgell 2005
+   
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+   
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+   
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+/*
+  I hope that this code will eventually be autogenerated.
+
+
+  In this code, the convention is:
+
+ejs_pull_*()   from MprVar - C structure
+ejs_push_*()   from C structure - MprVar
+
+  note that for ejs calls, pull only ever needs to do
+  NDR_IN, and push only ever needs to do NDR_OUT. This is
+  because ejs code is (at least for the moment) only used for
+  the client, not the server
+
+  also note that we don't need the NDR_SCALARS/NDR_BUFFERS stuff, as
+  we aren't dealing with wire marshalling where scalars and buffers
+  are separated
+*/
+
+#include includes.h
+#include lib/ejs/ejs.h
+#include librpc/gen_ndr/ndr_irpc.h
+
+struct ndr_ejs {
+   /* nothing here yet */
+   int dummy;
+};
+
+struct enum_table {
+   uint32_t evalue;
+   const char *name;
+};
+
+#define EJS_ASSERT(condition) do { \
+   if (!(condition)) { \
+   DEBUG(0,(ejs assert failed at %s: %s\n, __location__, 
#condition)); \
+   return NT_STATUS_INVALID_PARAMETER; \
+   } \
+} while (0)
+
+
+/* first some common helper functions */
+
+static NTSTATUS ejs_pull_enum(struct ndr_ejs *ndr,
+ uint32_t *evalue,
+ struct MprVar *v,
+ const struct enum_table *etable)
+{
+   const char *s;
+   int i;
+   EJS_ASSERT(v-type == MPR_TYPE_STRING);
+   s = v-string;
+   for (i=0;etable[i].name;i++) {
+   if (strcmp(s, etable[i].name) == 0) {
+   *evalue = etable[i].evalue;
+   return NT_STATUS_OK;
+   }
+   }
+   return NT_STATUS_INVALID_PARAMETER;
+}
+
+static NTSTATUS ejs_push_enum(struct ndr_ejs *ndr,
+ uint32_t evalue,
+ struct MprVar *v,
+ const struct enum_table *etable)
+{
+   int i;
+   for (i=0;etable[i].name;i++) {
+   if (evalue == etable[i].evalue) {
+   *v = mprCreateStringVar(etable[i].name, 0);
+   return NT_STATUS_OK;
+   }
+   }
+   return NT_STATUS_INVALID_PARAMETER;
+}
+
+static NTSTATUS ejs_push_hyper(struct ndr_ejs *ndr,
+  uint64_t evalue,
+  struct MprVar *v,
+  const char *name)
+{
+}
+
+
+NTSTATUS ejs_element(struct ndr_ejs *ndr,
+struct MprVar *v,
+const char *name,
+struct MprVar **e)
+{
+   *e = mprGetProperty(v, name, NULL);
+   if (*e == NULL) {
+   return NT_STATUS_INVALID_PARAMETER;
+   }
+   return NT_STATUS_OK;
+}
+
+
+/* when we auto-generate, the enum tables should also be used by
+   the ndr_print_*() functions for non-ejs handling of enums
+*/
+static const struct enum_table enum_table_nbdt_info_level[] = {
+   {NBTD_INFO_STATISTICS, NBTD_INFO_STATISTICS},
+   {-1, NULL}
+};
+
+
+
+/* pull-side functions for nbtd_information call */
+
+static NTSTATUS ejs_pull_nbtd_info_level(struct ndr_ejs *ndr, 
+enum nbtd_info_level 

svn commit: samba r7462 - in branches/SAMBA_4_0/source/librpc/ndr: .

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 13:42:01 + (Fri, 10 Jun 2005)
New Revision: 7462

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

Log:
fix Enum* pushing, we need to send back a buffer of the same size as we got
in the recv code..., this makes the w2k3 printserver properties gui happy:-)

metze
Modified:
   branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c
===
--- branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c  2005-06-10 
12:43:11 UTC (rev 7461)
+++ branches/SAMBA_4_0/source/librpc/ndr/ndr_spoolss_buf.c  2005-06-10 
13:42:01 UTC (rev 7462)
@@ -51,6 +51,10 @@
__r.in.count= r-out.count;\
__r.out.info= r-out.info;\
NDR_CHECK(ndr_push___##fn(_ndr_info, flags, __r)); \
+   if (*r-in.buf_size  _ndr_info-offset) {\
+   uint32_t _padding_len = *r-in.buf_size - 
_ndr_info-offset;\
+   NDR_CHECK(ndr_push_zero(_ndr_info, _padding_len));\
+   }\
_data_blob_info = ndr_push_blob(_ndr_info);\
_r.out.buffer   = _data_blob_info;\
}\
@@ -94,6 +98,11 @@
_ndr_info = ndr_pull_init_blob(_r.out.buffer, ndr);\
if (!_ndr_info) return NT_STATUS_NO_MEMORY;\
_ndr_info-flags= ndr-flags;\
+   if (*r-out.buf_size != _ndr_info-data_size) {\
+   return ndr_pull_error(ndr, NDR_ERR_BUFSIZE,\
+   SPOOLSS Buffer: buf_size[%u] doesn't match 
length of buffer[%u],\
+   *r-out.buf_size, _ndr_info-data_size);\
+   }\
__r.in.level= r-in.level;\
__r.in.count= r-out.count;\
__r.out.info= NULL;\



svn commit: samba r7463 - in branches/SAMBA_4_0/source: build/smb_build script/tests

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 15:32:16 + (Fri, 10 Jun 2005)
New Revision: 7463

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

Log:
- move some more stuff into functions

- try to kill all jobs return by jobs -p

metze
Modified:
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/script/tests/selftest.sh
   branches/SAMBA_4_0/source/script/tests/test_functions.sh


Changeset:
Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm
===
--- branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2005-06-10 
13:42:01 UTC (rev 7462)
+++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm   2005-06-10 
15:32:16 UTC (rev 7463)
@@ -148,7 +148,7 @@
 test: @DEFAULT_TEST_TARGET@
 
 test-swrap: all
-   SOCKET_WRAPPER_DIR=`pwd`/prefix-test ./script/tests/selftest.sh 
`pwd`/prefix-test
+   ./script/tests/selftest.sh `pwd`/prefix-test SOCKET_WRAPPER
 
 test-noswrap: all
./script/tests/selftest.sh `pwd`/prefix-test

Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-10 13:42:01 UTC 
(rev 7462)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-10 15:32:16 UTC 
(rev 7463)
@@ -12,6 +12,7 @@
 fi
 
 PREFIX=$1
+export PREFIX
 TMPDIR=$PREFIX/tmp
 LIBDIR=$PREFIX/lib
 PIDDIR=$PREFIX/pid
@@ -20,6 +21,18 @@
 NCALRPCDIR=$PREFIX/ncalrpc
 LOCKDIR=$PREFIX/lockdir
 
+SMBD_TEST_FIFO=$PREFIX/smbd_test.fifo
+export SMBD_TEST_FIFO
+SMBD_TEST_LOG=$PREFIX/smbd_test.log
+export SMBD_TEST_LOG
+
+DO_SOCKET_WRAPPER=$2
+if [ x$DO_SOCKET_WRAPPER = xSOCKET_WRAPPER ];then
+   SOCKET_WRAPPER_DIR=$PREFIX/socket_wrapper_dir
+   export SOCKET_WRAPPER_DIR
+   echo SOCKET_WRAPPER_DIR=$SOCKET_WRAPPER_DIR
+fi
+
 incdir=`dirname $0`
 . $incdir/test_functions.sh
 
@@ -41,7 +54,7 @@
path = $TMPDIR
read only = no
ntvfs handler = posix
-   posix:sharedelay = 5000
+   posix:sharedelay = 10
 EOF
 
 ADDARG=-s $CONFFILE
@@ -49,20 +62,8 @@
ADDARG=$ADDARG --option=\torture:progress=no\
 fi
 
-SMBD_TEST_FIFO=$PREFIX/smbd_test.fifo
-export SMBD_TEST_FIFO
+smbd_check_or_start
 
-rm -f $SMBD_TEST_FIFO
-mkfifo $SMBD_TEST_FIFO
-
-($SRCDIR/bin/smbd -d1 -s $CONFFILE -M single -i  $SMBD_TEST_FIFO;
- ret=$?;
- rm -f $SMBD_TEST_FIFO;
- echo smbd exists with status $ret;
- exit $ret;
-)||exit $? 
-
-sleep 2
 START=`date`
 (
  failed=0

Modified: branches/SAMBA_4_0/source/script/tests/test_functions.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_functions.sh2005-06-10 
13:42:01 UTC (rev 7462)
+++ branches/SAMBA_4_0/source/script/tests/test_functions.sh2005-06-10 
15:32:16 UTC (rev 7463)
@@ -1,16 +1,67 @@
-testit() {
-name=$1
-   shift 1
-   trap rm -f test.$$ EXIT
-   cmdline=$*
+smbd_check_or_start() {
+   if [ -n $SMBD_TEST_FIFO ];then
+   if [ -p $SMBD_TEST_FIFO ];then
+   return 0;
+   fi
 
+   if [ -n $SOCKET_WRAPPER_DIR ];then
+   if [ -d $SOCKET_WRAPPER_DIR ]; then
+   rm -f $SOCKET_WRAPPER_DIR/*
+   else
+   mkdir -p $SOCKET_WRAPPER_DIR
+   fi
+   fi
+
+   rm -f $SMBD_TEST_FIFO
+   mkfifo $SMBD_TEST_FIFO
+
+   rm -f $SMBD_TEST_LOG
+
+   echo -n STARTING SMBD...
+   ((
+   $SRCDIR/bin/smbd -d1 -s $CONFFILE -M single -i  
$SMBD_TEST_FIFO  $SMBD_TEST_LOG 21;
+   ret=$?;
+   rm -f $SMBD_TEST_FIFO;
+   if [ -n $SOCKET_WRAPPER_DIR -a -d 
$SOCKET_WRAPPER_DIR ]; then
+   rm -f $SOCKET_WRAPPER_DIR/*
+   fi
+   echo smbd exists with status $ret;
+   echo smbd exists with status $ret $SMBD_TEST_LOG;
+   exit $ret;
+   ) || exit $? ) 2/dev/null || exit $?
+   sleep 2
+   echo  DONE
+   fi
+   return 0;
+}
+
+smbd_check_only() {
if [ -n $SMBD_TEST_FIFO ];then
-   if [ ! -p $SMBD_TEST_FIFO ];then
-   echo TEST SKIPPED: $name (reason: smbd is down);
+   if [ -p $SMBD_TEST_FIFO ];then
return 0;
fi
+   return 1;
fi
+   return 0;
+}
 
+smbd_have_test_log() {
+   if [ -n $SMBD_TEST_LOG ];then
+   if [ -r $SMBD_TEST_LOG ];then
+   return 0;
+   fi
+   fi
+   return 1;
+}
+
+testit() {
+name=$1
+   shift 1
+   SMBD_IS_UP=no
+   TEST_LOG=$PREFIX/test_log.$$
+ 

svn commit: samba r7464 - in branches/SAMBA_4_0/source/torture/rpc: .

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 15:37:07 + (Fri, 10 Jun 2005)
New Revision: 7464

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

Log:
add newline to printf

metze
Modified:
   branches/SAMBA_4_0/source/torture/rpc/spoolss.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/spoolss.c
===
--- branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2005-06-10 15:32:16 UTC 
(rev 7463)
+++ branches/SAMBA_4_0/source/torture/rpc/spoolss.c 2005-06-10 15:37:07 UTC 
(rev 7464)
@@ -778,7 +778,7 @@
status = dcerpc_spoolss_GetForm(p, mem_ctx, r);
 
if (!r.out.info) {
-   printf(No form info returned);
+   printf(No form info returned\n);
return False;
}
}
@@ -820,7 +820,7 @@
status = dcerpc_spoolss_EnumForms(p, mem_ctx, r);
 
if (!r.out.info) {
-   printf(No forms returned);
+   printf(No forms returned\n);
return False;
}
 
@@ -979,7 +979,7 @@
}
 
if (!r.out.info) {
-   printf(No ports returned);
+   printf(No ports returned\n);
return False;
}
}
@@ -1052,7 +1052,7 @@
status = dcerpc_spoolss_GetJob(p, mem_ctx, r);
 
if (!r.out.info) {
-   printf(No job info returned);
+   printf(No job info returned\n);
return False;
}
}
@@ -1122,7 +1122,7 @@
status = dcerpc_spoolss_EnumJobs(p, mem_ctx, r);
 
if (!r.out.info) {
-   printf(No jobs returned);
+   printf(No jobs returned\n);
return True;
}
 
@@ -1862,7 +1862,7 @@
}
 
if (!r.out.info) {
-   printf(No printers returned);
+   printf(No printers returned\n);
continue;
}
 
@@ -1988,7 +1988,7 @@
}
 
if (!r.out.info) {
-   printf(No printer drivers returned);
+   printf(No printer drivers returned\n);
break;
}
}



svn commit: samba r7465 - in branches/SAMBA_4_0/source/rpc_server/spoolss: .

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 15:39:23 + (Fri, 10 Jun 2005)
New Revision: 7465

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

Log:
- return empty lists for now
- return WERR_NOT_SUPPORTED on AddPort()
(we pass the RPC-SPOOLSS test now :-)

metze
Modified:
   branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c
===
--- branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c   
2005-06-10 15:37:07 UTC (rev 7464)
+++ branches/SAMBA_4_0/source/rpc_server/spoolss/dcesrv_spoolss.c   
2005-06-10 15:39:23 UTC (rev 7465)
@@ -221,7 +221,9 @@
 static WERROR spoolss_EnumJobs(struct dcesrv_call_state *dce_call, TALLOC_CTX 
*mem_ctx,
   struct spoolss_EnumJobs *r)
 {
-   DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+   *r-out.buf_size= 0;
+
+   return WERR_OK;
 }
 
 
@@ -390,7 +392,9 @@
 static WERROR spoolss_EnumPrintProcessors(struct dcesrv_call_state *dce_call, 
TALLOC_CTX *mem_ctx,
   struct spoolss_EnumPrintProcessors *r)
 {
-   DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+   *r-out.buf_size= 0;
+
+   return WERR_OK;
 }
 
 
@@ -753,7 +757,9 @@
 static WERROR spoolss_EnumMonitors(struct dcesrv_call_state *dce_call, 
TALLOC_CTX *mem_ctx,
   struct spoolss_EnumMonitors *r)
 {
-   DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+   *r-out.buf_size= 0;
+
+   return WERR_OK;
 }
 
 
@@ -763,7 +769,7 @@
 static WERROR spoolss_AddPort(struct dcesrv_call_state *dce_call, TALLOC_CTX 
*mem_ctx,
   struct spoolss_AddPort *r)
 {
-   DCESRV_FAULT(DCERPC_FAULT_OP_RNG_ERROR);
+   return WERR_NOT_SUPPORTED;
 }
 
 



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

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 15:47:51 + (Fri, 10 Jun 2005)
New Revision: 7466

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

Log:
add RPC-SPOOLSS to the supported tests

metze
Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh
   branches/SAMBA_4_0/source/script/tests/test_rpc.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===
--- branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-10 15:39:23 UTC 
(rev 7465)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh  2005-06-10 15:47:51 UTC 
(rev 7466)
@@ -42,6 +42,7 @@
 
 cat $CONFFILEEOF
 [global]
+   netbios name = LOCALHOST
workgroup = $DOMAIN
realm = $REALM
private dir = $PRIVATEDIR

Modified: branches/SAMBA_4_0/source/script/tests/test_rpc.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_rpc.sh  2005-06-10 15:39:23 UTC 
(rev 7465)
+++ branches/SAMBA_4_0/source/script/tests/test_rpc.sh  2005-06-10 15:47:51 UTC 
(rev 7466)
@@ -2,7 +2,7 @@
 
 # add tests to this list as they start passing, so we test
 # that they stay passing
-ncacn_np_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON 
RPC-ALTERCONTEXT RPC-MULTIBIND
+ncacn_np_tests=RPC-SPOOLSS RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON 
RPC-ALTERCONTEXT RPC-MULTIBIND
 ncalrpc_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON RPC-ALTERCONTEXT 
RPC-MULTIBIND
 ncacn_ip_tcp_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON 
RPC-ALTERCONTEXT RPC-MULTIBIND
 



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

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 16:07:49 + (Fri, 10 Jun 2005)
New Revision: 7467

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

Log:
a little fix for the build-farm

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


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_functions.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_functions.sh2005-06-10 
15:47:51 UTC (rev 7466)
+++ branches/SAMBA_4_0/source/script/tests/test_functions.sh2005-06-10 
16:07:49 UTC (rev 7467)
@@ -75,6 +75,7 @@
smbd_check_only  SMBD_IS_UP=yes
if [ x$SMBD_IS_UP = xno ];then
if [ x$RUN_FROM_BUILD_FARM = xyes ];then
+   echo SMBD is down! skipping: $name
echo ==
echo TEST SKIPPED: $name (reason SMBD is down)
echo ==



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

2005-06-10 Thread metze
Author: metze
Date: 2005-06-10 16:19:38 + (Fri, 10 Jun 2005)
New Revision: 7469

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

Log:
fix typo

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


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_echo.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_echo.sh 2005-06-10 16:09:41 UTC 
(rev 7468)
+++ branches/SAMBA_4_0/source/script/tests/test_echo.sh 2005-06-10 16:19:38 UTC 
(rev 7469)
@@ -41,6 +41,6 @@
 
 # separately test the print option - its v slow
 name=print option
-testit bin/smbtorture $name ncacn_np:$server[print] 
-U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1`
+testit $name bin/smbtorture ncacn_np:$server[print] 
-U$username%$password -W $domain RPC-ECHO $* || failed=`expr $failed + 1`
 
 testok $0 $failed



svn commit: samba r7470 - branches/SAMBA_3_0/source/registry trunk/source/registry

2005-06-10 Thread jerry
Author: jerry
Date: 2005-06-10 18:34:36 + (Fri, 10 Jun 2005)
New Revision: 7470

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

Log:
fix block size caculation error when request size  4096 bytes
Modified:
   branches/SAMBA_3_0/source/registry/regfio.c
   trunk/source/registry/regfio.c


Changeset:
Modified: branches/SAMBA_3_0/source/registry/regfio.c
===
--- branches/SAMBA_3_0/source/registry/regfio.c 2005-06-10 16:19:38 UTC (rev 
7469)
+++ branches/SAMBA_3_0/source/registry/regfio.c 2005-06-10 18:34:36 UTC (rev 
7470)
@@ -1504,7 +1504,7 @@
 
/* allocate in multiples of REGF_ALLOC_BLOCK; make sure (size + 
hbin_header) fits */
 
-   alloc_size = ((size+HBIN_HEADER_REC_SIZE) / REGF_ALLOC_BLOCK ) 
+ REGF_ALLOC_BLOCK;
+   alloc_size = (((size+HBIN_HEADER_REC_SIZE) / REGF_ALLOC_BLOCK ) 
+ 1 ) * REGF_ALLOC_BLOCK;
 
if ( !(hbin = regf_hbin_allocate( file, alloc_size )) ) {
DEBUG(0,(find_free_space: regf_hbin_allocate() 
failed!\n));

Modified: trunk/source/registry/regfio.c
===
--- trunk/source/registry/regfio.c  2005-06-10 16:19:38 UTC (rev 7469)
+++ trunk/source/registry/regfio.c  2005-06-10 18:34:36 UTC (rev 7470)
@@ -1504,7 +1504,7 @@
 
/* allocate in multiples of REGF_ALLOC_BLOCK; make sure (size + 
hbin_header) fits */
 
-   alloc_size = ((size+HBIN_HEADER_REC_SIZE) / REGF_ALLOC_BLOCK ) 
+ REGF_ALLOC_BLOCK;
+   alloc_size = (((size+HBIN_HEADER_REC_SIZE) / REGF_ALLOC_BLOCK ) 
+ 1 ) * REGF_ALLOC_BLOCK;
 
if ( !(hbin = regf_hbin_allocate( file, alloc_size )) ) {
DEBUG(0,(find_free_space: regf_hbin_allocate() 
failed!\n));



svn commit: samba-docs r613 - in trunk/smbdotconf/security: .

2005-06-10 Thread jerry
Author: jerry
Date: 2005-06-10 19:17:31 + (Fri, 10 Jun 2005)
New Revision: 613

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

Log:
fix typo after changes to 'map to guest' options
Modified:
   trunk/smbdotconf/security/maptoguest.xml


Changeset:
Modified: trunk/smbdotconf/security/maptoguest.xml
===
--- trunk/smbdotconf/security/maptoguest.xml2005-06-10 05:11:01 UTC (rev 
612)
+++ trunk/smbdotconf/security/maptoguest.xml2005-06-10 19:17:31 UTC (rev 
613)
@@ -9,7 +9,7 @@
 - i.e. constantuser/constant, constantserver/constant, 
 and constantdomain/constant./para
 
-paraThis parameter can take three different values, which tell
+paraThis parameter can take four different values, which tell
 citerefentryrefentrytitlesmbd/refentrytitle
 manvolnum8/manvolnum/citerefentry what to do with user 
 login requests that don't match a valid UNIX user in some way./para



svn commit: samba-docs r614 - in trunk/Samba-Guide: .

2005-06-10 Thread jht
Author: jht
Date: 2005-06-10 19:25:20 + (Fri, 10 Jun 2005)
New Revision: 614

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

Log:
A progress update - more to be fixed.
Modified:
   trunk/Samba-Guide/SBE-AddingUNIXClients.xml


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


svn commit: samba r7471 - in trunk/source/smbd: .

2005-06-10 Thread jra
Author: jra
Date: 2005-06-10 19:39:46 + (Fri, 10 Jun 2005)
New Revision: 7471

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

Log:
Fix bug found by Marc Kaplan - amazing how similar InBuffer looks to OutBuffer
when you're typing it wrong :-). Tidy up some InBuf/OutBuf usage.
We're valgrind clean in Marc's test case now.
Jeremy.

Modified:
   trunk/source/smbd/aio.c
   trunk/source/smbd/oplock.c
   trunk/source/smbd/process.c


Changeset:
Modified: trunk/source/smbd/aio.c
===
--- trunk/source/smbd/aio.c 2005-06-10 18:34:36 UTC (rev 7470)
+++ trunk/source/smbd/aio.c 2005-06-10 19:39:46 UTC (rev 7471)
@@ -116,7 +116,9 @@
 static void delete_aio_ex(struct aio_extra *aio_ex)
 {
DLIST_REMOVE(aio_list_head, aio_ex);
-   SAFE_FREE(aio_ex-inbuf);
+   /* Safe to do as we've removed ourselves from the in use list first. */
+   free_InBuffer(aio_ex-inbuf);
+
SAFE_FREE(aio_ex-outbuf);
SAFE_FREE(aio_ex);
 }
@@ -524,6 +526,22 @@
}
}
 }
+
+/
+ Check if a buffer was stolen for aio use.
+*/
+
+BOOL aio_inbuffer_in_use(char *inbuf)
+{
+   struct aio_extra *aio_ex;
+
+   for( aio_ex = aio_list_head; aio_ex; aio_ex = aio_ex-next) {
+   if (aio_ex-inbuf == inbuf) {
+   return True;
+   }
+   }
+   return False;
+}
 #else
 BOOL aio_finished(void)
 {
@@ -561,4 +579,9 @@
 void cancel_aio_by_fsp(files_struct *fsp)
 {
 }
+
+BOOL aio_inbuffer_in_use(char *ptr)
+{
+   return False;
+}
 #endif

Modified: trunk/source/smbd/oplock.c
===
--- trunk/source/smbd/oplock.c  2005-06-10 18:34:36 UTC (rev 7470)
+++ trunk/source/smbd/oplock.c  2005-06-10 19:39:46 UTC (rev 7471)
@@ -751,7 +751,7 @@
if((outbuf = NewOutBuffer(saved_outbuf))==NULL) {
DEBUG(0,(oplock_break: malloc fail for output buffer.\n));
set_InBuffer(saved_inbuf);
-   SAFE_FREE(inbuf);
+   free_InBuffer(inbuf);
return False;
}
 
@@ -911,11 +911,11 @@
 
/* Restore the global In/Out buffers. */
set_InBuffer(saved_inbuf);
-   set_InBuffer(saved_outbuf);
+   set_OutBuffer(saved_outbuf);
 
/* Free the buffers we've been using to recurse. */
-   SAFE_FREE(inbuf);
-   SAFE_FREE(outbuf);
+   free_InBuffer(inbuf);
+   free_OutBuffer(outbuf);
 
/* We need this in case a readraw crossed on the wire. */
if(global_oplock_break)

Modified: trunk/source/smbd/process.c
===
--- trunk/source/smbd/process.c 2005-06-10 18:34:36 UTC (rev 7470)
+++ trunk/source/smbd/process.c 2005-06-10 19:39:46 UTC (rev 7471)
@@ -1516,9 +1516,31 @@
 
 void set_OutBuffer(char *new_outbuf)
 {
-   InBuffer = new_outbuf;
+   OutBuffer = new_outbuf;
 }
 
+/
+ Free an InBuffer. Checks if not in use by aio system.
+ Must have been allocated by NewInBuffer.
+/
+
+void free_InBuffer(char *inbuf)
+{
+   if (!aio_inbuffer_in_use(inbuf)) {
+   SAFE_FREE(inbuf);
+   }
+}
+
+/
+ Free an OutBuffer. No outbuffers currently stolen by aio system.
+ Must have been allocated by NewInBuffer.
+/
+
+void free_OutBuffer(char *outbuf)
+{
+   SAFE_FREE(outbuf);
+}
+
 const int total_buffer_size = (BUFFER_SIZE + LARGE_WRITEX_HDR_SIZE + 
SAFETY_MARGIN);
 
 /
@@ -1536,7 +1558,7 @@
}
InBuffer = new_inbuf;
 #if defined(DEVELOPER)
-   clobber_region(SAFE_STRING_FUNCTION_NAME, SAFE_STRING_LINE, new_inbuf, 
total_buffer_size);
+   clobber_region(SAFE_STRING_FUNCTION_NAME, SAFE_STRING_LINE, InBuffer, 
total_buffer_size);
 #endif
return InBuffer;
 }
@@ -1569,10 +1591,10 @@
 {
time_t last_timeout_processing_time = time(NULL);
unsigned int num_smbs = 0;
-   char *inbuf = NewInBuffer(NULL);
-   char *outbuf = NewOutBuffer(NULL);
 
-   if ((inbuf == NULL) || (outbuf == NULL)) 
+   /* Allocate the primary Inbut/Output buffers. */
+
+   if ((NewInBuffer(NULL) == NULL) || (NewOutBuffer(NULL) == NULL)) 
return;
 
max_recv = MIN(lp_maxxmit(),BUFFER_SIZE);



svn commit: samba-docs r615 - in trunk/Samba-Guide: .

2005-06-10 Thread jht
Author: jht
Date: 2005-06-10 20:05:38 + (Fri, 10 Jun 2005)
New Revision: 615

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

Log:
Another update.
Modified:
   trunk/Samba-Guide/SBE-AddingUNIXClients.xml


Changeset:
Modified: trunk/Samba-Guide/SBE-AddingUNIXClients.xml
===
--- trunk/Samba-Guide/SBE-AddingUNIXClients.xml 2005-06-10 19:25:20 UTC (rev 
614)
+++ trunk/Samba-Guide/SBE-AddingUNIXClients.xml 2005-06-10 20:05:38 UTC (rev 
615)
@@ -465,10 +465,16 @@
If your implementation of constantnss_ldap/constant is 
consistent with
the defaults suggested by PADL (the authors), it will be 
located in the
filename/etc/filename directory. On some systems, the 
default location is
-   the filename/etc/openldap/filename directory. Change the 
parameters inside
-   the file that is located on your OS so it matches link 
linkend=ch9-sdmlcnf/.
-   To find the correct location of this file, you can obtain this 
from the
-   library that will be used by executing the following:
+   the filename/etc/openldap/filename directory, however this 
file is intended
+   for use by the OpenLDAP utilities and should not really be used 
by the nss_ldap
+   utility since its content and structure serves the specific 
purpose of enabling
+   the resolution of user and group IDs via NSS.
+   /para
+
+   para
+   Change the parameters inside the file that is located on your 
OS so it matches
+   link linkend=ch9-sdmlcnf/.  To find the correct location of 
this file, you
+   can obtain this from the library that will be used by executing 
the following:
 screen
 rootprompt; strings /lib/libnss_ldap* | grep ldap.conf
 /etc/ldap.conf
@@ -476,8 +482,8 @@
/para/step
 
steppara
-   Configure the NSS control file so it matches the one shown
-   in link linkend=ch9-sdmnss/.
+   Configure the NSS control file so it matches the one shown in
+   link linkend=ch9-sdmnss/.
/para/step
 
steppara
@@ -525,7 +531,9 @@
necessary to add secondary group memberships (in the group 
database) if the
user is already a member via primary group membership in the 
password database.
When using winbind, it is in fact undesirable to do this 
because it results in
-   doubling up of group memberships and may break winbind under 
certain conditions.
+   doubling up of group memberships and may cause problems with 
winbind under certain 
+   conditions. It is intended that these limitations with winbind 
will be resolved soon
+   after Samba-3.0.20 has been released.
/para/step
 
steppara
@@ -546,10 +554,18 @@
 rootprompt; ldapadd -x -D cn=Manager,dc=abmas,dc=biz \
-w not24get lt; /etc/openldap/idmap.LDIF
 /screen
-   Samba automatically populates this LDAP directory container 
when it needs to.
/para/step
 
steppara
+   Samba automatically populates the LDAP directory container when 
it needs to. To permit Samba
+   write access to the LDAP directory it is necessary to set the 
LDAP administrative password
+   in the filenamesecrets.tdb/filename file as shown here:
+screen
+rootprompt; smbpasswd -w not24get
+/screen
+   /para/step
+
+   steppara

indextermprimarynet/primarysecondaryrpc/secondarytertiaryjoin/tertiary/indexterm
indextermprimaryDomain join/primary/indexterm
The system is ready to join the domain. Execute the following:
@@ -616,12 +632,12 @@
steppara
indextermprimarywbinfo/primary/indexterm
Just joining the domain is not quite enough; you must now 
provide a privileged set
-   of credentials through which commandwinbindd/command can 
interact with the ADS
+   of credentials through which commandwinbindd/command can 
interact with the 
domain servers. Execute the following to implant the necessary 
credentials:
 screen
 rootprompt; wbinfo --set-auth-user=Administrator%not24get
 /screen
-   The configuration is now ready to obtain ADS domain user and 
group information.
+   The configuration is now ready to obtain the Samba domain user 
and group information.
/para/step
 
steppara
@@ -735,7 +751,7 @@
/sect2
 
sect2 id=wdcsdm
-   titleNT4/Samba Domain with Samba Domain Member Server: Using 
Winbind/title
+   titleNT4/Samba Domain with Samba Domain Member Server: Using 

svn commit: samba-docs r616 - in trunk/Samba-Guide: .

2005-06-10 Thread jht
Author: jht
Date: 2005-06-10 20:10:49 + (Fri, 10 Jun 2005)
New Revision: 616

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

Log:
Another update.
Modified:
   trunk/Samba-Guide/SBE-AddingUNIXClients.xml


Changeset:
Modified: trunk/Samba-Guide/SBE-AddingUNIXClients.xml
===
--- trunk/Samba-Guide/SBE-AddingUNIXClients.xml 2005-06-10 20:05:38 UTC (rev 
615)
+++ trunk/Samba-Guide/SBE-AddingUNIXClients.xml 2005-06-10 20:10:49 UTC (rev 
616)
@@ -768,7 +768,7 @@
/para/listitem
 
listitempara
-   The Samba domain member server must be part of a Windows NT4 
Domain.
+   The Samba domain member server must be part of a Windows NT4 
Domain, or a Samba Domain.
/para/listitem
/itemizedlist
 
@@ -840,12 +840,13 @@
 net rpc join -U root%not2g4et
 Joined domain MEGANET2.
 /screen
-This indicates that the domain join succeed.
+   This indicates that the domain join succeed.
 
/para/step
 
steppara
-   
indextermprimarywinbind/primary/indextermindextermprimarywbinfo/primary/indexterm
+   indextermprimarywinbind/primary/indexterm
+   indextermprimarywbinfo/primary/indexterm
Validate operation of commandwinbind/command using the 
commandwbinfo/command
tool as follows:
 screen
@@ -873,13 +874,10 @@
This shows that domain groups have been correctly obtained also.
/para/step
 
- stepparaindexterm
-   primaryNSS/primary
- /indextermindexterm
-   primarygetent/primary
- /indextermindexterm
-   primarywinbind/primary
- /indexterm
+   steppara
+   indextermprimaryNSS/primary/indexterm
+   indextermprimarygetent/primary/indexterm
+   indextermprimarywinbind/primary/indexterm
The next step verifies that NSS is able to obtain this 
information
correctly from commandwinbind/command also.
 screen



svn commit: samba-docs r617 - in trunk: . Samba3-ByExample Samba3-HOWTO xslt xslt/latex

2005-06-10 Thread jelmer
Author: jelmer
Date: 2005-06-10 20:29:09 + (Fri, 10 Jun 2005)
New Revision: 617

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

Log:
Large number of small fixes to the layout and the build system.

Added:
   trunk/Samba3-ByExample/
   trunk/Samba3-ByExample/SBE-500UserNetwork.xml
   trunk/Samba3-ByExample/SBE-AddingUNIXClients.xml
   trunk/Samba3-ByExample/SBE-Appendix1.xml
   trunk/Samba3-ByExample/SBE-DomainAppsSupport.xml
   trunk/Samba3-ByExample/SBE-HighAvailability.xml
   trunk/Samba3-ByExample/SBE-KerberosFastStart.xml
   trunk/Samba3-ByExample/SBE-MakingHappyUsers.xml
   trunk/Samba3-ByExample/SBE-MigrateNT4Samba3.xml
   trunk/Samba3-ByExample/SBE-MigrateNW4Samba3.xml
   trunk/Samba3-ByExample/SBE-SecureOfficeServer.xml
   trunk/Samba3-ByExample/SBE-SimpleOfficeServer.xml
   trunk/Samba3-ByExample/SBE-UpgradingSamba.xml
   trunk/Samba3-ByExample/SBE-foreword.xml
   trunk/Samba3-ByExample/SBE-inside-cover.xml
   trunk/Samba3-HOWTO/
   trunk/xslt/latex.overrides.xml
Removed:
   trunk/Samba-Guide/
   trunk/Samba-HOWTO-Collection/
   trunk/Samba3-ByExample/SBE-500UserNetwork.xml
   trunk/Samba3-ByExample/SBE-AddingUNIXClients.xml
   trunk/Samba3-ByExample/SBE-Appendix1.xml
   trunk/Samba3-ByExample/SBE-DomainAppsSupport.xml
   trunk/Samba3-ByExample/SBE-HighAvailability.xml
   trunk/Samba3-ByExample/SBE-KerberosFastStart.xml
   trunk/Samba3-ByExample/SBE-MakingHappyUsers.xml
   trunk/Samba3-ByExample/SBE-MigrateNT4Samba3.xml
   trunk/Samba3-ByExample/SBE-MigrateNW4Samba3.xml
   trunk/Samba3-ByExample/SBE-SecureOfficeServer.xml
   trunk/Samba3-ByExample/SBE-SimpleOfficeServer.xml
   trunk/Samba3-ByExample/SBE-UpgradingSamba.xml
   trunk/Samba3-ByExample/SBE-foreword.xml
   trunk/Samba3-ByExample/SBE-inside-cover.xml
Modified:
   trunk/
   trunk/Makefile
   trunk/Samba3-HOWTO/TOSHARG-Group-Mapping.xml
   trunk/Samba3-HOWTO/TOSHARG-glossary.xml
   trunk/configure.in
   trunk/htmldocs.html
   trunk/settings.xsl.in
   trunk/xslt/expand-sambadoc.xsl
   trunk/xslt/latex.xsl
   trunk/xslt/latex/sambadoc.cls


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


svn commit: samba-docs r618 - in trunk/Samba3-HOWTO: .

2005-06-10 Thread jht
Author: jht
Date: 2005-06-10 20:44:17 + (Fri, 10 Jun 2005)
New Revision: 618

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

Log:
Fixup.
Modified:
   trunk/Samba3-HOWTO/index.xml


Changeset:
Modified: trunk/Samba3-HOWTO/index.xml
===
--- trunk/Samba3-HOWTO/index.xml2005-06-10 20:29:09 UTC (rev 617)
+++ trunk/Samba3-HOWTO/index.xml2005-06-10 20:44:17 UTC (rev 618)
@@ -16,7 +16,7 @@
 
?latex \setcounter{page}{5} ?
 
-   xi:include href=../Samba-HOWTO-Collection-attributions.xml
+   xi:include href=../Samba3-HOWTO-attributions.xml
xi:fallback/
/xi:include
 



svn commit: samba r7472 - branches/SAMBA_3_0/source/libsmb trunk/source/libsmb

2005-06-10 Thread jerry
Author: jerry
Date: 2005-06-10 22:03:33 + (Fri, 10 Jun 2005)
New Revision: 7472

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

Log:
fix smbpasswd user password change (still worked by bad error messages) due to 
trying to strdup a NULL pointer
Modified:
   branches/SAMBA_3_0/source/libsmb/ntlmssp.c
   trunk/source/libsmb/ntlmssp.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/ntlmssp.c
===
--- branches/SAMBA_3_0/source/libsmb/ntlmssp.c  2005-06-10 19:39:46 UTC (rev 
7471)
+++ branches/SAMBA_3_0/source/libsmb/ntlmssp.c  2005-06-10 22:03:33 UTC (rev 
7472)
@@ -138,7 +138,7 @@
 
 NTSTATUS ntlmssp_set_username(NTLMSSP_STATE *ntlmssp_state, const char *user) 
 {
-   ntlmssp_state-user = talloc_strdup(ntlmssp_state-mem_ctx, user);
+   ntlmssp_state-user = talloc_strdup(ntlmssp_state-mem_ctx, user ? user 
:  );
if (!ntlmssp_state-user) {
return NT_STATUS_NO_MEMORY;
}
@@ -168,7 +168,7 @@
  */
 NTSTATUS ntlmssp_set_domain(NTLMSSP_STATE *ntlmssp_state, const char *domain) 
 {
-   ntlmssp_state-domain = talloc_strdup(ntlmssp_state-mem_ctx, domain);
+   ntlmssp_state-domain = talloc_strdup(ntlmssp_state-mem_ctx, domain ? 
domain :  );
if (!ntlmssp_state-domain) {
return NT_STATUS_NO_MEMORY;
}

Modified: trunk/source/libsmb/ntlmssp.c
===
--- trunk/source/libsmb/ntlmssp.c   2005-06-10 19:39:46 UTC (rev 7471)
+++ trunk/source/libsmb/ntlmssp.c   2005-06-10 22:03:33 UTC (rev 7472)
@@ -138,7 +138,7 @@
 
 NTSTATUS ntlmssp_set_username(NTLMSSP_STATE *ntlmssp_state, const char *user) 
 {
-   ntlmssp_state-user = talloc_strdup(ntlmssp_state-mem_ctx, user);
+   ntlmssp_state-user = talloc_strdup(ntlmssp_state-mem_ctx, user ? user 
:  );
if (!ntlmssp_state-user) {
return NT_STATUS_NO_MEMORY;
}
@@ -168,7 +168,7 @@
  */
 NTSTATUS ntlmssp_set_domain(NTLMSSP_STATE *ntlmssp_state, const char *domain) 
 {
-   ntlmssp_state-domain = talloc_strdup(ntlmssp_state-mem_ctx, domain);
+   ntlmssp_state-domain = talloc_strdup(ntlmssp_state-mem_ctx, domain ? 
domain :  );
if (!ntlmssp_state-domain) {
return NT_STATUS_NO_MEMORY;
}



svn commit: samba-docs r619 - in trunk/xslt: .

2005-06-10 Thread jelmer
Author: jelmer
Date: 2005-06-10 22:28:10 + (Fri, 10 Jun 2005)
New Revision: 619

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

Log:
More updates

Modified:
   trunk/xslt/expand-sambadoc.xsl
   trunk/xslt/latex.xsl


Changeset:
Modified: trunk/xslt/expand-sambadoc.xsl
===
--- trunk/xslt/expand-sambadoc.xsl  2005-06-10 20:44:17 UTC (rev 618)
+++ trunk/xslt/expand-sambadoc.xsl  2005-06-10 22:28:10 UTC (rev 619)
@@ -444,13 +444,4 @@
/xsl:element
/xsl:element
/xsl:template
-
-   xsl:template match=quote
-   xsl:element name=quote
-   xsl:element name=emphasis
-   xsl:apply-templates/
-   /xsl:element
-   /xsl:element
-   /xsl:template
-
 /xsl:stylesheet

Modified: trunk/xslt/latex.xsl
===
--- trunk/xslt/latex.xsl2005-06-10 20:44:17 UTC (rev 618)
+++ trunk/xslt/latex.xsl2005-06-10 22:28:10 UTC (rev 619)
@@ -26,12 +26,23 @@
set   toc,title
 /xsl:param
 
+!-- Show real name of the link rather then user specified description --
 xsl:template name=link
xsl:element name=link
xsl:copy-of select=@*/
/xsl:element
 /xsl:template
 
+!-- LaTeX doesn't accept verbatim stuff in titles --
+xsl:template 
match=//title/filename|//title/command|//title/parameter|//title/constant
+  xsl:variable name=content
+xsl:apply-templates/
+  /xsl:variable
+  xsl:if test=$content != ''
+xsl:value-of select=$content /
+  /xsl:if
+/xsl:template
+
 xsl:output method=text encoding=ISO-8859-1 indent=yes/
 xsl:param name=l10n.gentext.default.language select='en'/
 xsl:param name=latex.example.caption.style/xsl:param
@@ -43,38 +54,12 @@
 xsl:variable name=latex.use.parskip1/xsl:variable
 !--xsl:variable name=latex.use.ltxtable1/xsl:variable--
 xsl:variable name=latex.hyphenation.tttricks1/xsl:variable
-xsl:variable name=latex.book.varsets/xsl:variable
 xsl:variable name=latex.titlepage.file/xsl:variable
-!--xsl:variable name=formal.title.placement
-   figure not_before
-   example not_before
-   equation not_before
-   table not_before
-   procedure before
-/xsl:variable--
-!--xsl:variable 
name=latex.procedure.title.stylexsl:text\subsubsection/xsl:text/xsl:variable--
 xsl:template name=latex.thead.row.entry
 xsl:text{\bfseries /xsl:textxsl:apply-templates/xsl:text}/xsl:text
 /xsl:template
-xsl:variable name=latex.book.preamblestart
-\documentclass[twoside,openright,xsl:value-of 
select=$fontsize/pt]{xslt/latex/sambadoc}
-
-\usepackage{amsmath}%
-\usepackage{amsfonts}%
-\usepackage{amssymb}
-
-\makeindex   
-
-/xsl:variable
+xsl:param name=latex.documentclassxslt/latex/sambadoc/xsl:param
+xsl:param name=latex.documentclass.bookxsl:value-of 
select=$fontsize/pt,openright,twoside/xsl:param
 xsl:param name=latex.babel.languageenglish/xsl:param
 
-xsl:template 
match=//title/filename|//title/command|//title/parameter|//title/constant
-  xsl:variable name=content
-xsl:apply-templates/
-  /xsl:variable
-  xsl:if test=$content != ''
-xsl:value-of select=$content /
-  /xsl:if
-/xsl:template
-
 /xsl:stylesheet



svn commit: samba r7474 - in branches/SAMBA_3_0/source/smbd: .

2005-06-10 Thread jra
Author: jra
Date: 2005-06-10 23:13:25 + (Fri, 10 Jun 2005)
New Revision: 7474

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

Log:
A *foul* and *disgusting* hack to ensure that, at the very lowest
level, . and .. are the first two entries returned when reading a
directory. This also means we can't seek to these offsets, but we
will never be doing that anyway (as far as I can think). The reason
we have to do this is that the NT4 explorer will happily display a
folder marked .. as a clickable folder (and probably would display
. as a clickable folder too) if these are not in positions zero
and one of the returned file list. W2K seems to have fixed this but
there are too many older systems out there... Never mind, more for
the Undocumented CIFS talk, coming to a CIFS2005 conference near
you soon :-).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/dir.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/dir.c
===
--- branches/SAMBA_3_0/source/smbd/dir.c2005-06-10 23:13:21 UTC (rev 
7473)
+++ branches/SAMBA_3_0/source/smbd/dir.c2005-06-10 23:13:25 UTC (rev 
7474)
@@ -42,6 +42,7 @@
char *dir_path;
struct name_cache_entry *name_cache;
unsigned int name_cache_index;
+   unsigned int file_number;
 };
 
 struct dptr_struct {
@@ -1074,15 +1075,35 @@
const char *n;
connection_struct *conn = dirp-conn;
 
-   SeekDir(dirp, *poffset);
+   /* Cheat to allow . and .. to be the first entries returned. */
+   if ((*poffset == 0)  (dirp-file_number  2)) {
+   if (dirp-file_number == 0) {
+   n = .;
+   } else {
+   n = ..;
+   }
+   dirp-file_number++;
+   return n;
+   } else {
+   /* A real offset, seek to it. */
+   SeekDir(dirp, *poffset);
+   }
+
while ((n = vfs_readdirname(conn, dirp-dir))) {
struct name_cache_entry *e;
+   /* Ignore . and .. - we've already returned them. */
+   if (*n == '.') {
+   if ((n[1] == '\0') || (n[1] == '.'  n[2] == '\0')) {
+   continue;
+   }
+   }
dirp-offset = SMB_VFS_TELLDIR(conn, dirp-dir);
dirp-name_cache_index = (dirp-name_cache_index+1) % 
NAME_CACHE_SIZE;
e = dirp-name_cache[dirp-name_cache_index];
SAFE_FREE(e-name);
e-name = SMB_STRDUP(n);
*poffset = e-offset= dirp-offset;
+   dirp-file_number++;
return e-name;
}
dirp-offset = -1;
@@ -1141,6 +1162,7 @@
 
/* Not found in the name cache. Rewind directory and start from 
scratch. */
SMB_VFS_REWINDDIR(conn, dirp-dir);
+   dirp-file_number = 0;
*poffset = 0;
while ((entry = ReadDirName(dirp, poffset))) {
if (conn-case_sensitive ? (strcmp(entry, name) == 0) : 
strequal(entry, name)) {



svn commit: samba r7473 - in trunk/source/smbd: .

2005-06-10 Thread jra
Author: jra
Date: 2005-06-10 23:13:21 + (Fri, 10 Jun 2005)
New Revision: 7473

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

Log:
A *foul* and *disgusting* hack to ensure that, at the very lowest
level, . and .. are the first two entries returned when reading a
directory. This also means we can't seek to these offsets, but we
will never be doing that anyway (as far as I can think). The reason
we have to do this is that the NT4 explorer will happily display a
folder marked .. as a clickable folder (and probably would display
. as a clickable folder too) if these are not in positions zero
and one of the returned file list. W2K seems to have fixed this but
there are too many older systems out there... Never mind, more for
the Undocumented CIFS talk, coming to a CIFS2005 conference near
you soon :-).
Jeremy.

Modified:
   trunk/source/smbd/dir.c


Changeset:
Modified: trunk/source/smbd/dir.c
===
--- trunk/source/smbd/dir.c 2005-06-10 22:03:33 UTC (rev 7472)
+++ trunk/source/smbd/dir.c 2005-06-10 23:13:21 UTC (rev 7473)
@@ -42,6 +42,7 @@
char *dir_path;
struct name_cache_entry *name_cache;
unsigned int name_cache_index;
+   unsigned int file_number;
 };
 
 struct dptr_struct {
@@ -1074,15 +1075,35 @@
const char *n;
connection_struct *conn = dirp-conn;
 
-   SeekDir(dirp, *poffset);
+   /* Cheat to allow . and .. to be the first entries returned. */
+   if ((*poffset == 0)  (dirp-file_number  2)) {
+   if (dirp-file_number == 0) {
+   n = .;
+   } else {
+   n = ..;
+   }
+   dirp-file_number++;
+   return n;
+   } else {
+   /* A real offset, seek to it. */
+   SeekDir(dirp, *poffset);
+   }
+
while ((n = vfs_readdirname(conn, dirp-dir))) {
struct name_cache_entry *e;
+   /* Ignore . and .. - we've already returned them. */
+   if (*n == '.') {
+   if ((n[1] == '\0') || (n[1] == '.'  n[2] == '\0')) {
+   continue;
+   }
+   }
dirp-offset = SMB_VFS_TELLDIR(conn, dirp-dir);
dirp-name_cache_index = (dirp-name_cache_index+1) % 
NAME_CACHE_SIZE;
e = dirp-name_cache[dirp-name_cache_index];
SAFE_FREE(e-name);
e-name = SMB_STRDUP(n);
*poffset = e-offset= dirp-offset;
+   dirp-file_number++;
return e-name;
}
dirp-offset = -1;
@@ -1141,6 +1162,7 @@
 
/* Not found in the name cache. Rewind directory and start from 
scratch. */
SMB_VFS_REWINDDIR(conn, dirp-dir);
+   dirp-file_number = 0;
*poffset = 0;
while ((entry = ReadDirName(dirp, poffset))) {
if (conn-case_sensitive ? (strcmp(entry, name) == 0) : 
strequal(entry, name)) {



Build status as of Sat Jun 11 00:00:02 2005

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

--- /home/build/master/cache/broken_results.txt.old 2005-06-10 
00:00:35.0 +
+++ /home/build/master/cache/broken_results.txt 2005-06-11 00:00:07.0 
+
@@ -1,111 +1,92 @@
-Build status as of Fri Jun 10 00:00:02 2005
+Build status as of Sat Jun 11 00:00:02 2005
 
 Build counts:
 Tree Total  Broken Panic 
-ccache   41 7  0 
-distcc   41 1  0 
+ccache   40 7  0 
+distcc   40 2  0 
 lorikeet-heimdal 35 11 0 
-ppp  24 1  0 
-rsync40 31 0 
-samba1  1  1 
+ppp  24 2  0 
+rsync39 7  0 
+samba0  0  0 
 samba-docs   0  0  0 
-samba4   43 20 0 
-samba_3_042 42 0 
-talloc   36 18 0 
+samba4   43 31 1 
+samba_3_042 27 0 
+talloc   36 19 0 
 tdb  37 37 0 
 
 Currently broken builds:
 Host   Tree Compiler   Status
 aix1   lorikeet-heimdal gccok/ 2/?/? 
-aix1   rsyncgccok/ok/ok/ 2
 aix1   samba4   gccok/ 2/?/? 
-aix1   samba_3_0gccok/ok/ok/ 1
 aix1   talloc   gccok/ok/ 2/?
 aix1   tdb  gccok/ 2/?/? 
 oehmesrs6k ccache   cc ok/ok/ 2/?
 oehmesrs6k distcc   cc ok/ 2/?/? 
 oehmesrs6k lorikeet-heimdal cc ok/ 2/?/? 
-oehmesrs6k rsynccc ok/ok/ok/ 2
 oehmesrs6k samba4   cc ok/ 2/?/? 
 oehmesrs6k samba_3_0cc ok/ 143/?/?
 oehmesrs6k talloc   cc ok/ok/ 2/?
 oehmesrs6k tdb  cc ok/ 2/?/? 
 lithiumlorikeet-heimdal gccok/ 2/?/? 
-lithiumrsyncgccok/ok/ok/ 2
-lithiumsamba_3_0gccok/ok/ok/ 1
+lithiumsamba4   gccok/ok/ok/ 170
 lithiumtdb  gcc 2/?/?/?  
-cyberone   rsyncgccok/ok/ok/ 2
 cyberone   samba_3_0gcc 1/?/?/?  
 cyberone   tdb  gcc 2/?/?/?  
 fusberta   lorikeet-heimdal gccok/ 2/?/? 
-fusberta   rsyncgccok/ok/ok/ 2
 fusberta   samba4   gccok/ 2/?/? 
-fusberta   samba_3_0gccok/ok/ok/ 1
 fusberta   tdb  gcc 2/?/?/?  
 samba-s390 lorikeet-heimdal gccok/ 2/?/? 
 samba-s390 samba4   gccok/ 2/?/? 
 samba-s390 samba_3_0gccok/ok/ok/ 1
 samba-s390 talloc   gccok/ 2/?/? 
 samba-s390 tdb  gcc 2/?/?/?  
-tuxrsyncgccok/ok/ok/ 2
+tuxsamba4   gccok/ok/ok/ 2
 tuxtdb  gcc 2/?/?/?  
 rhonwynsamba_3_0gccok/ok/ok/ 2
 rhonwynsamba4   gcc-4.0ok/ 2/?/? 
 rhonwynsamba_3_0gcc-4.0ok/ 2/?/? 
 rhonwynsamba4   tccok/ 2/?/? 
-superego   rsyncgccok/ok/ok/ 2
-superego   samba_3_0gccok/ok/ok/ 1
+superego   samba4   gccok/ok/ok/ 186/PANIC
 superego   tdb  gcc 2/?/?/?  
 cl012  lorikeet-heimdal gccok/ok/ok/ 2
-cl012  rsyncgccok/ok/ok/ 2
-cl012  samba_3_0gccok/ok/ok/ 1
+cl012  samba4   gccok/ok/ok/ 164
 cl012  tdb  gcc 2/?/?/?  
 dev4-003   lorikeet-heimdal gccok/ 2/?/? 
-dev4-003   rsyncgccok/ok/ok/ 2
-dev4-003   samba_3_0gccok/ok/ok/ 1
+dev4-003   samba4   gccok/ok/ok/ 170
 dev4-003   tdb  gcc 2/?/?/?  
+berks  samba4   gccok/ok/ok/ 176
 berks  samba_3_0gccok/ok/ok/ 1
 berks  tdb  gcc 2/?/?/?  
-yowiee rsyncgccok/ok/ok/ 2
 yowiee samba_3_0gcc 1/?/?/?  
 yowiee talloc   gccok/ok/ 2/?
 yowiee tdb  gcc 2/?/?/?  
-shelob rsyncgccok/ok/ok/ 2
-shelob samba_3_0gccok/ok/ok/ 1
 shelob tdb  gcc 2/?/?/?  
 shelob ccache   iccok/ok/ok/ 2
-shelob rsynciccok/ok/ok/ 2
 shelob samba_3_0iccok/ok/ok/ 1
 shelob tdb  icc 2/?/?/?  
 gc8lorikeet-heimdal gccok/ 1/?/? 
-gc8rsyncgccok/ok/ok/ 1
 

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

2005-06-10 Thread tridge
Author: tridge
Date: 2005-06-11 01:34:42 + (Sat, 11 Jun 2005)
New Revision: 7475

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

Log:
removed RPC-SAMLOGON test until we get a lighter version of it. It is
chewing far too much cpu, which is unfair on our volunteer systems

andrew, sorry about this, I think we need RPC-SAMLOGON-FULL, and make
RPC-SAMLOGON only do a basic test

Modified:
   branches/SAMBA_4_0/source/script/tests/test_rpc.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_rpc.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_rpc.sh  2005-06-10 23:13:25 UTC 
(rev 7474)
+++ branches/SAMBA_4_0/source/script/tests/test_rpc.sh  2005-06-11 01:34:42 UTC 
(rev 7475)
@@ -2,9 +2,9 @@
 
 # add tests to this list as they start passing, so we test
 # that they stay passing
-ncacn_np_tests=RPC-SPOOLSS RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON 
RPC-ALTERCONTEXT RPC-MULTIBIND
-ncalrpc_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON RPC-ALTERCONTEXT 
RPC-MULTIBIND
-ncacn_ip_tcp_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON 
RPC-ALTERCONTEXT RPC-MULTIBIND
+ncacn_np_tests=RPC-SPOOLSS RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT 
RPC-MULTIBIND
+ncalrpc_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT 
RPC-MULTIBIND
+ncacn_ip_tcp_tests=RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT 
RPC-MULTIBIND
 
 if [ $# -lt 4 ]; then
 cat EOF



svn commit: samba r7476 - in branches/SAMBA_4_0/source/lib/socket: .

2005-06-10 Thread tridge
Author: tridge
Date: 2005-06-11 02:26:53 + (Sat, 11 Jun 2005)
New Revision: 7476

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

Log:
ensure dgram sockets are created non-blocking. As they usually skip
the connect() stage, we were missing this

Modified:
   branches/SAMBA_4_0/source/lib/socket/socket.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/socket.c
===
--- branches/SAMBA_4_0/source/lib/socket/socket.c   2005-06-11 01:34:42 UTC 
(rev 7475)
+++ branches/SAMBA_4_0/source/lib/socket/socket.c   2005-06-11 02:26:53 UTC 
(rev 7476)
@@ -69,6 +69,12 @@
(*new_sock)-flags |= SOCKET_FLAG_TESTNONBLOCK;
}
 
+   /* we don't do a connect() on dgram sockets, so need to set
+  non-blocking at socket create time */
+   if (!(flags  SOCKET_FLAG_BLOCK)  type == SOCKET_TYPE_DGRAM) {
+   set_blocking(socket_get_fd(*new_sock), False);
+   }
+
talloc_set_destructor(*new_sock, socket_destructor);
 
return NT_STATUS_OK;



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

2005-06-10 Thread tpot
Author: tpot
Date: 2005-06-11 02:39:14 + (Sat, 11 Jun 2005)
New Revision: 7477

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

Log:
Add MPR_TYPE_PTR to ejs_typeof().

Modified:
   branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c


Changeset:
Modified: branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c
===
--- branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c  2005-06-11 02:26:53 UTC 
(rev 7476)
+++ branches/SAMBA_4_0/source/scripting/ejs/smbcalls.c  2005-06-11 02:39:14 UTC 
(rev 7477)
@@ -44,7 +44,8 @@
{ MPR_TYPE_OBJECT,   object },
{ MPR_TYPE_FUNCTION, function },
{ MPR_TYPE_STRING,   string },
-   { MPR_TYPE_STRING_CFUNCTION, function }
+   { MPR_TYPE_STRING_CFUNCTION, function },
+   { MPR_TYPE_PTR,  C pointer }
};
int i;
const char *type = NULL;



  1   2   >