[Samba] No group in usermanager for NT (usrmgr.ese)

2006-09-21 Thread emmanuel musso
hello
I'm running debian testing, winth samba as P.D.C, with passdb backend = ldapsam

ii  samba  3.0.23c-1  a LanManager-like file and printer server fo
ii  slapd  2.3.25-1   OpenLDAP server (slapd)
ii  smbldap-tools  0.9.2-3Scripts to manage Unix and Samba accounts st
ii  libnss-ldap251-5  NSS module for using LDAP as a naming servic
no libpam_ldap

Since I updated from samba 3.022 to 3.023c, i can't see any group with
usrmgr.exe (User manager for windows NT). I see all users, but zero group.
linux command like net groupmap list, smbldap-groupshow, getent group, or net
rpc user info give me good informations

net groupmap list
.
Backup Operators (S-1-5-32-551) - Backup Operators
Replicators (S-1-5-32-552) - Replicators
1a (S-1-5-21-1013494363-2106538438-1688464621-5003) - 1a
etu (S-1-5-21-1013494363-2106538438-1688464621-5005) - etu
.

smbldap-groupshow 1a
dn: cn=1a,ou=Groups,dc=ge2i,dc=iut-tlse3,dc=fr
objectClass: top,posixGroup,sambaGroupMapping
cn: 1a
gidNumber: 2001
sambaSID: S-1-5-21-1013494363-2106538438-1688464621-5003
sambaGroupType: 2
displayName: 1a
memberUid: g9_abel,g9_art,g9_aude,


getent group

Backup Operators:*:551:
Replicators:*:552:
1a:*:2001:g9_abel,g9_ar

net -U admin rpc user info g1_aude
Password:
Domain Users
1a
etu

only usrmgr have problems.

I know there is a patch, but i think it's integrated in samba 3.0.23 c

Any ideas ?
-- 
Emmanuel musso
technicien informatique
I.U.T. Paul Sabatier
Dépt Génie électrique 0562258241
Service informatique 0562258025






This message was sent using IMP, the Internet Messaging Program.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] create_builtin_(administrators|users): Failed to create (Administrators|Users)

2006-09-21 Thread Bert van de Grift
Hi,

Since I upgraded Samba from 3.0.23b,1 to 3.0.23c,1 on my FreeBSD
6.2-PRERELEASE system I've the following messages in my logfile:

Sep 20 17:02:46 snoozy smbd[58430]: create_builtin_administrators:
Failed to create Administrators
Sep 20 17:02:46 snoozy smbd[58430]: create_builtin_users: Failed to
create Users

Anybody knows a fix?

Thanks in advance,

-- 
Bert van de Grift
http://www.vdgrift.org
GPG Key: http://www.vdgrift.org/0x306DE560.asc
Fingerprint: 3E79 1F71 6699 619E 8BCC  B21A E1ED 76E0 306D E560
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] grant access to a file inside a forbidden directory

2006-09-21 Thread Toni Casueps


We have a directory where only one person can enter, but there is a file 
inside which needs to be accessed by other people (that person doesn't want 
to put that file in a common directory).


I have found that if I make a hard link to that file it can be accessed, if 
the hard link and the directory where it lies have the right permissions. 
But hard links have a problem, they get unlinked when they are written. I 
guess the program that writes it instead of updating the file it creates a 
new one and then deletes the old one, which is the one I linked, so that 
there are two different files after that, and not one. I think a symlink 
wouldn't do this but the symlink can't enter the directory because of the 
permissions.
I thought of putting that file into a separate subdirectory and linking to 
that directory, but I can't hard link a directory.


Can you think of any other possibilities?


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


[Samba] net command and modifying groups in AD

2006-09-21 Thread Norbert Furlani

Hi,

On my SuSE 10.1 linux server, I have successfully joined an AD server 
(which I setup) and am able to create users and groups etc.. on the ADS 
using the net command. My problem is I cannot (or at least I don't know 
how) to add/remove users to groups on the AD from my linux box. Is it 
possible to do this as I can't seem to find any literature on this? I am 
running samba (and client) version 3.0.22.


If anyone has any other ideas on how to manipulate group memberships 
from Linux on an AD server, that would be also greatly appreciated.


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


[Samba] Fw: Poor performance getting lots of small files with WinXP/Win2k vs OS2

2006-09-21 Thread Alain . Gorlier
Hi,
We're doing some of performance tests with Linux Samba v3.
We're comparing WinXP/Win2k clients vs OS2 clients accessing a samba 
server.

For one test, we're coping 10.000 small files.
Let's say, we run the command copy \\sambaserver\1files\*.* 
c:\data\1files

With an OS2 client it takes 23 seconds to complete.
With an Windows client it takes  460 seconds to complete.

Doing a Ethereal capture, the network usage is very different.
OS2 :
No. TimeSourceDestination   Protocol 
Info

 15 0.58876610.16.43.123  10.240.47.86  SMB Open 
AndX Request, Path: \1\0511_3008.IN; Read AndX, FID: 0x, 4096 
bytes at offset 0
 16 0.58900810.240.47.86  10.16.43.123  SMB Open 
AndX Response, FID: 0x2a81; Read AndX, FID: 0x, 74 bytes
 17 0.58925110.16.43.123  10.240.47.86  SMB Close 
Request, FID: 0x2a81
 18 0.58949410.240.47.86  10.16.43.123  SMB Close 
Response

WinXP SP2:


Trace Windows XP:
No. TimeSourceDestination   Protocol 
Info
 16 1.00173410.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 17 1.00196810.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 18 1.00245410.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 19 1.00269710.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 20 1.00294010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000
 21 1.00318410.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 22 1.00342710.16.37.96   10.240.47.86  SMB Trans2 
Request, FIND_FIRST2, Pattern: \1000\0D02_1707.IN
 23 1.00367010.240.47.86  10.16.37.96   SMB Trans2 
Response, FIND_FIRST2, Files: 0D02_1707.IN
 24 1.00391310.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 25 1.00415710.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 26 1.00440010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Standard Info, Path: 
\1000\0D02_1707.IN
 27 1.00440210.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 28 1.00488610.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 29 1.00512910.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf0
 30 1.00537310.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf0, Query File Internal Info
 31 1.00561510.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 32 1.00610210.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf0, Query File Basic Info
 33 1.00610410.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 34 1.00634510.16.37.96   10.240.47.86  SMB Trans2 
Request, SET_FILE_INFO, FID: 0x1cf0
 35 1.00658910.240.47.86  10.16.37.96   SMB Trans2 
Response, SET_FILE_INFO
 36 1.00707510.16.37.96   10.240.47.86  SMB Read 
AndX Request, FID: 0x1cf0, 222 bytes at offset 0
 37 1.00731810.240.47.86  10.16.37.96   SMB Read 
AndX Response, FID: 0x1cf0, 222 bytes
 38 1.00780410.16.37.96   10.240.47.86  SMB Close 
Request, FID: 0x1cf0
 39 1.00829210.240.47.86  10.16.37.96   SMB Close 
Response
 40 1.00829410.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 41 1.00877810.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf1
 42 1.00878010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf1, Query File Basic Info
 43 1.00902110.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 44 1.00926310.16.37.96   10.240.47.86  SMB Close 
Request, FID: 0x1cf1
 45 1.00975010.240.47.86  10.16.37.96   SMB Close 
Response
 46 1.00999410.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 47 1.01023610.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf2
 48 1.01047910.16.37.96   10.240.47.86  SMB Read 
AndX Request, FID: 0x1cf2, 222 bytes at offset 0
 49 1.01072310.240.47.86  10.16.37.96 

[Samba] winbindd + mod_ntlm_winbind, why do we need net join ... ?

2006-09-21 Thread Juan Rodriguez

Hello,

I would like to use NTLM authentication on my Apache2 server, and I've found
out this link which works very well for me,
http://download.samba.org/ftp/unpacked/lorikeet/mod_ntlm_winbind

I'm newbie to samba, and to make this stuff work, I had to execute
net join -S DC -U Admin, because winbindd complained about
did we join ?... (all of this can be found on man winbindd).

I'm wondering why do you have to exec net join.
Can't winbindd forward all authentication requests to the domain
controller without doing nej join ? Isn't there other options ?

I've checked Apache2::AuthenNTLM and this module seems
to be able to authenticate NTLM requests without joining the DC.
Maybe I am wrong, any explanation about all this would be very
useful. I plan to use NTLMv2 and the perl module doesn't do that so
that's the reason I would like to work with mod_ntlm_winbind
(without net join)

I'm looking forward to your replies. Thanks in advance.

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


[Samba] Foreign SID's and winbind use default domain

2006-09-21 Thread Mikael M. Hansen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi

In the Samba HOWTO (ch. 24 section 24.3.2) is written

When winbind is used, the default condition is
that the local user george will be treated as the account DOMAIN\george
and the foreign (non-member of the domain) account will be treated as
MACHINE\george because each has a different SID.

I have enable 'winbind use default domain' in smb.conf in the hope that
it changes the above stated behaviour to treat local user george as
DOMAIN\george

Is this correct to hope for (it seems to work in some cases)?


- --
MVH / Best regards

Mikael M. Hansen
IT-administrator
Computer Science Dept.  Email: [EMAIL PROTECTED]
Aalborg University  Phone: +45 9635 8905
Fredrik Bajers Vej 7E   Room: E2-121
DK-9220 Aalborg, Denmark

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

iD8DBQFFEnTD1ZklRSLjnxgRAnXGAJ9+9jvRJ+aRA9lLRYPWLNqxkeMb+QCaAuDR
7F5Ki4BHn7ruMrln0486OPc=
=ss8V
-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] Unable to connect samba server using hostname [2]

2006-09-21 Thread DavidDST

Hi,

I've got th same problem than in this tread (no solution found) :

http://lists.samba.org/archive/samba/2005-November/113914.html

except I've got the problem on all stations.

I am unable to connect to samba server using it's hostname, whereas it's 
work with IP address. When I use the hostname, Samba always request for 
login/password.


[2006/09/21 12:59:04, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(500)
  NativeOS=[Windows Server 2003 3790 Service Pack 1] NativeLanMan=[]
[2006/09/21 12:59:04, 3] smbd/sesssetup.c:reply_spnego_negotiate(385)
  Got OID 1 2 840 48018 1 2 2
[2006/09/21 12:59:04, 3] smbd/sesssetup.c:reply_spnego_negotiate(385)
  Got OID 1 2 840 113554 1 2 2
[2006/09/21 12:59:04, 3] smbd/sesssetup.c:reply_spnego_negotiate(385)
  Got OID 1 3 6 1 4 1 311 2 2 10
[2006/09/21 12:59:04, 3] smbd/sesssetup.c:reply_spnego_negotiate(388)
  Got secblob of size 1201
[2006/09/21 12:59:04, 10] passdb/secrets.c:secrets_named_mutex(697)
  secrets_named_mutex: got mutex for replay cache mutex
[2006/09/21 12:59:04, 10] libads/kerberos_verify.c:ads_verify_ticket(310)
  ads_verify_ticket: enc type [16] failed to decrypt with error Bad 
encryption type

[2006/09/21 12:59:04, 3] libads/kerberos_verify.c:ads_verify_ticket(310)
  ads_verify_ticket: enc type [3] failed to decrypt with error Decrypt 
integrity check failed

[2006/09/21 12:59:04, 10] libads/kerberos_verify.c:ads_verify_ticket(310)
  ads_verify_ticket: enc type [1] failed to decrypt with error Bad 
encryption type

[2006/09/21 12:59:04, 10] passdb/secrets.c:secrets_named_mutex_release(709)
  secrets_named_mutex: released mutex for replay cache mutex
[2006/09/21 12:59:04, 3] libads/kerberos_verify.c:ads_verify_ticket(317)
  ads_verify_ticket: krb5_rd_req with auth failed (Bad encryption type)
[2006/09/21 12:59:04, 1] smbd/sesssetup.c:reply_spnego_kerberos(172)
  Failed to verify incoming ticket!

Samba has been correctly register in the domain.
Samba use Windows 2003 server as NTP server.
I could obtain user list and group list from winbind.

I could resolve workstations name from Samba server. There is no IP 
restriction on Samba server.


When I use IP address, log is different :

[2006/09/21 13:04:23, 3] smbd/sesssetup.c:reply_sesssetup_and_X_spnego(500)
  NativeOS=[Windows 2002 Service Pack 2 2600] NativeLanMan=[Windows 
2002 5.1]

[2006/09/21 13:04:23, 3] smbd/sesssetup.c:reply_spnego_negotiate(385)
  Got OID 1 3 6 1 4 1 311 2 2 10
[2006/09/21 13:04:23, 3] smbd/sesssetup.c:reply_spnego_negotiate(388)
  Got secblob of size 40
[2006/09/21 13:04:23, 5] auth/auth.c:make_auth_context_subsystem(484)
  Making default auth method list for security=ADS
[...]

I've got something like auth/auth.c:make_auth_context_subsystem with 
IP and passdb/secrets.c:secrets_named_mutex with hostname.


Any ideas ?

Kindest regards,

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


[Samba] [SOLVED]Re: Problem with large files

2006-09-21 Thread Valerio daelli

On 9/19/06, Valerio daelli [EMAIL PROTECTED] wrote:

On 9/19/06, Valerio daelli [EMAIL PROTECTED] wrote:

 Hi
 we have samba 3.0.14a on FreeBSD 5.4.
 We tried with different kind of locking and oplocks (both enabled and 
disabled).
 If we try to copy from a Windows XP client a file larger than 3g, we get 
these error:



Hi
we solved removing the option 'strict allocate=yes' from the smb.conf file.
Now everything works as expected.
Bye

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


[Samba] Other domain sequence numbers are -1

2006-09-21 Thread Trimble, Ronald D
Everyone,

I have configured a new SLES 10 server exactly the same as I
had previously configured a SLES 9 server.  The only difference is the
version of samba.  On the SLES 10 server, I am running the 3.0.23c
level, the SLES 9 server is behind a little.  My problem is with
connecting to other AD domains.  Only my default domain has a valid
sequence number.  All the other domains are showing up as a -1.  This
information was retrieved from the logs since the wbinfo -sequence
command times out.

Here are the relevant pieces of information.  Can someone
suggest what I may be doing wrong?  This is very confusing to me since
it works perfectly on my SLES 9 server and I copied the configuration
from there.

 

Thanks,
Ron

 

From krb5.conf:

 

[libdefaults]

default_tgs_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC

default_tkt_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC

preferred_enctypes = DES-CBC-CRC DES-CBC-MD5 RC4-HMAC

default_realm = NA.UIS.UNISYS.COM

dns_lookup_kdc = true

 

[realms]

NA.UIS.UNISYS.COM = {

kdc = 192.63.225.67:88

admin_server = 192.63.225.67:749

}

 

EU.UIS.UNISYS.COM = {

kdc = 192.61.146.133:88

admin_server = 192.61.146.133:749

}

 

AP.UIS.UNISYS.COM = {

kdc = 192.61.146.132:88

admin_server = 192.61.146.132:749

}

 

LAC.UIS.UNISYS.COM = {

kdc = 192.61.146.131:88

admin_server = 192.61.146.131:749

}

 

[domain_realm]

.na.uis.unisys.com = NA.UIS.UNISYS.COM

na.uis.unisys.com = NA.UIS.UNISYS.COM

.eu.uis.unisys.com = EU.UIS.UNISYS.COM

eu.uis.unisys.com = EU.UIS.UNISYS.COM

.ap.uis.unisys.com = AP.UIS.UNISYS.COM

ap.uis.unisys.com = AP.UIS.UNISYS.COM

.lac.uis.unisys.com = LAC.UIS.UNISYS.COM

lac.uis.unisys.com = LAC.UIS.UNISYS.COM

 

From smb.conf:

 

[global]

   workgroup = NA

   realm = NA.UIS.UNISYS.COM

   netbios name = M1016

   encrypt passwords = yes

   security = ADS

   password server = 192.63.225.67 192.63.225.68

   passdb backend = smbpasswd

   log level = 2 winbind:10 ads:10 auth:10

   syslog = 0

   log file = /var/log/samba/%m.log

   max log size = 5000

   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   winbind use default domain = no

   winbind uid = 16777216-33554431

   winbind gid = 16777216-33554431

   winbind enum users = no

   winbind enum groups = no

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


Re: [Samba] Excel Save Problem

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/20/2006 04:37 PM, Christian Nekola escreveu:
 a upgrade is a nice idea ;-)

Indeed. And it is a recommended one. ;)


 the problem is, the version 3.0.10 is the default red hat enterprise 4
 packet.
 redhat doesn't offer any updates.

Hmmm, maybe FC compatible RPMs? Or Samba RPMs?


 today i want update to 3.0.14a with a rpm packet, but there were too
 many failed dependencies :-(
 
 now i think, i build samba myself, but i don't  know which problems can
 happen if i do this.
 the server is in production

3.0.14 and 3.0.2x have big changes, you should read
the NEWS/Changes about versions and check how it could
impact you and your server.


 my running smb.conf:
 #=== Global Settings
 =
 
 [global]
  server string = Samba Server
  workgroup = xionitag
  netbios name = miraculix
  interfaces = 10.1.1.203
  smb ports = 139
  passdb backend = tdbsam
 
  #---Browsing und WINS-Server
  os level = 65
  local master = yes
  domain master = yes
  preferred master = yes
  wins support = no
  name resolve order = lmhosts host dns
  dns proxy = no
 
  #---Domaenen-Login,  Login-Skript, Profil-Pfad ---
  domain logons = yes
  logon script = login.cmd
  logon home = \\%L\%U
  logon drive = I:
 
  username map = /etc/samba/smbusers
  add user script  = /usr/local/bin/useradd -m %u
  delete user script  = /usr/sbin/userdel -r %u
  add group script = /usr/sbin/groupadd %g
  delete group script = /usr/sbin/groupdel %g
  add user to group script = /usr/sbin/usermod -G %g %u
  add machine script = /usr/sbin/useradd -s /bin/false -d /dev/null -g
 xion %u
 
  #---Log-Dateien anlegen-
  log file = /var/log/samba/%m.log
  # all log information in one file
  #log file = /var/log/samba/smbd.log
  max log size = 5000
 
  #---Druckereinstellungen--
  printcap name = cups
  load printers = yes
  printing = cups
  cups options = raw
 
  #Zeit-Server-
  time server = yes
 
  #Tuning Options
  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

Maybe you can turn the SO_KEEPALIVE, *maybe*. :)


  # socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  getwd cache = yes
  read raw = yes
  write raw = yes
  dead time = 5
  keepalive = 150

These are default options of a stock samba or did
you tune it? Maybe you could revert for the default
options (check the manpage for reference).

[...]

Good luck. Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFEp4ECj65ZxU4gPQRAj9cAKCXGLs4XyXTexREoOQ9lcTlHWb1NQCfSs4U
VCjYz5JP8zL+1Y+p5DqO2CE=
=5WZ6
-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] Hung XFS filesystems on Samba server

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 01:17 PM, Weber, Charles (NIH/NIA/IRP) [C] escreveu:
 This is probably a hardware problem but I am posting here in case anyone
 else has seen it or it is actually software.
 If you have seen anything like it please let me know.
 Chuck

[...]

 Software:
 I started with Fedora Core2 X86_64 and have worked my way to Fedora Core
 5 and samba 3.0.22-1.fc5, acl 2.2.34 and xfsprogs 2.7.3-1.2.1. No
 software changes have made any difference that I can see in this
 problem. Samba shares support ACLs.  
 Hardware possiblities:
 This has occurred in the same 2 disk carriers. I could change the disk
 carriers or U320 modules. I worry also about the mix of U320 and U3
 disks. I setup a test server dl385 with a 6404 from the problem server
 and a disk carrier with mix of drives. I could not recreate the problem.
 Software possiblities:
 Kernel, Samba, ACLs and XFS. But I have tried many versions and not seen
 any logged errors or change in behavior.

I don't have such powerful infrastructure, I have 0.6 TB
using XFS and I don't have any problems. But I'm using Debian
Sarge with Samba 3.014a and Debian Kernel. But maybe this
information could be an useful reference, at least I hope so. ;)

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFErCcCj65ZxU4gPQRAuhaAJ9tamwV7H8cDXuA6tK33TR6Bke/8wCeNrck
GA1/XWU89kd7q8moEfOTCdw=
=AixS
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] re: smb.conf

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 12:55 PM, Gerald Humphreys escreveu:
 Hi guys

Don't forget the girls... they are always around. :)


 My client is really bugging me to get this working.
 I create a folder called private and added this into my smb.conf file,
 but when i browse to the folder private using wendy or pierre i  get
 access denied.  soneone told me i must make sure the filesystem of the
 folder private is set to nobody. Is that correct and how will i go on by
 doing this.

Who is the owner (and group) of /home/samba/private?
What are the groups of pierre and wendy?


 [private]
   writeable = yes
   public = no
   guest ok = no
   path = /home/samba/private
   valid users = pierre, wendy
   write list = pierre, wendy
   force user = nobody

If you use force user than you need to proper setup the
owner and group on the filesystem.


 Regards
 Gerald

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFErEhCj65ZxU4gPQRAh/7AJ9gOuHwM0eLIH0R68QMLio3spmalgCdHUEC
tGTsgXjU83wW5bSmDfrRGN4=
=wBsF
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[BUG?] Re: [Samba] Adding Printer via Run vs Printers and Faxes

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 12:36 PM, Patrick McLean escreveu:
 Hi
 
 I am having a problem where if I try to add a printer by simply typing
 \\server\printer in the Run dialog, I get a rather verbose error message
 ending in Incorrect Function. If I add the printer with Add Printer
 in Printers and Faxes everything works fine.
 
 (It looks like the same problem mentioned here:
 http://lists.samba.org/archive/samba/2006-September/125147.html)
 
 I am running samba 3.0.23c.
 I can provide full log level = 10 logs of both methods of adding the
 printer, my smb.conf and any other information that you might need.
 
 
 PS: Please keep me on the CC as I am not subscribed to this list.

It could be a bug, I'm changing the Subject and our beloved
Samba Developers can see it, but it was working in any early
version of Samba (before 3.0.23)?

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFErGvCj65ZxU4gPQRAsqDAKCselWGo8tdR5H/n2vC1juy1jM3dACcDxbQ
RQdAhLq4iwGJsyMCGyi/q3k=
=0kLK
-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: [BUG?] Re: [Samba] Adding Printer via Run vs Printers and Faxes

2006-09-21 Thread Patrick McLean

Felipe Augusto van de Wiel wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 12:36 PM, Patrick McLean escreveu:

Hi

I am having a problem where if I try to add a printer by simply typing
\\server\printer in the Run dialog, I get a rather verbose error message
ending in Incorrect Function. If I add the printer with Add Printer
in Printers and Faxes everything works fine.

(It looks like the same problem mentioned here:
http://lists.samba.org/archive/samba/2006-September/125147.html)

I am running samba 3.0.23c.
I can provide full log level = 10 logs of both methods of adding the
printer, my smb.conf and any other information that you might need.




It could be a bug, I'm changing the Subject and our beloved
Samba Developers can see it, but it was working in any early
version of Samba (before 3.0.23)?


I haven't tried it in earlier versions.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] administrative shares

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 07:39 AM, Luca Ferrari escreveu:
 Hi all,
 I cannot find a good description of how to use the windows administrative 
 shares. 

If you find it, let us all know about it. :-)


 Since I'd like to mount them from a Linux box, using samba, to 
 perform backup of the user client, I'd like to know how can I 
 access them. In particular, in a computer where I've got a
 single user, without password, what are the share credentials?
 And how can I set permissions for such share? Any good document?

You should use something like:

\\server\c$


When accessing use the Administrator account, something
like the below line should work:

$ smbclient -U Administrator -L \\server\c$


You can't do lots of things with administrative shares,
in some cases you can't change it (and you can't unshare it).
The permissions usually point to the Domain Administrators and
Machine Administrators.


 Thanks,
 Luca

For backups, search cwrsync, is a nice tool that allow you
to run rsync in Windows Machines, it could really help you out. :)

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFErMACj65ZxU4gPQRAlbWAJ9yRPR7RAbBoryCHXjSU4JpewZswwCdEL5b
qSjbaNEz01nfE8ZoJEtdGJg=
=n1e6
-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] workgroup drive mapping

2006-09-21 Thread Felipe Augusto van de Wiel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 09/19/2006 06:28 AM, Rob Shepherd escreveu:
 Hi All,
 
 I have samba serving homes and group shares in my workgroup. 30% of
 client systems are portables and spend 50% of their time off site.
 Others are fixed single user workstations.
 
 I have no need to operate a domain, however what options do I have to
 simplify mapping drives once local network or VPN access is restored.
 
 Is there some logon script type stuff I can use just for the workgroup?
 or some windows client software?

I see two alternatives (at least):

1) Windows 2000 and XP should be able to deal with online/offline
   shares automagically

2) DOS Scripts to remap the share using 'net use'.


 Thanks
 Rob


Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]
Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
http://www.paranacidade.org.br/   Phone: (+55 41 3350 3300)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFFErNgCj65ZxU4gPQRAr1LAJ4gDTRFZ4V+0c5qn1/QssJex+79AACgo1eJ
FDmSdjc75nlKcSf4xk5j50U=
=4Zl2
-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: winbindd + mod_ntlm_winbind, why do we need net join ... ?

2006-09-21 Thread Juan Rodriguez

On 9/21/06, Juan Rodriguez [EMAIL PROTECTED] wrote:


Hello,

I would like to use NTLM authentication on my Apache2 server, and I've
found
out this link which works very well for me,
http://download.samba.org/ftp/unpacked/lorikeet/mod_ntlm_winbind

I'm newbie to samba, and to make this stuff work, I had to execute
net join -S DC -U Admin, because winbindd complained about
did we join ?... (all of this can be found on man winbindd).



I've managed to avoid this message using:
net rpc getsid, but then I get the following error when I try to
authenticate
through mod_auth_winbind:

(this is the output of winbindd)
...
process_request: request fn AUTH_CRAP
[11189]: pam auth crap domain: mydomain user: myuser
is_myname(mydomain) returns 0
secrets_fetch failed!
get_trust_pw: could not fetch trust account password for domain mydomain
could not open handle to NETLOGON pipe (error:
NT_STATUS_CANT_ACCESS_DOMAIN_INFO)




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


[Samba] Failed to add computers to domain since samba 3.0.23

2006-09-21 Thread Jui-Nan Lin

Dear All,

I have a Samba PDC, backend with LDAP. After I upgrade samba from
3.0.22 to 3.0.23c, I cannot add any computer into this domain. The log
is showed below:

[2006/09/21 23:04:25, 0] auth/auth_util.c:create_builtin_administrators(785)
 create_builtin_administrators: Failed to create Administrators
[2006/09/21 23:04:25, 0] auth/auth_util.c:create_builtin_users(751)
 create_builtin_users: Failed to create Users
[2006/09/21 23:04:25, 0] auth/auth_util.c:create_builtin_administrators(785)
 create_builtin_administrators: Failed to create Administrators
[2006/09/21 23:04:25, 0] auth/auth_util.c:create_builtin_users(751)
 create_builtin_users: Failed to create Users

Do I need to create some group mapping? Can I map Domain Admins and
Administrators to the same unix group?

Thank you in advance.

With Best Regards,

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


[Samba] Winbindd 3.0.23c crash after 'getent group'

2006-09-21 Thread roro GRONAN

Hi list,
I've just upgrade my current samba config to 3.0.23c on Suse 9.1. x86

I join my active directory 2003 domain and 'getent passwd' works fine but 
each time I run 'getent group' winbind crash

I deleted the winbindd_cache.tdb but nothing better
wbinfo -u / wbinfo -g works
wbinfo -t tells checking the trust secret via RPC calls succeeded

Can someone help me I try a lot of thing but I'm still here!
Thank you

this is the log for:
echo   /var/log/samba/log.winbindd; winbindd -d3; getent passwd; getent 
group

--
[2006/09/21 18:09:57, 1] nsswitch/winbindd.c:main(953)
 winbindd version 3.0.23c started.
 Copyright The Samba Team 2000-2004
[2006/09/21 18:09:57, 3] param/loadparm.c:lp_load(4945)
 lp_load: refreshing parameters
[2006/09/21 18:09:57, 3] param/loadparm.c:init_globals(1410)
 Initialising global parameters
[2006/09/21 18:09:57, 3] param/params.c:pm_process(572)
 params.c:pm_process() - Processing configuration file 
/etc/samba/smb.conf

[2006/09/21 18:09:57, 3] param/loadparm.c:do_section(3687)
 Processing section [global]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [homes]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [users]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [groups]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [pdf]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [printers]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [print$]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [c$]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [commun]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [domain_master_commun]
[2006/09/21 18:09:57, 2] param/loadparm.c:do_section(3704)
 Processing section [web]
[2006/09/21 18:09:57, 3] param/loadparm.c:lp_add_ipc(2629)
 adding IPC service
[2006/09/21 18:09:57, 2] lib/interface.c:add_interface(81)
 added interface ip=192.168.3.5 bcast=192.168.3.255 nmask=255.255.255.0
[2006/09/21 18:09:57, 2] lib/interface.c:add_interface(81)
 added interface ip=192.168.3.5 bcast=192.168.3.255 nmask=255.255.255.0
[2006/09/21 18:09:57, 2] lib/tallocmsg.c:register_msg_pool_usage(61)
 Registered MSG_REQ_POOL_USAGE
[2006/09/21 18:09:57, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
 Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2006/09/21 18:09:57, 2] nsswitch/winbindd_util.c:add_trusted_domain(175)
 Added domain DOMAIN DOMAIN.COM S-1-5-21-1275210071-1343024091-725345543
[2006/09/21 18:09:57, 2] nsswitch/winbindd_util.c:add_trusted_domain(175)
 Added domain COMPIERE  S-1-5-21-1073812646-762281468-2107077839
[2006/09/21 18:09:57, 2] nsswitch/winbindd_util.c:add_trusted_domain(175)
 Added domain BUILTIN  S-1-5-32
[2006/09/21 18:09:57, 3] 
nsswitch/winbindd_misc.c:winbindd_interface_version(474)

 [0]: request interface version
[2006/09/21 18:09:57, 3] 
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(507)

 [0]: request location of privileged pipe
[2006/09/21 18:09:57, 3] 
nsswitch/winbindd_user.c:winbindd_setpwent_internal(432)

 [0]: setpwent
[2006/09/21 18:09:57, 3] nsswitch/winbindd_user.c:winbindd_getpwent(622)
 [0]: getpwent
[2006/09/21 18:09:57, 3] lib/util.c:fcntl_lock(1965)
 fcntl_lock: lock failed at offset 0 count 1 op 13 type 0 (Resource 
temporarily unavailable)

[2006/09/21 18:09:58, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(91)
 cm_get_ipc_userpass: Retrieved auth-user from secrets.tdb 
[DOMAIN\Administrator]

[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(723)
 Doing spnego session setup (blob length=115)
[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(748)
 got OID=1 2 840 48018 1 2 2
[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(748)
 got OID=1 2 840 113554 1 2 2
[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(748)
 got OID=1 2 840 113554 1 2 2 3
[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(748)
 got OID=1 3 6 1 4 1 311 2 2 10
[2006/09/21 18:09:58, 3] libsmb/cliconnect.c:cli_session_setup_spnego(757)
 got [EMAIL PROTECTED]
[2006/09/21 18:09:58, 2] libsmb/cliconnect.c:cli_session_setup_kerberos(546)
 Doing kerberos session setup
[2006/09/21 18:09:58, 3] libsmb/clikrb5.c:ads_cleanup_expired_creds(488)
 ads_cleanup_expired_creds: Ticket in ccache[MEMORY:cliconnect] expiration 
Fri, 22 Sep 2006 04:09:58 CEST

[2006/09/21 18:09:58, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081)
 rpc_pipe_bind: Remote machine domain_master pipe \lsarpc fnum 0x800d bind 
request returned ok.

[2006/09/21 18:09:58, 3] rpc_client/cli_pipe.c:rpc_pipe_bind(2081)
 rpc_pipe_bind: Remote machine domain_master pipe \lsarpc fnum 0x800e bind 
request returned 

Re: [Samba] How do I hide [Homes] share?

2006-09-21 Thread Jon Theil Nielsen

I don't know if I can actually make an attachement, but I'll try. Otherwise,
I'll put it into the text message next time.

Best regards, Jon



On 09/20/2006 01:16 PM, Jon Theil Nielsen escreveu:

 I have setup a samba pdc for my domain and it's working fine. The users
 also get a network share as I would like. But when I go to the network
 neighborhood, I see both the users home directory but also a Homes
 share. As far as I can see, the content is the same, but I don't like
 that way to do it. Is there a way to only show the home directory?

Jon, something sounds wrong here. Could you please attach
your smb.conf and the version of your Samba and your clients so we
can have more info to try to help you?

[homes] share is usually hidden.


 Best regards, Jon

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]

 [global]
workgroup = MFL
server string = MFLSERVER2
log level = 10
logon script = netlogon.bat
logon path =
logon drive = H:
domain logons = Yes
os level = 80
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
idmap uid = 1-2
idmap gid = 1-2

[NETLOGON]
browseable = no
path = /usr/local/lib/samba/netlogon
available = no

[homes]
comment = Home directory on server
writeable = yes
delete readonly = yes
user = %
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

[Samba] current master browser = UNKNOWN / failing WINS test #1 on 3.0.23c

2006-09-21 Thread Dan
I am having trouble with one of my samba PDC's.  It does not recognize 
itself as the domain master browser even though it is set to be so.  I 
can not add machines to this domain and I suspect this is why.   Has 
anybody seen this or know what causes it?   Notice this:


   DOMAIN_ALBANY(3) current master browser = ALBANY_PDC
   DOMAIN_NYC(2) current master browser = NYC_PDC
   DOMAIN_UK(1) current master browser = UNKNOWN

but right above it there is

  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC

So I am lost as to what is going on.

Here is the the coorsponding part of the nmbd log:

[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.11) on port 138
[2006/09/21 12:35:25, 5] nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 10.1.0.12.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 IP 
10.10.20.1 to *00 IP 10.1.0.12

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.12) on port 138
[2006/09/21 12:35:25, 5] nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 0.0.0.0.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 IP 
10.10.20.1 to *00 IP 0.0.0.0

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (0.0.0.0) on port 138
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC
   UK_PDC 408c9b0b (UK PDC)
   PAULP4 40011207 ()
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  UNICAST_SUBNET: netmask= 10.10.20.1:
   DOMAIN_ALBANY(3) current master browser = ALBANY_PDC
   DOMAIN_NYC(2) current master browser = NYC_PDC
   DOMAIN_UK(1) current master browser = UNKNOWN
   UK_PDC 40899b0b (UK PDC)
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK on subnet 
UNICAST_SUBNET: found.
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK on subnet 
UNICAST_SUBNET: found.

[2006/09/21 12:35:25, 10] lib/util_sock.c:read_udp_socket(294)
 read_udp_socket: lastip 10.10.20.1 lastport 138 read: 176
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:read_packet(755)
 Received a packet of len 176 from (10.10.20.1) port 138
[2006/09/21 12:35:25, 7] nmbd/nmbd_packets.c:listen_for_packets(1833)
 discarding own dgram packet from 10.10.20.1:138
[2006/09/21 12:35:25, 9] nmbd/nmbd_namelistdb.c:find_name_on_subnet(127)
 find_name_on_subnet: on subnet 10.10.20.1 - found name DOMAIN_UK1d 
source=2

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:process_dgram(1270)
 process_dgram: datagram from UK_PDC00 to DOMAIN_UK1d IP 10.10.20.1 
for \MAILSLOT\BROWSE of type 1 len=39

[2006/09/21 12:35:25, 8] lib/util.c:is_myname(2036)
 is_myname(UK_PDC) returns 1
[2006/09/21 12:35:25, 0] nmbd/nmbd_packets.c:process_browse_packet(1061)
 process_browse_packet: Discarding datagram from IP 10.10.20.1. Source 
name UK_PDC00 is one of our names !

[2006/09/21 12:35:25, 9] nmbd/nmbd_namelistdb.c:find_name_on_subnet(127)
 find_name_on_subnet: on subnet 10.10.20.1 - found name *00 source=5
[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:process_dgram(1270)
 process_dgram: datagram from UK_PDC00 to *00 IP 10.10.20.1 for 
\MAILSLOT\BROWSE of type 13 len=8

[2006/09/21 12:35:25, 8] lib/util.c:is_myname(2036)
 is_myname(UK_PDC) returns 1
[2006/09/21 12:35:25, 0] nmbd/nmbd_packets.c:process_browse_packet(1061)
 process_browse_packet: Discarding datagram from IP 10.10.20.1. Source 
name UK_PDC00 is one of our names !
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK on subnet 
10.10.20.1: found.
[2006/09/21 12:35:25, 10] 
nmbd/nmbd_sendannounce.c:announce_myself_to_domain_master_browser(382)
 announce_myself_to_domain_master_browser: t (1158856525) - 
last(1158856321)  900
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK on subnet 
UNICAST_SUBNET: found.

[Samba] Re: current master browser = UNKNOWN / failing WINS test #1 on 3.0.23c

2006-09-21 Thread Dan

Here is my smb.conf also, maybe it is something silly I have set in that.
[global]
 
  workgroup = DOMAIN_UK
 
  netbios name = UK_PDC
 
  interfaces = eth0
 
  bind interfaces only = Yes
 
  admin users = root administrator

  server string = UK PDC
 
  security = user


  enable privileges = Yes

  load printers = yes
  printing = cups
  printcap = cups
  printcap name = cups
  show add printer wizard = yes

  log file = /var/log/samba/log.%m

  remote announce = 10.10.20.1 10.1.0.11 10.1.0.12 10.10.80.15
  remote browse sync = 10.10.20.1 10.1.0.11 10.1.0.12 10.1.10.80.15

  max log size = 1
 
  ldap ssl = on

  passdb backend = ldapsam:ldaps://uk_pdc:636

  ldap admin dn = uid=root,ou=users,o=uk.on2.com
  ldap user suffix = ou=users
  ldap group suffix = ou=groups
  ldap machine suffix = ou=computers
  ldap suffix = o=uk.on2.com
  ldap idmap suffix = ou=idmap
  ldap delete dn = no
 
  add user script = /usr/local/sbin/smbldap-useradd -m '%u'

  delete user script = /usr/local/sbin/smbldap-userdel %u
  add group script = /usr/local/sbin/smbldap-groupadd -p '%g'
  delete group script = /usr/local/sbin/smbldap-groupdel '%g'
  add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' '%g'
  delete user from group script = /usr/local/sbin/smbldap-groupmod -x 
'%u' '%g'

  set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
  add machine script = /usr/local/sbin/smbldap-useradd -t 5 -w '%u'
 
  dos charset = 850

  unix charset = ISO8859-1

  ldap passwd sync = yes
 
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


  os level = 128
 
  domain master = yes
 
  domain logons = yes
 
  local master = yes


  preferred master = yes
  
  logon script = logon.bat

  encrypt passwords = yes
  unix password sync = no
  passwd program = /usr/local/sbin/smbldap-passwd -o %u
  passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*all*authentication*tokens*updated*successfully*

  logon path = c:\Documents and Settings\%U
  wins support = yes
  map to guest = Never
  nt acl support = true

Dan wrote:
I am having trouble with one of my samba PDC's.  It does not recognize 
itself as the domain master browser even though it is set to be so.  I 
can not add machines to this domain and I suspect this is why.   Has 
anybody seen this or know what causes it?   Notice this:


   DOMAIN_ALBANY(3) current master browser = ALBANY_PDC
   DOMAIN_NYC(2) current master browser = NYC_PDC
   DOMAIN_UK(1) current master browser = UNKNOWN

but right above it there is

  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC

So I am lost as to what is going on.

Here is the the coorsponding part of the nmbd log:

[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.11) on port 138
[2006/09/21 12:35:25, 5] nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 10.1.0.12.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 
IP 10.10.20.1 to *00 IP 10.1.0.12

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.12) on port 138
[2006/09/21 12:35:25, 5] nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 0.0.0.0.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 
IP 10.10.20.1 to *00 IP 0.0.0.0

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (0.0.0.0) on port 138
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC
   UK_PDC 408c9b0b (UK PDC)
   PAULP4 40011207 ()
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  UNICAST_SUBNET: netmask= 10.10.20.1:
   DOMAIN_ALBANY(3) current master browser = ALBANY_PDC
   DOMAIN_NYC(2) current master browser = NYC_PDC
   DOMAIN_UK(1) current master browser = UNKNOWN
   UK_PDC 40899b0b (UK PDC)
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK on subnet 
UNICAST_SUBNET: found.
[2006/09/21 12:35:25, 4] 
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
 find_workgroup_on_subnet: workgroup search for DOMAIN_UK 

[Samba] smbmount failed

2006-09-21 Thread WingHei Au

Hi all,

I am trying to cross compile samba version 2.2.12 to an ARM platform (kernel
2.4.20)

using arm-tools chain 3.4.2.

I get the smbmount compiled, however, when I want to mount a directory that
is located

in a Windows XP PC, I get the following message:

WARNING: The strip dotoption is deprecated
unrecognized character set
handle_source_env: Failed to open file , Error was Success
WARNING: The alternate permissionsoption is deprecated
WARNING: The statusoption is deprecated
WARNING: The postscriptoption is deprecated
WARNING: The printer driveroption is deprecated
WARNING: The printer driver fileoption is deprecated
WARNING: The printer driver locationoption is deprecated
Unable to copy service - source not found:
execvp of smbmnt failed. Error was No such file or directory.smbmnt failed:
1

And I cannot mount the directory. I do not think that it is related the
permission

problem because when I use wrong username/password or try in some wrong
target paths,

it can report me the corresponding error message.

I have tried another tool - smbclient, which works perfectly! Seems that I
am just not

able to mount with smbmount.

Can anyone one elp me to solve this problem? Thanks a lot!

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


[Samba] Creating many subgroups in my domain

2006-09-21 Thread F�bio Prando Bortolotto

 Hi Everybody,
  I'm a bit newbie for this solution and the solution will be:

   Samba-3.0.23c (Working with PDC) + OpenLDAP 2.3.27 so far SQUID and CUPS
   In my network I had a Domain call HEADOFFICE but I wanna create many 
subgroups for my departments, cause my network has more than 10 departments 
and I wanna subdivide in many subgroups machine.


  I already read the documentation
http://us5.samba.org/samba/docs/man/Samba-Guide/happy.html
and
http://us5.samba.org/samba/docs/man/Samba-Guide/2000users.html
   but i coudn't find the solution for my challange so far I though the 
best ideia was writing in the samba list.


   Thks

_
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br


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


Re: [Samba] Transfer rates faster than 23MBps?

2006-09-21 Thread Mark Smith
I wanted to follow up to my email to provide at least a partial answer 
to my problem.


The stock RedHat AS4-U3 Samba config has SO_SNDBUF and SO_RCVBUF set to 
8k.  With this value, I can transfer a 1GB file in about 70-75 seconds, 
about 14MBps.  If I increase those buffers to their max value of 64k, 
that same 1GB file transfers in 45-50 seconds, about 23MBps.


That is the _ONLY_ configuration value I've found that made any 
difference in my setup.  All the other tweaks I'd done, when removed, 
seemed to make no difference at all.  I was playing with oplocks, 
buffers, max xmit sizes, you name it.  But the socket option buffers was 
the only thing that made a difference.


I'm still looking for more speed.  I'll report if I find anything else 
that helps.


In response to Jeremy's suggestion of using smbclient, I ran a test from 
a Linux client using smbclient and it reported a transfer rate of 
21MBps, about the same as a normal smbfs mount.  I haven't tried porting 
smbclient to Windows yet, and probably won't until we get more info on 
what the server is doing.


Thanks everyone.

-Mark

Mark Smith wrote:
We use SMB to transfer large files (between 1GB and 5GB) from RedHat AS4 
Content Storage servers to Windows clients with 6 DVD burners and 
robotic arms and other cool gadgets.  The servers used to be Windows 
based, but we're migrating to RedHat for a host of reasons.


Unfortunately, the RedHat Samba servers are about 2.5 times slower than 
the Windows servers.  Windows will copy a 1GB file in about 30 seconds, 
where as it takes about 70 to 75 seconds to copy the same file from a 
RedHat Samba server.


I've asked Dr. Google and gotten all kinds of suggestions, most of which 
have already been applied by RedHat to the stock Samba config.  I've 
opened a ticket with RedHat.  They pointed out a couple errors in my 
config, but fixing those didn't have any effect.  Some tweaking, 
however, has gotten the transfer speed to about 50 seconds for that 1GB 
file.


But I seem to have hit a brick wall; my fastest time ever was 44 
seconds, but typically it's around 50.


I know it's not a problem with network or disk; if I use Apache and HTTP 
to transfer the same file from the same server, it transfers in about 15 
to 20 seconds.  Unfortunately, HTTP doesn't meet our other requirements 
for random access to the file.


Do you folks use Samba for large file transfers at all?  Have you had 
any luck speeding it up past about 23MBps (the 44 second transfer 
speed)?  Any help you may have would be fantastic.  Thanks.


-Mark

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


Re: [Samba] How do I hide [Homes] share?

2006-09-21 Thread Herb Lewis

Add the following to your homes definition

browseable = no

Jon Theil Nielsen wrote:
I don't know if I can actually make an attachement, but I'll try. 
Otherwise,

I'll put it into the text message next time.

Best regards, Jon



On 09/20/2006 01:16 PM, Jon Theil Nielsen escreveu:


 I have setup a samba pdc for my domain and it's working fine. The users
 also get a network share as I would like. But when I go to the network
 neighborhood, I see both the users home directory but also a Homes
 share. As far as I can see, the content is the same, but I don't like
 that way to do it. Is there a way to only show the home directory?

Jon, something sounds wrong here. Could you please attach
your smb.conf and the version of your Samba and your clients so we
can have more info to try to help you?

[homes] share is usually hidden.


 Best regards, Jon

Kind regards,

- --
Felipe Augusto van de Wiel [EMAIL PROTECTED]





 [global]
workgroup = MFL
server string = MFLSERVER2
log level = 10
logon script = netlogon.bat
logon path =
logon drive = H:
domain logons = Yes
os level = 80
preferred master = Yes
domain master = Yes
wins support = Yes
ldap ssl = no
idmap uid = 1-2
idmap gid = 1-2

[NETLOGON]
browseable = no
path = /usr/local/lib/samba/netlogon
available = no

[homes]
comment = Home directory on server
writeable = yes
delete readonly = yes
user = %



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


Re: [Samba] create_builtin_(administrators|users): Failed to create (Administrators|Users)

2006-09-21 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Bert van de Grift wrote:
 Hi,
 
 Since I upgraded Samba from 3.0.23b,1 to 3.0.23c,1 on my FreeBSD
 6.2-PRERELEASE system I've the following messages in my logfile:
 
 Sep 20 17:02:46 snoozy smbd[58430]: create_builtin_administrators:
 Failed to create Administrators
 Sep 20 17:02:46 snoozy smbd[58430]: create_builtin_users: Failed to
 create Users

This is normal if you are using an idmap backend other than
tdb or ldap.  The annoying error message will be fixed in the
next release.






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

iD8DBQFFEtrDIR7qMdg1EfYRAhKFAJ9UoLHKDdnOzv8jYdsQA9GUzg/IXQCgzLXI
dB0Q6+fCsmfhLZqGKU8EigE=
=xOBQ
-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] Fw: Poor performance getting lots of small files with WinXP/Win2k vs OS2

2006-09-21 Thread Jeremy Allison
On Thu, Sep 21, 2006 at 11:31:57AM +0200, [EMAIL PROTECTED] wrote:
 Hi,
 We're doing some of performance tests with Linux Samba v3.
 We're comparing WinXP/Win2k clients vs OS2 clients accessing a samba 
 server.
 
 For one test, we're coping 10.000 small files.
 Let's say, we run the command copy \\sambaserver\1files\*.* 
 c:\data\1files
 
 With an OS2 client it takes 23 seconds to complete.
 With an Windows client it takes  460 seconds to complete.
 
 Doing a Ethereal capture, the network usage is very different.
 OS2 :
 No. TimeSourceDestination   Protocol 
 Info
 
 So, the performance difference is easy to explain
 
 Is there a way to avoid such network usage on a winXP client ?  At the 
 client side ? At the Samba server side ?
 Looks like it's related to the Windows NTFS environment

This is breakage on the Windows XP client. There's nothing
you can do except not use Windows, sorry. This is just what
those clients do.

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


[Samba] Windows Application Overriding Samba Settings

2006-09-21 Thread andy liebman
I have just encountered a strange situation. A new version of a Windows 
application that I use was just released. Unlike previous versions of 
this application, when it writes data to my Samba share, it is setting 
permissions to be 777 on all files and folders. In contrast, previous 
versions of this application set permissions to be 2750 as I specify in 
the share definition in my smb.conf file.


In smb.conf, in the share definition I specify:

directory mask = 0750
create mask = 0750

My understanding is that this should LIMIT the maximum permissions that 
can be set for a file or folder created by Windows or a Windows 
application. The file or folder should never be group writable, or even 
accessible by others.


In addition, I have also played with specifying the following options:

force directory mode = 2040
force create mode = 2040

Until this new version of the Windows application came out, I never had 
any issues. ANY folder or file created by the application always had the 
same permissions:  2750 or 570 (respectively)


But NOW The Windows application seems to be completely getting around 
the limits that I imposed with Samba and Linux. All files and folders 
are getting set as: 0777


I even have the root directory of the share (in which files and folders 
are getting created) set to SGID -- yet Windows is managing to override 
this and is not preserving the SGID on new folders.


Does anybody have a clue what's going on here? How can Windows or a 
Windows Application override my Linux and Samba settings? And is there 
anything I can do about it?


FYI...

In this case I am running Samba 3.0.13.  The Windows version is XP SP2. 
Please don't suggest that I upgrade to Samba 3.0.2x (unless you know 
that it specifically solves this problem). That is not an option at the 
moment.


Thanks in advance for the help.

Andy Liebman

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


[Samba] Re: Windows Application Overriding Samba Settings

2006-09-21 Thread andyliebman

Oops, sorry. I had a typo in my posting. I wrote:

Until this new version of the Windows application came out, I never had 
any issues. ANY folder or file created by the application always had 
the same permissions: 2750 or 570 (respectively)


I should have written:

Until this new version of the Windows application came out, I never had 
any issues. ANY folder or file created by the application always had 
the same permissions: 2750 or 750 (respectively)


I switched a 7 and a 5.

Andy Liebman

Check out the new AOL.  Most comprehensive set of free safety and 
security tools, free access to millions of high-quality videos from 
across the web, free AOL Mail and more.


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


[Samba] Re: current master browser = UNKNOWN / failing WINS test #1 on 3.0.23c

2006-09-21 Thread Dan

There is also this which I don't understand

  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   ON2_UK(1) current master browser = UK_PDC
   UK_PDC 408c9b0b (UK PDC)
[2006/09/21 16:15:00, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  UNICAST_SUBNET: netmask= 10.10.20.1:
   ON2_UK(1) current master browser = UNKNOWN
   UK_PDC 40899b0b (UK PDC)

Does anyone have any ideas?  I really need to get this up and working.  
Thanks!


Dan wrote:

Here is my smb.conf also, maybe it is something silly I have set in that.
[global]
 
  workgroup = DOMAIN_UK
 
  netbios name = UK_PDC
 
  interfaces = eth0
 
  bind interfaces only = Yes
 
  admin users = root administrator

  server string = UK PDC
 
  security = user


  enable privileges = Yes

  load printers = yes
  printing = cups
  printcap = cups
  printcap name = cups
  show add printer wizard = yes

  log file = /var/log/samba/log.%m

  remote announce = 10.10.20.1 10.1.0.11 10.1.0.12 10.10.80.15
  remote browse sync = 10.10.20.1 10.1.0.11 10.1.0.12 10.1.10.80.15

  max log size = 1
 
  ldap ssl = on

  passdb backend = ldapsam:ldaps://uk_pdc:636

  ldap admin dn = uid=root,ou=users,o=uk.on2.com
  ldap user suffix = ou=users
  ldap group suffix = ou=groups
  ldap machine suffix = ou=computers
  ldap suffix = o=uk.on2.com
  ldap idmap suffix = ou=idmap
  ldap delete dn = no
 
  add user script = /usr/local/sbin/smbldap-useradd -m '%u'

  delete user script = /usr/local/sbin/smbldap-userdel %u
  add group script = /usr/local/sbin/smbldap-groupadd -p '%g'
  delete group script = /usr/local/sbin/smbldap-groupdel '%g'
  add user to group script = /usr/local/sbin/smbldap-groupmod -m '%u' 
'%g'
  delete user from group script = /usr/local/sbin/smbldap-groupmod -x 
'%u' '%g'

  set primary group script = /usr/local/sbin/smbldap-usermod -g '%g' '%u'
  add machine script = /usr/local/sbin/smbldap-useradd -t 5 -w '%u'
 
  dos charset = 850

  unix charset = ISO8859-1

  ldap passwd sync = yes
 
  socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


  os level = 128
 
  domain master = yes
 
  domain logons = yes
 
  local master = yes


  preferred master = yes
logon script = logon.bat
  encrypt passwords = yes
  unix password sync = no
  passwd program = /usr/local/sbin/smbldap-passwd -o %u
  passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*all*authentication*tokens*updated*successfully*

  logon path = c:\Documents and Settings\%U
  wins support = yes
  map to guest = Never
  nt acl support = true

Dan wrote:
I am having trouble with one of my samba PDC's.  It does not 
recognize itself as the domain master browser even though it is set 
to be so.  I can not add machines to this domain and I suspect this 
is why.   Has anybody seen this or know what causes it?   Notice this:


   DOMAIN_ALBANY(3) current master browser = ALBANY_PDC
   DOMAIN_NYC(2) current master browser = NYC_PDC
   DOMAIN_UK(1) current master browser = UNKNOWN

but right above it there is

  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC

So I am lost as to what is going on.

Here is the the coorsponding part of the nmbd log:

[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.11) on port 138
[2006/09/21 12:35:25, 5] 
nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 10.1.0.12.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 
IP 10.10.20.1 to *00 IP 10.1.0.12

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (10.1.0.12) on port 138
[2006/09/21 12:35:25, 5] 
nmbd/nmbd_sendannounce.c:browse_sync_remote(576)
 announce_remote: Doing remote browse sync announce for server UK_PDC 
to IP 0.0.0.0.

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:send_mailslot(1921)
 send_mailslot: Sending to mailslot \MAILSLOT\BROWSE from UK_PDC00 
IP 10.10.20.1 to *00 IP 0.0.0.0

[2006/09/21 12:35:25, 4] nmbd/nmbd_packets.c:debug_browse_data(100)
 debug_browse_data():
   0 char .UK_PDC. hex 0d 55 4b 5f 50 44 43 00
[2006/09/21 12:35:25, 5] libsmb/nmblib.c:send_udp(777)
 Sending a packet of len 176 to (0.0.0.0) on port 138
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  10.10.20.1: netmask=  255.255.255.0:
   DOMAIN_UK(1) current master browser = UK_PDC
   UK_PDC 408c9b0b (UK PDC)
   PAULP4 40011207 ()
[2006/09/21 12:35:25, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
 dump_workgroups()
  dump workgroup on subnet  

[Samba] Intermittent problems connecting to Samba share-Domain Ctlr issue

2006-09-21 Thread Greg Sheridan
Hi everyone,

We've been having intermittent problems connecting to Samba shares from Windows 
machines. I wrote a test program that tries to connect to the share and get a 
list of all of the files in it. It tries to do this every second. On some 
occasions this test program succeeds 14 times in a row before failing. It then 
fails once, and then succeeds 14 or so more times. It keeps repeating this 
pattern. Other times, this test program can consistently connect to that same 
share every second for over an hour.

The error in the log seems to indicate that the problem happens when the Samba 
machine is talking to the Windows Domain Controller to authenticate the user.

Here's the error from from the Linux machine's syslog(PGIDomainController is 
our Windows Domain Controller):
---
Sep 18 20:50:12 scstor003 winbindd[1226]:   cli_rpc_pipe_close: cli_close 
failed on pipe \NETLOGON, fnum 0x4006 to machine PGIDomainController.  Error 
was Write error: Connection reset by peer
---

We've also seen this block of error msgs:
---
Sep 18 15:45:23 scstor008 winbindd[5195]: [2006/09/18 15:45:23, 0] 
lib/util_sock.c:write_data(559) 

Sep 18 15:45:23 scstor008 winbindd[5195]:   write_data: write failure. Error = 
Connection reset by peer 

Sep 18 15:45:23 scstor008 winbindd[5195]: [2006/09/18 15:45:23, 0] 
libsmb/clientgen.c:write_socket(138) 

Sep 18 15:45:23 scstor008 winbindd[5195]:   write_socket: Error writing 446 
bytes to socket 15: ERRNO = Connection reset by peer 

Sep 18 15:45:23 scstor008 winbindd[5195]: [2006/09/18 15:45:23, 0] 
libsmb/clientgen.c:cli_send_smb(168) 

Sep 18 15:45:23 scstor008 winbindd[5195]:   Error writing 446 bytes to client. 
-1 (Connection reset by peer) 

Sep 18 15:45:23 scstor008 winbindd[5195]: [2006/09/18 15:45:23, 0] 
rpc_client/cli_pipe.c:rpc_api_pipe(790) 

Sep 18 15:45:23 scstor008 winbindd[5195]:   rpc_api_pipe: Remote machine 
PGIDomainController pipe \NETLOGON fnum 0x6returned critical error. Error was 
Write error: Connection reset by peer 
---

Any feedback on this would be greatly appreciated.

Thanks,
Greg Sheridan


-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Windows Application Overriding Samba Settings

2006-09-21 Thread Adam Nielsen
 directory mask = 0750
 create mask = 0750
 My understanding is that this should LIMIT the maximum permissions
 that can be set for a file or folder created by Windows or a Windows 
 application.

AFAIK, these options only set the default permissions, a program can
still change them if it wants.

 In addition, I have also played with specifying the following options:
 force directory mode = 2040
 force create mode = 2040

Again, these force the permissions to a certain value when creating a
file, but they don't stop the permissions from being changed once the
file exists.

 But NOW The Windows application seems to be completely getting around 
 the limits that I imposed with Samba and Linux. All files and folders 
 are getting set as: 0777

There are two things that could be happening - it's possible that the
attributes are being mapped to UNIX permissions (so if the program sets
the archive bit, that's translated to the execute permission) or more
likely, the program is checking which users have access to the file and
is granting them all access (similar to what would happen if you
right-click on a file, go to the Security tab and grant all users
access there.)

I'm not sure of a way around this, but if there is one I'm sure it'll
involve restricting the changing of permissions on files that already
exist (I'm pretty sure there are options related to this, check out the
smb.conf manpage.)

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


Re: [Samba] smbmount failed

2006-09-21 Thread Adam Nielsen
 execvp of smbmnt failed. Error was No such file or directory.smbmnt
 failed:
 1

Did you compile and install the helper program 'smbmnt'?  On my system
it appears in /usr/bin/smbmnt

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


[Samba] Force group gid

2006-09-21 Thread Lewis Shobbrook
Hi All,

I note from previous posts that the uid  gid are not supported in smb.conf.
My issue is that I have mysql auth backend for ftp sites, that I'd like to 
share directories for internal access.  There is currently no way I can see 
to force the user or group using uid  gid for this type of backend.
Can anyone offer any suggestions as a work around to this?

Cheers,

Lewis

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


[Samba] RE: Support of Samba on RHEL4?

2006-09-21 Thread Alex de Vaal
Hello Gianluca,

The rpm -q --changelog package command was known to me, but the original
Samba packages doesn't contain a changelog.

As for the RHEL4 Samba packages; the changes are applied by RedHat
engineers, but if you are looking into the patches itself, they come mostly
from samba.org
How can otherwise statements of Jeremy Allison of samba.org be in patches of
RedHat... ;) and the only way to find out is to dig in the patches
themselves...

Regards,
Alex.


-Original Message-
From: Gianluca Cecchi [mailto:[EMAIL PROTECTED] 
Sent: Friday 15 September 2006 15:42
To: [EMAIL PROTECTED]
Cc: samba@lists.samba.org
Subject: re: Support of Samba on RHEL4?

Alex,
I could not agree more with you.
BTW, perhaps you already know, but just in case:
If you want to see the patches applied to a package during its history, and
you don't need to dig into the sources themselves, you can query the
changelog for an rpm package without having to download
sources:

rpm -q --changelog package

for example  for my samba-3.0.10-1.4E.2
rpm -q --changelog samba
* Wed May 11 2005 Jay Fenlason [EMAIL PROTECTED] 3.0.10-1.4E.2

- include the -bug157208 patch. to close
  bz#157208 CRM 511318 - smbfs dont respect uid and gid options when
mounting

* Fri Apr 29 2005 Jay Fenlason [EMAIL PROTECTED]

- include the -smbspool pattch from RHEL-3, to close
  bz#155350 SAMBA client working, printer configuration not working
- include the -winbindd_2k3sp1 patch to allow Samba to authenticate
  against a Windows 2003 SP1 machine.  This closes
  bz#154558 Winbind refuses to authenticate against Windows 2003 SP1

* Wed Mar 30 2005 Jay Fenlason [EMAIL PROTECTED] 3.0.10-1.4E.1

- try the -gcc4 patch, to see if it solves problems with nmbd crashing.
  bz#150582 ? nmbd dies when windows client requests browse list

* Tue Jan 04 2005 Jay Fenlason [EMAIL PROTECTED] 3.0.10-1.4E

- Upgrade to 3.0.10, to close bz#143983  This obsoletes
  the -CAN-2004-1154 patch.
- Include the -64bit patch from Nalin.  This closes bz#142873


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


RE: [Samba] Support of Samba on RHEL4?

2006-09-21 Thread Alex de Vaal
Hello Aaron,

It is always good that people are thinking along and actually you ask right
questions to me, which I asked myself too.
To answer your questions:

1) No.
2) Yes
3) No, not yet.
4) They do that anyway ;)
5) YES!

I have almost 100 Linux servers running with Red Hat Linux 9, you know, the
obsolete version. ;) All these servers are running with Samba, which I
tested and tested in our test environment against a real copy of our Active
Directory.
With RHL9 and Samba I have no support anyway and I'm on my own for
support.
Whenever a new update comes out I test it thoroughly in my test environment
before I install it on all other servers. Before I roll-out an updated
version of Samba I test it for a month on 1 or 2 production sites anyway.
On my production servers I still run 3.0.14a of Samba, because that version
works great against W2k3 server SP1. As soon as SP1 came out, samba.org
immediately came up with a patch for Samba and this is the kind of support I
need... Not how to install and configure it... ;)

The only reason I stepped into RHEL4 was the hardware support. I have a new
Dell PE2900 server with SAS drives and for RHL9 no drivers are available, so
I had to step forward to RHEL4 (which is obvious for me).

Maybe I have to consider CENTOS instead of RHEL4, because I didn't need
RHEL4 for support from Red Hat, just for technical reasons. CENTOS4 is a 1:1
copy of RHEL4, but without the RedHat logo... (and the Red Hat support)

Regards,
Alex.

-Original Message-
From: Aaron Kincer [mailto:[EMAIL PROTECTED] 
Sent: Friday 15 September 2006 18:17
To: Alex de Vaal
Cc: samba@lists.samba.org
Subject: Re: [Samba] Support of Samba on RHEL4?

Alex,

I tried running Samba on RHEL4 Update 2 (on VMWare) and ran into some issues
and I can provide you my opinion. Take care when making any decisions. There
are quite a few things to consider:

1) Is having support from Red Hat on Samba necessary?
2) Are you confident enough in yourself to go off the beaten path from Red
Hat?
3) Have you considered other vendors for support on Samba itself?
4) Would upper management (if any) hold you responsible for going off the
support path in the event of an issue?
5) Do you have an adequate test environment?

If you are going away from Red Hat support, #5 is critical. They test and
test and test (or at least should) packages prior to pushing them out. They
will know or be able to quickly find solutions to common problems with their
packages. There are some caveats to that statement, so let me get to a bit
more meat.

Let's face it--the packages in RHEL4 for Samba are just plain old. Red Hat
has back-ported security fixes and even some bug fixes, but I know without a
doubt that not all bugs have been addressed. RHEL5 will be out in the coming
future. Perhaps it will provide newer packages. I urge you to investigate
and consider that route if you are extremely nervous about losing support on
Samba from them.

In my case, I've chosen to move my production File Server to Ubuntu 6.06
Server (well, I have loaded the latest distro upgrade) running Samba
3.0.22 after I complete quite a bit of testing. I just found myself banging
my head against the wall with my smb.conf in ways that I shouldn't have to
since the problems were with bugs in the older Samba that haven't been
back-ported. The instant I transferred my smb.conf over to the new Ubuntu
server, my bugs went away. The one exception is the archive bit issue I've
been posting about lately.

The bottom line in my humble opinion is that if you go your own way, you
shift burden of responsibility more to yourself than Red Hat. Of course, if
you have the hardware (or a VMWare/Xen virtual server) you could always run
parallel using two servers with a Red Hat approved Samba version as a
control and your own Samba server with identical configurations (minus Samba
version) for production and work out non-bug related issues with their help
on your reference server. This won't help you in resolving bug-related
issues, but it could help provide you with a warm fuzzy-feeling. This would
be less than ideal since the versions are so far apart.

I know you asked for technical reasons, but you should be aware that not all
of the factors in the equation are technical when considering a production
server.

Hope that helps.

Aaron Kincer


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


[Samba] RE: Support of Samba on RHEL4?

2006-09-21 Thread Alex de Vaal

The only reason I stepped into RHEL4 was the hardware support. I have a new
Dell PE2900 server with SAS drives and for RHL9 no drivers are available, so
I had to step forward to RHEL4 (which is obvious for me).
I have almost 100 Linux servers running with Red Hat Linux 9, you know, the
obsolete version. ;) All these servers are running flawlessly with Samba
3.0.14a from samba.org

I can't remember I ever signed a contract with you to support my servers :-)
However, my opinion is that I the support I receive from samba.org is (up
until now) sufficient for me; if I may quote the patch for W2k3 SP1, that
came out a few hours after the release of SP1.
What took more effort concerning the support of Samba, was the flaw of LDAP
failover with W2k3 DC's. I was banging my head regarding this issue and
entering a bug on bugzilla about this issue didn't help me. I was however
actively involved to tackle that issue and it was solved with a proposed
patch of my partner in crime.  So I was not only consuming support from
Samba but also contributing support to Samba. :-)

When RHEL5 is released I'll take a look which version of Samba they will use
as default and hopefully this will be one of the latest Samba versions. I
can change at any time the Samba packages from samba.org to the RH Samba
packages, which give me full support from RH then... :-)
Maybe I have to consider CENTOS instead of RHEL4, because I didn't need
RHEL4 for support from Red Hat, I only needed for hardware reasons. 

Regards,
Alex.
 

-Original Message-
From: Gerald (Jerry) Carter [mailto:[EMAIL PROTECTED] 
Sent: Monday 18 September 2006 2:15
To: Alex de Vaal
Cc: samba@lists.samba.org
Subject: Re: Support of Samba on RHEL4?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alex de Vaal wrote:

 Is there any technical reason NOT to use the packages of samba.org on 
 RHEL4?

Nope.  No reason at all other than RH support.

 Regarding the above info I'd like to use the original samba packages 
 on RHEL4. If I only void support for Samba at Red Hat, so be it. I'm 
 convinced I'm better off with Samba support at samba.org...

For those with more complex setups that a single PDC or standalone server, I
would agree.  But I'm not signing a contract to support you servers :-)

cheers, jerry


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


[Samba] Using samba server on a tiny embedded system

2006-09-21 Thread colin

Hi there,
We are developing an embedded multimedia system and after reaching a stage
of development, the next stage will be turning it to be a multimedia center.
Therefore, supporting samba is a very good design of it.
Considering the restricted resource, a tiny samba is more suitable.
How can I get a tiny samba server? Is there any project for a tiny samba
server? Or can I produce a tiny one by disabling almost all of advanced
options?

By the way, our embedded system is MIPS Linux + uClibc + busybox.

Regards,
Colin



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


[Samba] Poor performance getting lots of small files with WinXP/Win2k vs OS2

2006-09-21 Thread Alain . Gorlier
Hi,
We're doing some of performance tests with Linux Samba v3.
We're comparing WinXP/Win2k clients vs OS2 clients accessing a samba 
server.

For one test, we're coping 10.000 small files.
Let's say, we run the command copy \\sambaserver\1files\*.* 
c:\data\1files

With an OS2 client it takes 23 seconds to complete.
With an Windows client it takes  460 seconds to complete.

Doing a Ethereal capture, the network usage is very different.
OS2 :
No. TimeSourceDestination   Protocol 
Info

 15 0.58876610.16.43.123  10.240.47.86  SMB Open 
AndX Request, Path: \1\0511_3008.IN; Read AndX, FID: 0x, 4096 
bytes at offset 0
 16 0.58900810.240.47.86  10.16.43.123  SMB Open 
AndX Response, FID: 0x2a81; Read AndX, FID: 0x, 74 bytes
 17 0.58925110.16.43.123  10.240.47.86  SMB Close 
Request, FID: 0x2a81
 18 0.58949410.240.47.86  10.16.43.123  SMB Close 
Response

WinXP SP2:


Trace Windows XP:
No. TimeSourceDestination   Protocol 
Info
 16 1.00173410.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 17 1.00196810.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 18 1.00245410.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 19 1.00269710.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 20 1.00294010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000
 21 1.00318410.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 22 1.00342710.16.37.96   10.240.47.86  SMB Trans2 
Request, FIND_FIRST2, Pattern: \1000\0D02_1707.IN
 23 1.00367010.240.47.86  10.16.37.96   SMB Trans2 
Response, FIND_FIRST2, Files: 0D02_1707.IN
 24 1.00391310.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Basic Info, Path: \1000\0D02_1707.IN
 25 1.00415710.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 26 1.00440010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_PATH_INFO, Query File Standard Info, Path: 
\1000\0D02_1707.IN
 27 1.00440210.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_PATH_INFO
 28 1.00488610.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 29 1.00512910.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf0
 30 1.00537310.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf0, Query File Internal Info
 31 1.00561510.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 32 1.00610210.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf0, Query File Basic Info
 33 1.00610410.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 34 1.00634510.16.37.96   10.240.47.86  SMB Trans2 
Request, SET_FILE_INFO, FID: 0x1cf0
 35 1.00658910.240.47.86  10.16.37.96   SMB Trans2 
Response, SET_FILE_INFO
 36 1.00707510.16.37.96   10.240.47.86  SMB Read 
AndX Request, FID: 0x1cf0, 222 bytes at offset 0
 37 1.00731810.240.47.86  10.16.37.96   SMB Read 
AndX Response, FID: 0x1cf0, 222 bytes
 38 1.00780410.16.37.96   10.240.47.86  SMB Close 
Request, FID: 0x1cf0
 39 1.00829210.240.47.86  10.16.37.96   SMB Close 
Response
 40 1.00829410.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 41 1.00877810.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf1
 42 1.00878010.16.37.96   10.240.47.86  SMB Trans2 
Request, QUERY_FILE_INFO, FID: 0x1cf1, Query File Basic Info
 43 1.00902110.240.47.86  10.16.37.96   SMB Trans2 
Response, QUERY_FILE_INFO
 44 1.00926310.16.37.96   10.240.47.86  SMB Close 
Request, FID: 0x1cf1
 45 1.00975010.240.47.86  10.16.37.96   SMB Close 
Response
 46 1.00999410.16.37.96   10.240.47.86  SMB NT 
Create AndX Request, Path: \1000\0D02_1707.IN
 47 1.01023610.240.47.86  10.16.37.96   SMB NT 
Create AndX Response, FID: 0x1cf2
 48 1.01047910.16.37.96   10.240.47.86  SMB Read 
AndX Request, FID: 0x1cf2, 222 bytes at offset 0
 49 1.01072310.240.47.86  10.16.37.96 

[Samba] samba printer share

2006-09-21 Thread Kostya Berger
Hello, dear colleagues using SAMBA.

Who could possibly tell me what I am missing in order to make my SAMBA printer 
share visible on the windows network( i.e., accessing it from a MS Windows 
machine's explorer, for example )? 
It is SAMBA 3.0.23 on Linux 2.4.33 machine(originally RedHat 7.3. based, but 
so much upgraded, even to GLIBC-2.3.6).
here are the linked libraries:
=
#ldd /usr/local/samba/sbin/smbd
libcups.so.2 = /usr/lib/libcups.so.2 (0x40023000)
libpthread.so.0 = /lib/libpthread.so.0 (0x40056000)
libm.so.6 = /lib/libm.so.6 (0x400a8000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x400cb000)
libresolv.so.2 = /lib/libresolv.so.2 (0x400f8000)
libnsl.so.1 = /lib/libnsl.so.1 (0x40109000)
libdl.so.2 = /lib/libdl.so.2 (0x4011d000)
libpopt.so.0 = /usr/lib/libpopt.so.0 (0x40121000)
libc.so.6 = /lib/libc.so.6 (0x40128000)
libpthread.so.20 = /usr/lib/libpthre
And here, at last, my smb.conf:
[global]
log file = /usr/local/samba/var/log.%m
load printers = yes
socket options = TCP_NODELAY
username map = /etc/samba/user.map
interfaces = 192.168.0.1/27
domain master = yes
null passwords = yes
public = yes
wins support = true
guest account = nobody
dns proxy = no
netbios name = Samba
netbios aliases = Samba
printing = cups
server string = Samba
default = global
local master = yes
workgroup = QUBICA
os level = 65
printcap name = cups
security = share
max log size = 50

[Server_files]
map archive = no
writeable = yes
path = /mnt/nfs
hide dot files = no
public = yes
case sensitive = yes

[printers]
postscript = yes
printer = hp_LaserJet_3015
lpq command = lpstat -o %p
browseable = yes
printable = yes
print command = lpr -P %p -o raw %s -r
comment = All Printers
lprm command = cancel %p-%j
printer admin = root
===
My printer here is installed via HPLIP, CUPS is running OK, everything's OK, 
except that I can't see the printer through windows  network browsing, 
neither from linux, nor from windows machines. Of course, I did the RTFM 
search and corrected everything accordingly, but still. The [Server_files] 
share IS visible, the [printers] is NOT.

ANY IDEAS?

THANKS IN ADVANCE FOR YOUR KIND SUPPORT AND YOUR PRECIOUS TIME!
Kostya


pgpYy4LEwTH0E.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] Manually authenticate single user?

2006-09-21 Thread kris monstad

Hi there,

Firt off, Im new to the word of samba and windbind (and AD for that 
matter)  so I apologise if my problem has had attention before.


Ill try to articulate whats happening as best I can. I beleive my issue 
is with winbind in particular. If Ive neglected anything that would be 
helpful in finding a solution please let me know.


Ive several linux machines using samba and winbind to share on an Active 
Directory domain. Recently I was asked to create two distinct new user 
groups specifically for two upcoming projects. Until these projects 
become active there are only two guys doing pre-production on them - one 
guy for each project. So I created the two security groups in active 
directory and placed the two workers in each's relevant group.


Over to the linux machines:

getent group shows the two new groups and their (lone) members.

However I tried to set group permissions on a directory and they only 
work for one of the groups (group1, user1, say) . [I should note here 
that directly applying permissions for each user works fine]


When I do wbinfo -r user2 I see the groups user2 is a member of - 
EXCLUDING the new group I created with him in. wbinfo -r user1 shows 
his new group fine. Also, doing groups user1 works fine. groups 
user2,  again,  excludes the new group I created.


When I do wbinfo -a user2%user2passwd on a machine it authenticates 
user2 and seems to update. Now wbinfo -r and groups show the new 
groups and the permissions work fine. And it seems that in the case of 
user2, I have to do this manually after every change I make, whereas 
user1 works fine.



These two accounts in active directory are identical - apart from the 
two new groups. I cannot see where one user account trips up whereas the 
other is OK.


Can anyone suggest what might be the culprit here? While the wbinfo -a 
route works, Id rather know more!


Thanks you for any help,
Kris Monstad




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


[Samba] Fwd: Force group gid

2006-09-21 Thread Lewis Shobbrook
Addition to my previous post...

There are also instances where the use of force user responding to a uid would 
be advantageous.  E.g. a local users account conflicting with a domain 
account of the same name.
e.g. 
force user = lewis 

results in access denied on writes as the service connects to the share  using 
the account MYDOMAIN\lewis  with uid 10007 instead of the local unix lewis 
with uid 1007 account 

Just my $.02 worth...

--  Forwarded Message  --

Subject: Force group gid
Date: Friday 22 September 2006 12:19 pm
From: Lewis Shobbrook [EMAIL PROTECTED]
To: samba@lists.samba.org

Hi All,

I note from previous posts that the uid  gid are not supported in smb.conf.
My issue is that I have mysql auth backend for ftp sites, that I'd like to
share directories for internal access.  There is currently no way I can see
to force the user or group using uid  gid for this type of backend.
Can anyone offer any suggestions as a work around to this?

Cheers,

Lewis

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


svn commit: samba r18776 - in branches/SAMBA_4_0/source: librpc/idl torture/rpc

2006-09-21 Thread gd
Author: gd
Date: 2006-09-21 06:06:59 + (Thu, 21 Sep 2006)
New Revision: 18776

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

Log:
Fill in and test dfs_ManagerInitialize().

Guenther

Modified:
   branches/SAMBA_4_0/source/librpc/idl/dfs.idl
   branches/SAMBA_4_0/source/torture/rpc/dfs.c


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/dfs.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/dfs.idl2006-09-21 05:44:39 UTC 
(rev 18775)
+++ branches/SAMBA_4_0/source/librpc/idl/dfs.idl2006-09-21 06:06:59 UTC 
(rev 18776)
@@ -327,7 +327,10 @@
);
  
/* Function 0x0e */
-   WERROR dfs_ManagerInitialize();
+   WERROR dfs_ManagerInitialize(
+   [in][string,charset(UTF16)] uint16 *servername,
+   [in]uint32 flags
+   );
 
/* Function 0x0f */
WERROR dfs_AddStdRootForced(

Modified: branches/SAMBA_4_0/source/torture/rpc/dfs.c
===
--- branches/SAMBA_4_0/source/torture/rpc/dfs.c 2006-09-21 05:44:39 UTC (rev 
18775)
+++ branches/SAMBA_4_0/source/torture/rpc/dfs.c 2006-09-21 06:06:59 UTC (rev 
18776)
@@ -155,6 +155,34 @@
return True;
 }
 
+static BOOL test_ManagerInitialize(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, 
const char *host)
+{
+   NTSTATUS status;
+   enum dfs_ManagerVersion version;
+   struct dfs_ManagerInitialize r;
+
+   printf(Testing ManagerInitialize\n);
+
+   if (!test_GetManagerVersion(p, mem_ctx, version)) {
+   return False;
+   }
+
+   r.in.servername = host;
+   r.in.flags = 0;
+
+   status = dcerpc_dfs_ManagerInitialize(p, mem_ctx, r);
+   if (!NT_STATUS_IS_OK(status)) {
+   printf(ManagerInitialize failed - %s\n, nt_errstr(status));
+   return False;
+   } else if (!W_ERROR_IS_OK(r.out.result)) {
+   printf(dfs_ManagerInitialize failed - %s\n, 
win_errstr(r.out.result));
+   IS_DFS_VERSION_UNSUPPORTED_CALL_W2K3(version, r.out.result);
+   return False;
+   }
+
+   return True;
+}
+
 static BOOL test_GetInfoLevel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, 
uint16_t level,
  const char *root)
 {
@@ -170,10 +198,10 @@
 
status = dcerpc_dfs_GetInfo(p, mem_ctx, r);
if (!NT_STATUS_IS_OK(status)) {
-   printf(Info failed - %s\n, nt_errstr(status));
+   printf(GetInfo failed - %s\n, nt_errstr(status));
return False;
} else if (!W_ERROR_IS_OK(r.out.result)) {
-   printf(GetInfo failed - %s\n, win_errstr(r.out.result));
+   printf(dfs_GetInfo failed - %s\n, win_errstr(r.out.result));
return False;
}
 
@@ -355,7 +383,7 @@
printf(AddStdRootForced failed - %s\n, nt_errstr(status));
return False;
} else if (!W_ERROR_IS_OK(r.out.result)) {
-   printf(AddStdRootForced failed - %s\n, 
win_errstr(r.out.result));
+   printf(dfs_AddStdRootForced failed - %s\n, 
win_errstr(r.out.result));
IS_DFS_VERSION_UNSUPPORTED_CALL_W2K3(version, r.out.result);
return False;
}
@@ -471,6 +499,7 @@
}
 
ret = test_GetManagerVersion(p, mem_ctx, version);
+   ret = test_ManagerInitialize(p, mem_ctx, host);
ret = test_Enum(p, mem_ctx);
ret = test_EnumEx(p, mem_ctx, host);
ret = test_StdRoot(p, mem_ctx, host);



svn commit: samba r18777 - in branches/SAMBA_4_0/source/lib/ldb: common include

2006-09-21 Thread idra
Author: idra
Date: 2006-09-21 06:14:32 + (Thu, 21 Sep 2006)
New Revision: 18777

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

Log:

add helper functions to create an ldb_request structure


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb.c
===
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb.c  2006-09-21 06:06:59 UTC 
(rev 18776)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb.c  2006-09-21 06:14:32 UTC 
(rev 18777)
@@ -559,34 +559,33 @@
return LDB_ERR_OPERATIONS_ERROR;
 }
 
-/*
-  note that ldb_search() will automatically replace a NULL 'base' value with 
the 
-  defaultNamingContext from the rootDSE if available.
-*/
-int ldb_search(struct ldb_context *ldb, 
-  const struct ldb_dn *base,
-  enum ldb_scope scope,
-  const char *expression,
-  const char * const *attrs, 
-  struct ldb_result **res)
+int ldb_build_search_req(struct ldb_request **ret_req,
+   struct ldb_context *ldb,
+   void *mem_ctx,
+   const struct ldb_dn *base,
+   enum ldb_scope scope,
+   const char *expression,
+   const char * const *attrs,
+   struct ldb_control **controls,
+   void *context,
+   ldb_request_callback_t callback)
 {
struct ldb_request *req;
-   int ret;
 
-   *res = NULL;
-   
-   req = talloc(ldb, struct ldb_request);
+   *ret_req = NULL;
+
+   req = talloc(mem_ctx, struct ldb_request);
if (req == NULL) {
ldb_set_errstring(ldb, Out of Memory);
return LDB_ERR_OPERATIONS_ERROR;
}
 
+   req-operation = LDB_SEARCH;
if (base == NULL) {
-   base = ldb_get_default_basedn(ldb);
+   req-op.search.base = ldb_dn_new(req);
+   } else {
+   req-op.search.base = base;
}
-
-   req-operation = LDB_SEARCH;
-   req-op.search.base = base;
req-op.search.scope = scope;
 
req-op.search.tree = ldb_parse_tree(req, expression);
@@ -596,16 +595,163 @@
return LDB_ERR_OPERATIONS_ERROR;
}
 
+   req-op.search.attrs = attrs;
+   req-controls = controls;
+   req-context = context;
+   req-callback = callback;
+
+   *ret_req = req;
+   return LDB_SUCCESS;
+}
+
+int ldb_build_add_req(struct ldb_request **ret_req,
+   struct ldb_context *ldb,
+   void *mem_ctx,
+   struct ldb_message *message,
+   struct ldb_control **controls,
+   void *context,
+   ldb_request_callback_t callback)
+{
+   struct ldb_request *req;
+
+   *ret_req = NULL;
+
+   req = talloc(mem_ctx, struct ldb_request);
+   if (req == NULL) {
+   ldb_set_errstring(ldb, Out of Memory);
+   return LDB_ERR_OPERATIONS_ERROR;
+   }
+
+   req-operation = LDB_ADD;
+   req-op.add.message = message;
+   req-controls = controls;
+   req-context = context;
+   req-callback = callback;
+
+   *ret_req = req;
+
+   return LDB_SUCCESS;
+}
+
+int ldb_build_mod_req(struct ldb_request **ret_req,
+   struct ldb_context *ldb,
+   void *mem_ctx,
+   struct ldb_message *message,
+   struct ldb_control **controls,
+   void *context,
+   ldb_request_callback_t callback)
+{
+   struct ldb_request *req;
+
+   *ret_req = NULL;
+
+   req = talloc(mem_ctx, struct ldb_request);
+   if (req == NULL) {
+   ldb_set_errstring(ldb, Out of Memory);
+   return LDB_ERR_OPERATIONS_ERROR;
+   }
+
+   req-operation = LDB_MODIFY;
+   req-op.mod.message = message;
+   req-controls = controls;
+   req-context = context;
+   req-callback = callback;
+
+   *ret_req = req;
+
+   return LDB_SUCCESS;
+}
+
+int ldb_build_del_req(struct ldb_request **ret_req,
+   struct ldb_context *ldb,
+   void *mem_ctx,
+   struct ldb_dn *dn,
+   struct ldb_control **controls,
+   void *context,
+   ldb_request_callback_t callback)
+{
+   struct ldb_request *req;
+
+   *ret_req = NULL;
+
+   req = talloc(mem_ctx, struct ldb_request);
+   if (req == NULL) {
+   ldb_set_errstring(ldb, Out of Memory);
+   return LDB_ERR_OPERATIONS_ERROR;
+   }
+
+   req-operation = LDB_DELETE;
+   req-op.del.dn = dn;
+   

svn commit: samba r18778 - in branches/SAMBA_3_0/source/script/tests: .

2006-09-21 Thread jelmer
Author: jelmer
Date: 2006-09-21 06:15:17 + (Thu, 21 Sep 2006)
New Revision: 18778

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

Log:
Fix comparison.

Modified:
   branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh


Changeset:
Modified: branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh
===
--- branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh 2006-09-21 
06:14:32 UTC (rev 18777)
+++ branches/SAMBA_3_0/source/script/tests/test_posix_s3.sh 2006-09-21 
06:15:17 UTC (rev 18778)
@@ -35,7 +35,7 @@
 
 rpc=RPC-AUTHCONTEXT RPC-BINDSAMBA3 RPC-SAMBA3-SRVSVC RPC-SAMBA3-SHARESEC 
RPC-UNIXINFO
 
-if x$RUN_FROM_BUILD_FARM = xyes; then
+if test x$RUN_FROM_BUILD_FARM = xyes; then
rpc=$rpc RPC-NETLOGSAMBA3 RPC-SAMBA3SESSIONKEY RPC-SAMBA3-GETUSERNAME
 fi
 



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

2006-09-21 Thread abartlet
Author: abartlet
Date: 2006-09-21 06:34:21 + (Thu, 21 Sep 2006)
New Revision: 18779

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

Log:
Not simo's fault, this is actually a bug I introduced a week ago, when I fixed 
the previous bug in this code. 

We need to remove fragments from the incoming fragment list, or else
we leak (actually, we walk free()'ed data as we add/remove elements).

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-09-21 
06:15:17 UTC (rev 18778)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c2006-09-21 
06:34:21 UTC (rev 18779)
@@ -1056,7 +1056,10 @@
DLIST_ADD_END(dce_conn-incoming_fragmented_call_list, call, 
  struct dcesrv_call_state *);
return NT_STATUS_OK;
-   }
+   } 
+   
+   /* This removes any fragments we may have had stashed away */
+   DLIST_REMOVE(dce_conn-incoming_fragmented_call_list, call);
 
switch (call-pkt.ptype) {
case DCERPC_PKT_BIND:



svn commit: samba r18780 - in branches/SAMBA_4_0/source: .

2006-09-21 Thread jelmer
Author: jelmer
Date: 2006-09-21 06:42:52 + (Thu, 21 Sep 2006)
New Revision: 18780

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

Log:
Add convenience make testenv to launch the xtermtest Andrew just added.

Modified:
   branches/SAMBA_4_0/source/main.mk


Changeset:
Modified: branches/SAMBA_4_0/source/main.mk
===
--- branches/SAMBA_4_0/source/main.mk   2006-09-21 06:34:21 UTC (rev 18779)
+++ branches/SAMBA_4_0/source/main.mk   2006-09-21 06:42:52 UTC (rev 18780)
@@ -286,6 +286,9 @@
 quicktest: all
$(srcdir)/script/tests/selftest.sh ${selftest_prefix} quick 
SOCKET_WRAPPER
 
+testenv: all
+   $(srcdir)/script/tests/selftest.sh ${selftest_prefix} xterm 
SOCKET_WRAPPER
+
 valgrindtest: valgrindtest-quick
 
 valgrindtest-quick: all



svn commit: samba r18781 - in branches/SAMBA_4_0/source: dsdb/samdb/ldb_modules lib/ldb/common lib/ldb/include lib/ldb/ldb_tdb lib/ldb/modules script/tests

2006-09-21 Thread abartlet
Author: abartlet
Date: 2006-09-21 06:44:12 + (Thu, 21 Sep 2006)
New Revision: 18781

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

Log:
Move the usnCreated and usnChanged handling around again.

This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb.  For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.

This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.

To assist this, we also store the last modified time in the TDB,
whenever we change a value.

Andrew Bartlett


Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/entryUUID.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/objectguid.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/partition.c
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c
   branches/SAMBA_4_0/source/lib/ldb/common/ldb.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
   branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_cache.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.c
   branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_tdb.h
   branches/SAMBA_4_0/source/lib/ldb/modules/operational.c
   branches/SAMBA_4_0/source/script/tests/mktestsetup.sh


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


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

2006-09-21 Thread gd
Author: gd
Date: 2006-09-21 07:19:47 + (Thu, 21 Sep 2006)
New Revision: 18782

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

Log:
Do not send random data to the password change (although that reveals
interesting new password set tests), make sure to send valid characters.

Guenther

Modified:
   branches/SAMBA_4_0/source/torture/rpc/samr.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samr.c
===
--- branches/SAMBA_4_0/source/torture/rpc/samr.c2006-09-21 06:44:12 UTC 
(rev 18781)
+++ branches/SAMBA_4_0/source/torture/rpc/samr.c2006-09-21 07:19:47 UTC 
(rev 18782)
@@ -1884,11 +1884,11 @@
 
{
char simple_pass[9];
-   char v = (char)random();
+   char *v = generate_random_str(mem_ctx, 1);
int i;
 
for (i=0; i ARRAY_SIZE(simple_pass); i++) {
-   simple_pass[i] = v;
+   simple_pass[i] = *v;
}
simple_pass[i] = '\0';
 



svn commit: samba r18783 - in branches/SAMBA_4_0/source: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-21 07:35:30 + (Thu, 21 Sep 2006)
New Revision: 18783

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

Log:
fix make pch

metze
Modified:
   branches/SAMBA_4_0/source/main.mk


Changeset:
Modified: branches/SAMBA_4_0/source/main.mk
===
--- branches/SAMBA_4_0/source/main.mk   2006-09-21 07:19:47 UTC (rev 18782)
+++ branches/SAMBA_4_0/source/main.mk   2006-09-21 07:35:30 UTC (rev 18783)
@@ -361,7 +361,7 @@
 
 .h.h.gch:
@echo Precompiling $
-   @$(CC) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) 
$(PICFLAG) -c $ -o $@
+   @$(CC) -Ilib/replace `$(PERL) $(srcdir)/script/cflags.pl [EMAIL 
PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@
 
 .y.c:
@echo Building $ with $(YACC)



svn commit: samba r18784 - in branches/SAMBA_3_0/source: include lib/replace libaddns nsswitch

2006-09-21 Thread metze
Author: metze
Date: 2006-09-21 08:48:18 + (Thu, 21 Sep 2006)
New Revision: 18784

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

Log:
hopefully fix the BOOL bug on AIX

metze

Modified:
   branches/SAMBA_3_0/source/include/adt_tree.h
   branches/SAMBA_3_0/source/include/includes.h
   branches/SAMBA_3_0/source/include/privileges.h
   branches/SAMBA_3_0/source/lib/replace/replace.h
   branches/SAMBA_3_0/source/libaddns/dns.h
   branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/adt_tree.h
===
--- branches/SAMBA_3_0/source/include/adt_tree.h2006-09-21 07:35:30 UTC 
(rev 18783)
+++ branches/SAMBA_3_0/source/include/adt_tree.h2006-09-21 08:48:18 UTC 
(rev 18784)
@@ -21,9 +21,9 @@
 #ifndef ADT_TREE_H
 #define ADT_TREE_H
 
-#ifndef _BOOL
+#ifndef _UPPER_BOOL
 typedef int BOOL;
-#define _BOOL  
+#define _UPPER_BOOL  
 #endif
 
 

Modified: branches/SAMBA_3_0/source/include/includes.h
===
--- branches/SAMBA_3_0/source/include/includes.h2006-09-21 07:35:30 UTC 
(rev 18783)
+++ branches/SAMBA_3_0/source/include/includes.h2006-09-21 08:48:18 UTC 
(rev 18784)
@@ -612,9 +612,9 @@
 #define MAX(a,b) ((a)(b)?(a):(b))
 #endif
 
-#ifndef _BOOL
+#ifndef _UPPER_BOOL
 typedef int BOOL;
-#define _BOOL   /* So we don't typedef BOOL again in vfs.h */
+#define _UPPER_BOOL
 #endif
 
 #ifdef HAVE_BROKEN_GETGROUPS

Modified: branches/SAMBA_3_0/source/include/privileges.h
===
--- branches/SAMBA_3_0/source/include/privileges.h  2006-09-21 07:35:30 UTC 
(rev 18783)
+++ branches/SAMBA_3_0/source/include/privileges.h  2006-09-21 08:48:18 UTC 
(rev 18784)
@@ -93,9 +93,9 @@
uint32 attr;
 } LUID_ATTR;
 
-#ifndef _BOOL
+#ifndef _UPPER_BOOL
 typedef int BOOL;
-#define _BOOL   /* So we don't typedef BOOL again in vfs.h */
+#define _UPPER_BOOL
 #endif
 
 typedef struct {

Modified: branches/SAMBA_3_0/source/lib/replace/replace.h
===
--- branches/SAMBA_3_0/source/lib/replace/replace.h 2006-09-21 07:35:30 UTC 
(rev 18783)
+++ branches/SAMBA_3_0/source/lib/replace/replace.h 2006-09-21 08:48:18 UTC 
(rev 18784)
@@ -333,6 +333,7 @@
  *
  * IRIX, HPUX, MacOS 10 and Solaris need BOOL_DEFINED
  * Tru64 needs _BOOL_EXISTS
+ * AIX needs _BOOL,_TRUE,_FALSE
  */
 #ifndef BOOL_DEFINED
 #define BOOL_DEFINED
@@ -340,6 +341,9 @@
 #ifndef _BOOL_EXISTS
 #define _BOOL_EXISTS
 #endif
+#ifndef _BOOL
+#define _BOOL
+#endif
 
 #ifndef __bool_true_false_are_defined
 #define __bool_true_false_are_defined
@@ -352,6 +356,13 @@
 #define false (0)
 #endif
 
+#ifndef _TRUE
+#define _TRUE
+#endif
+#ifndef _FALSE
+#define _FALSE
+#endif
+
 #ifndef HAVE_FUNCTION_MACRO
 #ifdef HAVE_func_MACRO
 #define __FUNCTION__ __func__

Modified: branches/SAMBA_3_0/source/libaddns/dns.h
===
--- branches/SAMBA_3_0/source/libaddns/dns.h2006-09-21 07:35:30 UTC (rev 
18783)
+++ branches/SAMBA_3_0/source/libaddns/dns.h2006-09-21 08:48:18 UTC (rev 
18784)
@@ -279,10 +279,9 @@
 
 typedef long HANDLE;
 
-#ifndef _BOOL
+#ifndef _UPPER_BOOL
 typedef int BOOL;
-
-#define _BOOL  /* So we don't typedef BOOL again */
+#define _UPPER_BOOL
 #endif
 
 

Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h
===
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h 2006-09-21 
07:35:30 UTC (rev 18783)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h 2006-09-21 
08:48:18 UTC (rev 18784)
@@ -95,8 +95,8 @@
 typedef char fstring[FSTRING_LEN];
 #endif
 
-#ifndef _BOOL
-#define _BOOL  /* So we don't typedef BOOL again in vfs.h */
+#ifndef _UPPER_BOOL
+#define _UPPER_BOOL
 #define False (0)
 #define True (1)
 #define Auto (2)



svn commit: samba r18785 - in branches/SAMBA_3_0/source/modules: .

2006-09-21 Thread vlendec
Author: vlendec
Date: 2006-09-21 14:17:00 + (Thu, 21 Sep 2006)
New Revision: 18785

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

Log:
Check in Peter Somogyis build fix
Modified:
   branches/SAMBA_3_0/source/modules/nfs4_acls.c


Changeset:
Modified: branches/SAMBA_3_0/source/modules/nfs4_acls.c
===
--- branches/SAMBA_3_0/source/modules/nfs4_acls.c   2006-09-21 08:48:18 UTC 
(rev 18784)
+++ branches/SAMBA_3_0/source/modules/nfs4_acls.c   2006-09-21 14:17:00 UTC 
(rev 18785)
@@ -446,16 +446,16 @@
memset(ace_v4, 0, sizeof(SMB_ACE4PROP_T));
ace_v4-aceType = ace_nt-type; /* only ACCES|DENY supported right now 
*/
ace_v4-aceFlags = ace_nt-flags  SEC_ACE_FLAG_VALID_INHERIT;
-   ace_v4-aceMask = ace_nt-info.mask 
+   ace_v4-aceMask = ace_nt-access_mask 
(STD_RIGHT_ALL_ACCESS | SA_RIGHT_FILE_ALL_ACCESS);
 
if (ace_v4-aceFlags!=ace_nt-flags)
DEBUG(9, (ace_v4-aceFlags(0x%x)!=ace_nt-flags(0x%x)\n,
ace_v4-aceFlags, ace_nt-flags));
 
-   if (ace_v4-aceMask!=ace_nt-info.mask)
-   DEBUG(9, (ace_v4-aceMask(0x%x)!=ace_nt-info.mask(0x%x)\n,
-   ace_v4-aceMask, ace_nt-info.mask));
+   if (ace_v4-aceMask!=ace_nt-access_mask)
+   DEBUG(9, (ace_v4-aceMask(0x%x)!=ace_nt-access_mask(0x%x)\n,
+   ace_v4-aceMask, ace_nt-access_mask));
 
if (sid_equal(ace_nt-trustee, global_sid_World)) {
ace_v4-who.special_id = SMB_ACE4_WHO_EVERYONE;
@@ -557,7 +557,7 @@
BOOLaddNewACE = True;
 
if (smbacl4_fill_ace4(mem_ctx, pparams, ownerUID, ownerGID,
-   dacl-ace + i, ace_v4))
+   dacl-aces + i, ace_v4))
return NULL;
 
if (pparams-acedup!=e_dontcare) {



svn commit: samba r18786 - in branches/SAMBA_4_0/testprogs/ejs: .

2006-09-21 Thread abartlet
Author: abartlet
Date: 2006-09-21 16:42:56 + (Thu, 21 Sep 2006)
New Revision: 18786

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

Log:
I moved the usnChanged code around, and it now loaded in a different
module.  I forgot to commit this last night.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/testprogs/ejs/ldb.js


Changeset:
Modified: branches/SAMBA_4_0/testprogs/ejs/ldb.js
===
--- branches/SAMBA_4_0/testprogs/ejs/ldb.js 2006-09-21 14:17:00 UTC (rev 
18785)
+++ branches/SAMBA_4_0/testprogs/ejs/ldb.js 2006-09-21 16:42:56 UTC (rev 
18786)
@@ -154,6 +154,8 @@
 
var res = ldb.search(x=8, cn=PartTest, ldb.SCOPE_DEFAULT);
assert(res[0].objectGUID != undefined);
+   assert(res[0].uSNCreated != undefined);
+   assert(res[0].uSNChanged != undefined);
assert(res[0].createTimestamp == undefined);
assert(res[0].whenCreated != undefined);
assert(res[0].name == x8);
@@ -241,7 +243,7 @@
var res8 = ldb.search(x=11, cn=sub,cn=parttest, ldb.SCOPE_DEFAULT, 
attrs);

assert(res8[0].objectGUID == undefined); /* The objectGUID module is 
not loaded here */
-   assert(res8[0].uSNCreated != undefined);
+   assert(res8[0].uSNCreated == undefined); /* The objectGUID module is 
not loaded here */
assert(res8[0].name == x11);
assert(res8[0].cn == x11);
 



svn commit: samba r18787 - in branches/SAMBA_3_0/source: include lib script smbd

2006-09-21 Thread jra
Author: jra
Date: 2006-09-21 17:00:07 + (Thu, 21 Sep 2006)
New Revision: 18787

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

Log:
Fix the strlen_m and strlen_m_term code by merging
in (and using elsewhere) next_codepoint from Samba4.
Jerry please test.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/include/charset.h
   branches/SAMBA_3_0/source/include/smb.h
   branches/SAMBA_3_0/source/lib/charcnv.c
   branches/SAMBA_3_0/source/lib/util_str.c
   branches/SAMBA_3_0/source/script/mkproto.awk
   branches/SAMBA_3_0/source/smbd/reply.c
   branches/SAMBA_3_0/source/smbd/service.c


Changeset:
Modified: branches/SAMBA_3_0/source/include/charset.h
===
--- branches/SAMBA_3_0/source/include/charset.h 2006-09-21 16:42:56 UTC (rev 
18786)
+++ branches/SAMBA_3_0/source/include/charset.h 2006-09-21 17:00:07 UTC (rev 
18787)
@@ -22,6 +22,7 @@
 /* this defines the charset types used in samba */
 typedef enum {CH_UCS2=0, CH_UTF16=0, CH_UNIX=1, CH_DISPLAY=2, CH_DOS=3, 
CH_UTF8=4} charset_t;
 
+#if 0
 /* FIXME!!!  Hack job for now to get the lsa ndr code compiling */
 #ifndef strlen_m
 #define strlen_m strlen
@@ -29,8 +30,8 @@
 #ifndef strlen_m_term
 #define strlen_m_term strlen
 #endif
+#endif
 
-
 #define NUM_CHARSETS 5
 
 /* 

Modified: branches/SAMBA_3_0/source/include/smb.h
===
--- branches/SAMBA_3_0/source/include/smb.h 2006-09-21 16:42:56 UTC (rev 
18786)
+++ branches/SAMBA_3_0/source/include/smb.h 2006-09-21 17:00:07 UTC (rev 
18787)
@@ -170,6 +170,10 @@
 #define COPY_UCS2_CHAR(dest,src) (((unsigned char *)(dest))[0] = ((unsigned 
char *)(src))[0],\
((unsigned char *)(dest))[1] = ((unsigned char 
*)(src))[1], (dest))
 
+/* Large data type for manipulating uint32 unicode codepoints */
+typedef uint32 codepoint_t;
+#define INVALID_CODEPOINT ((codepoint_t)-1)
+
 /* pipe string names */
 #define PIPE_LANMAN   \\PIPE\\LANMAN
 #define PIPE_SRVSVC   \\PIPE\\srvsvc

Modified: branches/SAMBA_3_0/source/lib/charcnv.c
===
--- branches/SAMBA_3_0/source/lib/charcnv.c 2006-09-21 16:42:56 UTC (rev 
18786)
+++ branches/SAMBA_3_0/source/lib/charcnv.c 2006-09-21 17:00:07 UTC (rev 
18787)
@@ -1374,33 +1374,86 @@
return 0;
 }
 
-/
- Calculate the size (in bytes) of the next multibyte character in
- our internal character set. Note that p must be pointing to a
- valid mb char, not within one.
-/
+/*
+  Return the unicode codepoint for the next multi-byte CH_UNIX character
+  in the string. The unicode codepoint (codepoint_t) is an unsinged 32 bit 
value.
 
-size_t next_mb_char_size(const char *s)
+  Also return the number of bytes consumed (which tells the caller
+  how many bytes to skip to get to the next CH_UNIX character).
+
+  Return INVALID_CODEPOINT if the next character cannot be converted.
+*/
+
+codepoint_t next_codepoint(const char *str, size_t *size)
 {
-   size_t i;
+   /* It cannot occupy more than 4 bytes in UTF16 format */
+   uint8_t buf[4];
+   smb_iconv_t descriptor;
+   size_t ilen_orig;
+   size_t ilen;
+   size_t olen;
+   char *outbuf;
 
-   if (!(*s  0x80))
-   return 1; /* ascii. */
+   if ((str[0]  0x80) == 0) {
+   *size = 1;
+   return (codepoint_t)str[0];
+   }
 
-   conv_silent = True;
-   for ( i = 1; i =4; i++ ) {
-   smb_ucs2_t uc;
-   if (convert_string(CH_UNIX, CH_UCS2, s, i, uc, 2, False) == 2) 
{
-#if 0 /* JRATEST */
-   DEBUG(10,(next_mb_char_size: size %u at string %s\n,
-   (unsigned int)i, s));
-#endif
-   conv_silent = False;
-   return i;
+   /* We assume that no multi-byte character can take
+  more than 5 bytes. This is OK as we only
+  support codepoints up to 1M */
+
+   ilen_orig = strnlen(str, 5);
+   ilen = ilen_orig;
+
+lazy_initialize_conv();
+
+   /* CH_UCS2 == UTF16-LE. */
+descriptor = conv_handles[CH_UNIX][CH_UCS2];
+   if (descriptor == (smb_iconv_t)-1 || descriptor == (smb_iconv_t)0) {
+   *size = 1;
+   return INVALID_CODEPOINT;
+   }
+
+   /* This looks a little strange, but it is needed to cope
+  with codepoints above 64k which are encoded as per RFC2781. */
+   olen = 2;
+   outbuf = (char *)buf;
+   smb_iconv(descriptor, str, ilen, outbuf, olen);
+   if (olen == 2) {
+   /* We failed to convert to a 2 byte character.
+  See if we can convert to a 4 UTF16-LE byte char encoding.
+   */
+   olen = 4;
+

svn commit: samba r18788 - in branches/SAMBA_3_0/source/librpc: gen_ndr idl

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 17:13:48 + (Thu, 21 Sep 2006)
New Revision: 18788

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

Log:
updating the IDL for QueryValue
Modified:
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/srv_winreg.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/winreg.h
   branches/SAMBA_3_0/source/librpc/idl/winreg.idl


Changeset:
Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c   2006-09-21 
17:00:07 UTC (rev 18787)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c   2006-09-21 
17:13:48 UTC (rev 18788)
@@ -512,7 +512,7 @@
return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t *data, uint32_t *size, uint32_t *length)
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length)
 {
struct winreg_QueryValue r;
NTSTATUS status;

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h   2006-09-21 
17:00:07 UTC (rev 18787)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h   2006-09-21 
17:13:48 UTC (rev 18788)
@@ -18,7 +18,7 @@
 NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, 
uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct 
winreg_String string2, uint32_t unknown2);
 NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, 
uint32_t unknown, uint32_t access_mask, struct policy_handle *handle);
 NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String class_in, struct 
winreg_String *class_out, uint32_t *num_subkeys, uint32_t *max_subkeylen, 
uint32_t *max_subkeysize, uint32_t *num_values, uint32_t *max_valnamelen, 
uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time);
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t *data, uint32_t *size, uint32_t *length);
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length);
 NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);
 NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);
 NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c   2006-09-21 
17:00:07 UTC (rev 18787)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c   2006-09-21 
17:13:48 UTC (rev 18788)
@@ -2272,6 +2272,7 @@
 
 NTSTATUS ndr_push_winreg_QueryValue(struct ndr_push *ndr, int flags, const 
struct winreg_QueryValue *r)
 {
+   uint32_t cntr_data_1;
if (flags  NDR_IN) {
if (r-in.handle == NULL) return 
NT_STATUS_INVALID_PARAMETER_MIX;
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS|NDR_BUFFERS, 
r-in.handle));
@@ -2280,12 +2281,13 @@
if (r-in.type) {
NDR_CHECK(ndr_push_winreg_Type(ndr, NDR_SCALARS, 
*r-in.type));
}
-   NDR_CHECK(ndr_push_unique_ptr(ndr, r-in.data));
-   if (r-in.data) {
-   NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 
*r-in.size));
-   NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
-   NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 
*r-in.length));
-   NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, 
r-in.data, *r-in.length));
+   if (r-in.data == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
+   NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r-in.size));
+   NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
+   NDR_CHECK(ndr_push_uint32(ndr, 

svn commit: samba r18789 - in branches/SAMBA_3_0/source: . include librpc/gen_ndr librpc/idl rpc_server smbd

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 17:51:06 + (Thu, 21 Sep 2006)
New Revision: 18789

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

Log:
Replace the winreg server code with the libndr parsing code.
Many things work (OpenHKLM, etc...) but some still don't.
This shouldn't block anyone so I'm checking it in.
Will probably move to a bzr tree after this for
longer dev cycles between checkins.




Added:
   branches/SAMBA_3_0/source/rpc_server/srv_initshutdown_nt.c
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c
Removed:
   branches/SAMBA_3_0/source/rpc_server/srv_reg.c
   branches/SAMBA_3_0/source/rpc_server/srv_reg_nt.c
Modified:
   branches/SAMBA_3_0/source/Makefile.in
   branches/SAMBA_3_0/source/configure.in
   branches/SAMBA_3_0/source/include/rpc_client.h
   branches/SAMBA_3_0/source/include/rpc_reg.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/winreg.h
   branches/SAMBA_3_0/source/librpc/idl/winreg.idl
   branches/SAMBA_3_0/source/rpc_server/srv_pipe.c
   branches/SAMBA_3_0/source/smbd/nttrans.c


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


svn commit: samba r18790 - in branches/SAMBA_3_0/source: librpc/gen_ndr librpc/idl rpc_server

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 18:09:20 + (Thu, 21 Sep 2006)
New Revision: 18790

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

Log:
Correct the IDL (still a bug in pidl) for QueryValue()
Modified:
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/srv_winreg.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/winreg.h
   branches/SAMBA_3_0/source/librpc/idl/winreg.idl
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c   2006-09-21 
17:51:06 UTC (rev 18789)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c   2006-09-21 
18:09:20 UTC (rev 18790)
@@ -512,7 +512,7 @@
return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length)
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t *data, uint32_t *size, uint32_t *length)
 {
struct winreg_QueryValue r;
NTSTATUS status;

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h   2006-09-21 
17:51:06 UTC (rev 18789)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.h   2006-09-21 
18:09:20 UTC (rev 18790)
@@ -18,7 +18,7 @@
 NTSTATUS rpccli_winreg_NotifyChangeKeyValue(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, struct policy_handle *handle, uint8_t watch_subtree, 
uint32_t notify_filter, uint32_t unknown, struct winreg_String string1, struct 
winreg_String string2, uint32_t unknown2);
 NTSTATUS rpccli_winreg_OpenKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *parent_handle, struct winreg_String keyname, 
uint32_t unknown, uint32_t access_mask, struct policy_handle *handle);
 NTSTATUS rpccli_winreg_QueryInfoKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String class_in, struct 
winreg_String *class_out, uint32_t *num_subkeys, uint32_t *max_subkeylen, 
uint32_t *max_subkeysize, uint32_t *num_values, uint32_t *max_valnamelen, 
uint32_t *max_valbufsize, uint32_t *secdescsize, NTTIME *last_changed_time);
-NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t **data, uint32_t *size, uint32_t *length);
+NTSTATUS rpccli_winreg_QueryValue(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, struct policy_handle *handle, struct winreg_String value_name, enum 
winreg_Type *type, uint8_t *data, uint32_t *size, uint32_t *length);
 NTSTATUS rpccli_winreg_ReplaceKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);
 NTSTATUS rpccli_winreg_RestoreKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);
 NTSTATUS rpccli_winreg_SaveKey(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx);

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c   2006-09-21 
17:51:06 UTC (rev 18789)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c   2006-09-21 
18:09:20 UTC (rev 18790)
@@ -2272,7 +2272,6 @@
 
 NTSTATUS ndr_push_winreg_QueryValue(struct ndr_push *ndr, int flags, const 
struct winreg_QueryValue *r)
 {
-   uint32_t cntr_data_1;
if (flags  NDR_IN) {
if (r-in.handle == NULL) return 
NT_STATUS_INVALID_PARAMETER_MIX;
NDR_CHECK(ndr_push_policy_handle(ndr, NDR_SCALARS|NDR_BUFFERS, 
r-in.handle));
@@ -2286,9 +2285,7 @@
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 
*r-in.size));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 0));
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 
*r-in.length));
-   for (cntr_data_1 = 0; cntr_data_1  *r-in.length; 
cntr_data_1++) {
-   NDR_CHECK(ndr_push_unique_ptr(ndr, 
r-in.data[cntr_data_1]));
-   }
+   NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, 
r-in.data, *r-in.length));
}
NDR_CHECK(ndr_push_unique_ptr(ndr, r-in.size));
if (r-in.size) {
@@ -2309,9 +2306,7 @@
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, 
*r-out.size));
  

svn commit: samba r18791 - in branches/SAMBA_3_0/source/librpc/ndr: .

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 18:16:16 + (Thu, 21 Sep 2006)
New Revision: 18791

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

Log:
print the error string and not the raw value
Modified:
   branches/SAMBA_3_0/source/librpc/ndr/ndr_basic.c


Changeset:
Modified: branches/SAMBA_3_0/source/librpc/ndr/ndr_basic.c
===
--- branches/SAMBA_3_0/source/librpc/ndr/ndr_basic.c2006-09-21 18:09:20 UTC 
(rev 18790)
+++ branches/SAMBA_3_0/source/librpc/ndr/ndr_basic.c2006-09-21 18:16:16 UTC 
(rev 18791)
@@ -250,7 +250,7 @@
 
 void ndr_print_WERROR(struct ndr_print *ndr, const char *name, WERROR r)
 {
-   ndr-print(ndr, %-25s: %d, name, W_ERROR_V(r));
+   ndr-print(ndr, %-25s: %s, name, dos_errstr(r));
 }
 
 /*



svn commit: samba r18792 - in branches/SAMBA_3_0/source/rpc_server: .

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 18:22:51 + (Thu, 21 Sep 2006)
New Revision: 18792

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

Log:
small fix for server QueryValue code
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c
===
--- branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c2006-09-21 
18:16:16 UTC (rev 18791)
+++ branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c2006-09-21 
18:22:51 UTC (rev 18792)
@@ -363,8 +363,7 @@
return WERR_BADFID;
 
*size = *length = *type = 0;
-   value_name.name = NULL;
-   
+   
DEBUG(7,(_reg_info: policy key name = [%s]\n, regkey-name));
DEBUG(7,(_reg_info: policy key type = [%08x]\n, regkey-type));




svn commit: samba r18793 - in branches/SAMBA_3_0/source: include lib librpc/ndr smbd

2006-09-21 Thread jra
Author: jra
Date: 2006-09-21 18:37:09 + (Thu, 21 Sep 2006)
New Revision: 18793

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

Log:
Fix BE string handling in the auto-generated
code. Should now work again with ASU.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/include/charset.h
   branches/SAMBA_3_0/source/lib/charcnv.c
   branches/SAMBA_3_0/source/lib/util_reg.c
   branches/SAMBA_3_0/source/lib/util_unistr.c
   branches/SAMBA_3_0/source/librpc/ndr/ndr_string.c
   branches/SAMBA_3_0/source/smbd/mangle_hash2.c


Changeset:
Modified: branches/SAMBA_3_0/source/include/charset.h
===
--- branches/SAMBA_3_0/source/include/charset.h 2006-09-21 18:22:51 UTC (rev 
18792)
+++ branches/SAMBA_3_0/source/include/charset.h 2006-09-21 18:37:09 UTC (rev 
18793)
@@ -20,20 +20,10 @@
 */
 
 /* this defines the charset types used in samba */
-typedef enum {CH_UCS2=0, CH_UTF16=0, CH_UNIX=1, CH_DISPLAY=2, CH_DOS=3, 
CH_UTF8=4} charset_t;
+typedef enum {CH_UTF16LE=0, CH_UTF16=0, CH_UNIX=1, CH_DISPLAY=2, CH_DOS=3, 
CH_UTF8=4, CH_UTF16BE=5} charset_t;
 
-#if 0
-/* FIXME!!!  Hack job for now to get the lsa ndr code compiling */
-#ifndef strlen_m
-#define strlen_m strlen
-#endif
-#ifndef strlen_m_term
-#define strlen_m_term strlen
-#endif
-#endif
+#define NUM_CHARSETS 6
 
-#define NUM_CHARSETS 5
-
 /* 
  *   for each charset we have a function that pushes from that charset to a 
ucs2
  *   buffer, and a function that pulls from ucs2 buffer to that  charset.

Modified: branches/SAMBA_3_0/source/lib/charcnv.c
===
--- branches/SAMBA_3_0/source/lib/charcnv.c 2006-09-21 18:22:51 UTC (rev 
18792)
+++ branches/SAMBA_3_0/source/lib/charcnv.c 2006-09-21 18:37:09 UTC (rev 
18793)
@@ -56,7 +56,8 @@
 {
const char *ret = NULL;
 
-   if (ch == CH_UCS2) ret = UTF-16LE;
+   if (ch == CH_UTF16LE) ret = UTF-16LE;
+   else if (ch == CH_UTF16BE) ret = UTF-16BE;
else if (ch == CH_UNIX) ret = lp_unix_charset();
else if (ch == CH_DOS) ret = lp_dos_charset();
else if (ch == CH_DISPLAY) ret = lp_display_charset();
@@ -132,11 +133,11 @@
 
/* so that charset_name() works we need to get the UNIX-UCS2 going
   first */
-   if (!conv_handles[CH_UNIX][CH_UCS2])
-   conv_handles[CH_UNIX][CH_UCS2] = 
smb_iconv_open(charset_name(CH_UCS2), ASCII);
+   if (!conv_handles[CH_UNIX][CH_UTF16LE])
+   conv_handles[CH_UNIX][CH_UTF16LE] = 
smb_iconv_open(charset_name(CH_UTF16LE), ASCII);
 
-   if (!conv_handles[CH_UCS2][CH_UNIX])
-   conv_handles[CH_UCS2][CH_UNIX] = smb_iconv_open(ASCII, 
charset_name(CH_UCS2));
+   if (!conv_handles[CH_UTF16LE][CH_UNIX])
+   conv_handles[CH_UTF16LE][CH_UNIX] = smb_iconv_open(ASCII, 
charset_name(CH_UTF16LE));
 
for (c1=0;c1NUM_CHARSETS;c1++) {
for (c2=0;c2NUM_CHARSETS;c2++) {
@@ -156,10 +157,10 @@
if (conv_handles[c1][c2] == (smb_iconv_t)-1) {
DEBUG(0,(init_iconv: Conversion from %s to %s 
not supported\n,
 charset_name((charset_t)c1), 
charset_name((charset_t)c2)));
-   if (c1 != CH_UCS2) {
+   if (c1 != CH_UTF16LE  c1 != CH_UTF16BE) {
n1 = ASCII;
}
-   if (c2 != CH_UCS2) {
+   if (c2 != CH_UTF16LE  c2 != CH_UTF16BE) {
n2 = ASCII;
}
DEBUG(0,(init_iconv: Attempting to replace 
with conversion from %s to %s\n,
@@ -214,7 +215,7 @@
descriptor = conv_handles[from][to];
 
if (srclen == (size_t)-1) {
-   if (from == CH_UCS2) {
+   if (from == CH_UTF16LE || from == CH_UTF16BE) {
srclen = (strlen_w((const smb_ucs2_t *)src)+1) * 2;
} else {
srclen = strlen((const char *)src)+1;
@@ -286,8 +287,11 @@
if (o_len == 0 || i_len == 0)
return destlen - o_len;
 
-   if (from == CH_UCS2  to != CH_UCS2) {
-   /* Can't convert from ucs2 to multibyte. Replace with 
the default fail char. */
+   if (((from == CH_UTF16LE)||(from == CH_UTF16BE)) 
+   ((to != CH_UTF16LE)||(to != CH_UTF16BE))) {
+   /* Can't convert from utf16 any endian to multibyte.
+  Replace with the default fail char.
+   */
if (i_len  2)
return destlen - o_len;
if (i_len = 2) {
@@ -306,8 +310,10 @@
/* Keep trying with the 

svn commit: samba r18794 - in branches/SAMBA_3_0/source/rpc_server: .

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 18:54:25 + (Thu, 21 Sep 2006)
New Revision: 18794

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

Log:
Make ENumKey() work again in the registry server
Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c
===
--- branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c2006-09-21 
18:37:09 UTC (rev 18793)
+++ branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c2006-09-21 
18:54:25 UTC (rev 18794)
@@ -554,7 +554,7 @@
if ( !regkey )
return WERR_BADFID; 
 
-   if ( !name || !keyclass || !last_changed_time )
+   if ( !name || !keyclass )
return WERR_INVALID_PARAM;
 
DEBUG(8,(_reg_enum_key: enumerating key [%s]\n, regkey-name));
@@ -566,7 +566,9 @@

DEBUG(10,(_reg_enum_key: retrieved subkey named [%s]\n, subkey));

-   *last_changed_time = 0;
+   if ( last_changed_time ) {
+   *last_changed_time = 0;
+   }
keyclass-name = NULL;
if ( (name-name = talloc_strdup( p-mem_ctx, subkey )) == NULL ) {
status = WERR_NOMEM;



svn commit: samba r18795 - in branches/SAMBA_3_0_23/source/utils: .

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-21 19:01:37 + (Thu, 21 Sep 2006)
New Revision: 18795

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

Log:
fix a compile warning in the 'net ads search' code
Modified:
   branches/SAMBA_3_0_23/source/utils/net_ads.c


Changeset:
Modified: branches/SAMBA_3_0_23/source/utils/net_ads.c
===
--- branches/SAMBA_3_0_23/source/utils/net_ads.c2006-09-21 18:54:25 UTC 
(rev 18794)
+++ branches/SAMBA_3_0_23/source/utils/net_ads.c2006-09-21 19:01:37 UTC 
(rev 18795)
@@ -1061,7 +1061,7 @@
asprintf(dn, %s,%s, ou_str, ads-config.bind_path);
free(ou_str);
 
-   rc = ads_search_dn(ads, res, dn, NULL);
+   rc = ads_search_dn(ads, (void**)res, dn, NULL);
ads_msgfree(ads, res);
 
if (ADS_ERR_OK(rc)) {



svn commit: samba r18796 - in branches/SAMBA_3_0/source/torture: .

2006-09-21 Thread jra
Author: jra
Date: 2006-09-21 20:53:56 + (Thu, 21 Sep 2006)
New Revision: 18796

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

Log:
Fix the build. Sorry.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/torture/utable.c


Changeset:
Modified: branches/SAMBA_3_0/source/torture/utable.c
===
--- branches/SAMBA_3_0/source/torture/utable.c  2006-09-21 19:01:37 UTC (rev 
18795)
+++ branches/SAMBA_3_0/source/torture/utable.c  2006-09-21 20:53:56 UTC (rev 
18796)
@@ -47,7 +47,7 @@
SSVAL(c2, 0, c);
fstrcpy(fname, \\utable\\x);
p = fname+strlen(fname);
-   len = convert_string(CH_UCS2, CH_UNIX, 
+   len = convert_string(CH_UTF16LE, CH_UNIX, 
 c2, 2, 
 p, sizeof(fname)-strlen(fname), True);
p[len] = 0;
@@ -104,7 +104,7 @@
p = fname+strlen(fname);
SSVAL(c2, 0, c);
 
-   len = convert_string(CH_UCS2, CH_UNIX, 
+   len = convert_string(CH_UTF16LE, CH_UNIX, 
 c2, 2, 
 p, sizeof(fname)-strlen(fname), True);
p[len] = 0;



svn commit: samba r18797 - in branches/SAMBA_3_0/source: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-21 21:21:31 + (Thu, 21 Sep 2006)
New Revision: 18797

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

Log:
fix the loading of pam_winbind.so and libnss_winbind.so
when building with socket wrapper

metze

Modified:
   branches/SAMBA_3_0/source/Makefile.in


Changeset:
Modified: branches/SAMBA_3_0/source/Makefile.in
===
--- branches/SAMBA_3_0/source/Makefile.in   2006-09-21 20:53:56 UTC (rev 
18796)
+++ branches/SAMBA_3_0/source/Makefile.in   2006-09-21 21:21:31 UTC (rev 
18797)
@@ -554,7 +554,7 @@
 $(SMBLDAP_OBJ) $(DCUTIL_OBJ)
 
 PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \
- @LIBREPLACE_OBJS@ @BUILD_INIPARSER@
+ @LIBREPLACE_OBJS@ @SOCKET_WRAPPER_OBJS@ @BUILD_INIPARSER@
 
 LIBSMBCLIENT_OBJ = libsmb/libsmbclient.o libsmb/libsmb_compat.o \
   libsmb/libsmb_cache.o \
@@ -768,7 +768,7 @@
 WBINFO_OBJ = nsswitch/wbinfo.o $(LIBSAMBA_OBJ) $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) 
\
$(SECRETS_OBJ) $(POPT_LIB_OBJ) $(AFS_SETTOKEN_OBJ) 
$(RPC_PARSE_OBJ1) $(DOSERR_OBJ)
 
-WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) @LIBREPLACE_OBJS@ @WINBIND_NSS_EXTRA_OBJS@
+WINBIND_NSS_OBJ = $(WBCOMMON_OBJ) @LIBREPLACE_OBJS@ @SOCKET_WRAPPER_OBJS@ 
@WINBIND_NSS_EXTRA_OBJS@
 
 POPT_OBJS=popt/findme.o popt/popt.o popt/poptconfig.o \
   popt/popthelp.o popt/poptparse.o



svn commit: samba r18798 - in branches/SAMBA_3_0/source/nsswitch: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-21 22:24:53 + (Thu, 21 Sep 2006)
New Revision: 18798

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

Log:
use libreplace headers in pam and nss modules

this hopefully fixes the build on AIX

metze

Modified:
   branches/SAMBA_3_0/source/nsswitch/pam_winbind.h
   branches/SAMBA_3_0/source/nsswitch/winbind_nss_aix.c
   branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/pam_winbind.h
===
--- branches/SAMBA_3_0/source/nsswitch/pam_winbind.h2006-09-21 21:21:31 UTC 
(rev 18797)
+++ branches/SAMBA_3_0/source/nsswitch/pam_winbind.h2006-09-21 22:24:53 UTC 
(rev 18798)
@@ -4,24 +4,10 @@
Shirish Kalele 2000
 */
 
-#ifdef HAVE_FEATURES_H
-#include features.h
-#endif
+#include lib/replace/replace.h
+#include system/syslog.h
+#include system/time.h
 
-#include stdlib.h
-#include unistd.h
-#include limits.h
-#include string.h
-#include syslog.h
-#include stdarg.h
-#include sys/types.h
-#include sys/stat.h
-#include fcntl.h
-#include errno.h
-#include time.h
-
-#include config.h
-
 #define MODULE_NAME pam_winbind
 #define PAM_SM_AUTH
 #define PAM_SM_ACCOUNT

Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_aix.c
===
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_aix.c2006-09-21 
21:21:31 UTC (rev 18797)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_aix.c2006-09-21 
22:24:53 UTC (rev 18798)
@@ -45,14 +45,9 @@
 
 */
 
-#include stdlib.h
-#include string.h
+#include winbind_client.h
 #include usersec.h
-#include errno.h
-#include stdarg.h
 
-#include winbind_client.h
-
 #define WB_AIX_ENCODED '_'
 
 static int debug_enabled;

Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h
===
--- branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h 2006-09-21 
21:21:31 UTC (rev 18797)
+++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h 2006-09-21 
22:24:53 UTC (rev 18798)
@@ -33,55 +33,13 @@
 /* Include header files from data in config.h file */
 
 #ifndef NO_CONFIG_H
-#include config.h
+#include lib/replace/replace.h
 #endif
 
-#include stdio.h
+#include system/passwd.h
+#include system/network.h
+#include system/filesys.h
 
-#ifdef HAVE_STDLIB_H
-#include stdlib.h
-#endif
-
-#ifdef HAVE_UNISTD_H
-#include unistd.h
-#endif
-
-#ifdef HAVE_SYS_SELECT_H
-#include sys/select.h
-#endif
-
-#ifdef HAVE_SYS_SOCKET_H
-#include sys/socket.h
-#endif
-
-#ifdef HAVE_UNIXSOCKET
-#include sys/un.h
-#endif
-
-#ifdef HAVE_SYS_TIME_H
-#include sys/time.h
-#endif
-
-#ifdef HAVE_GRP_H
-#include grp.h
-#endif
-
-#ifdef HAVE_STRING_H
-#include string.h
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include fcntl.h
-#else
-#ifdef HAVE_SYS_FCNTL_H
-#include sys/fcntl.h
-#endif
-#endif
-
-#include sys/types.h
-#include sys/stat.h
-#include errno.h
-#include pwd.h
 #include nsswitch/winbind_nss.h
 
 /* I'm trying really hard not to include anything from smb.h with the



svn commit: samba r18799 - in branches/SAMBA_3_0/source/rpc_client: .

2006-09-21 Thread gd
Author: gd
Date: 2006-09-21 22:44:32 + (Thu, 21 Sep 2006)
New Revision: 18799

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

Log:
Prepare query_disp_info to use the next idx from the last result entry
for the enumeration loop (following msdn docs of that call).

Guenther

Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_samr.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_samr.c
===
--- branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-21 22:24:53 UTC 
(rev 18798)
+++ branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-21 22:44:32 UTC 
(rev 18799)
@@ -1424,6 +1424,24 @@
 
 /* Query display info */
 
+static uint32 get_next_idx(SAMR_R_QUERY_DISPINFO *r)
+{
+   switch (r-switch_level) {
+   case 1:
+   return r-ctr-sam.info1-sam[r-num_entries-1].user_idx;
+   case 2:
+   return r-ctr-sam.info2-sam[r-num_entries-1].user_idx;
+   case 3:
+   return r-ctr-sam.info3-sam[r-num_entries-1].grp_idx;
+   case 4:
+   return r-ctr-sam.info4-sam[r-num_entries-1].user_idx;
+   case 5:
+   return r-ctr-sam.info5-sam[r-num_entries-1].grp_idx;
+   default:
+   return 0;
+   }
+}
+
 NTSTATUS rpccli_samr_query_dispinfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, 
POLICY_HND *domain_pol, uint32 *start_idx,



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

2006-09-21 Thread metze
Author: metze
Date: 2006-09-21 22:55:00 + (Thu, 21 Sep 2006)
New Revision: 18800

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

Log:
fix a write behind the buffer bug...

Thanks Herb for finding this:-)

This was my bug, I typed it in on gd's laptop and he just run 'svn ci'

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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/samr.c
===
--- branches/SAMBA_4_0/source/torture/rpc/samr.c2006-09-21 22:44:32 UTC 
(rev 18799)
+++ branches/SAMBA_4_0/source/torture/rpc/samr.c2006-09-21 22:55:00 UTC 
(rev 18800)
@@ -1887,10 +1887,8 @@
char *v = generate_random_str(mem_ctx, 1);
int i;
 
-   for (i=0; i ARRAY_SIZE(simple_pass); i++) {
-   simple_pass[i] = *v;
-   }
-   simple_pass[i] = '\0';
+   ZERO_STRUCT(simple_pass);
+   memset(simple_pass, *v, sizeof(simple_pass) - 1);
 
/* test what happens when picking a simple password */
if (!test_ChangePasswordUser3(p, mem_ctx, acct_name, 0, 
password, simple_pass, 0, True)) {



svn commit: samba r18801 - in branches/SAMBA_3_0/source/python: .

2006-09-21 Thread gd
Author: gd
Date: 2006-09-21 23:10:40 + (Thu, 21 Sep 2006)
New Revision: 18801

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

Log:
Fix (at least the build of) python bindings.

Guenther

Modified:
   branches/SAMBA_3_0/source/python/py_ntsec.c


Changeset:
Modified: branches/SAMBA_3_0/source/python/py_ntsec.c
===
--- branches/SAMBA_3_0/source/python/py_ntsec.c 2006-09-21 22:55:00 UTC (rev 
18800)
+++ branches/SAMBA_3_0/source/python/py_ntsec.c 2006-09-21 23:10:40 UTC (rev 
18801)
@@ -60,7 +60,7 @@
 
*dict = Py_BuildValue({sisisi}, type, ace-type,
flags, ace-flags,
-   mask, ace-info.mask);
+   mask, ace-access_mask);
 
if (py_from_SID(obj, ace-trustee)) {
PyDict_SetItemString(*dict, trustee, obj);
@@ -103,7 +103,7 @@
!PyInt_Check(obj))
return False;
 
-   sec_access.mask = PyInt_AsLong(obj);
+   sec_access = PyInt_AsLong(obj);
 
init_sec_ace(ace, trustee, ace_type, sec_access, ace_flags);
 
@@ -130,7 +130,7 @@
for (i = 0; i  acl-num_aces; i++) {
PyObject *obj;
 
-   if (py_from_ACE(obj, acl-ace[i]))
+   if (py_from_ACE(obj, acl-aces[i]))
PyList_SetItem(ace_list, i, obj);
}
 
@@ -157,16 +157,16 @@

acl-num_aces = PyList_Size(obj);
 
-   acl-ace = _talloc(mem_ctx, acl-num_aces * sizeof(SEC_ACE));
+   acl-aces = talloc_array(mem_ctx, struct security_ace, acl-num_aces);
acl-size = SEC_ACL_HEADER_SIZE;
 
for (i = 0; i  acl-num_aces; i++) {
PyObject *py_ace = PyList_GetItem(obj, i);
 
-   if (!py_to_ACE(acl-ace[i], py_ace))
+   if (!py_to_ACE(acl-aces[i], py_ace))
return False;
 
-   acl-size += acl-ace[i].size;
+   acl-size += acl-aces[i].size;
}
 
return True;
@@ -191,7 +191,7 @@
Py_DECREF(obj);
}
 
-   if (py_from_SID(obj, sd-grp_sid)) {
+   if (py_from_SID(obj, sd-group_sid)) {
PyDict_SetItemString(*dict, group_sid, obj);
Py_DECREF(obj);
}



svn commit: samba-web r1039 - in trunk/team: .

2006-09-21 Thread derrell
Author: derrell
Date: 2006-09-21 23:35:37 + (Thu, 21 Sep 2006)
New Revision: 1039

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

Log:
I didn't exist
Modified:
   trunk/team/index.html


Changeset:
Modified: trunk/team/index.html
===
--- trunk/team/index.html   2006-09-17 01:17:25 UTC (rev 1038)
+++ trunk/team/index.html   2006-09-21 23:35:37 UTC (rev 1039)
@@ -55,11 +55,12 @@
 lia href=mailto:[EMAIL PROTECTED]Marc Kaplan/a/li
 lia href=mailto:[EMAIL PROTECTED]Vance Lankhaar/a/li
 lia href=mailto:[EMAIL PROTECTED]Volker Lendecke/a/li
+lia href=mailto:[EMAIL PROTECTED]Herb Lewis/a/li
 /ul
 /td
 td valign=top
 ul
-lia href=mailto:[EMAIL PROTECTED]Herb Lewis/a/li
+lispan style=color:blue;Derrell Lipman/span/li
 lia href=mailto:[EMAIL PROTECTED]Jim McDonough/a/li
 lia href=mailto:[EMAIL PROTECTED]Stefan Metzmacher/a/li
 lia href=mailto:[EMAIL PROTECTED]Jean Francois Micouleau/a/li



svn commit: samba r18802 - in branches/SAMBA_3_0/source: . client include libsmb rpc_client rpc_parse rpc_server rpcclient smbd utils

2006-09-21 Thread jelmer
Author: jelmer
Date: 2006-09-21 23:57:32 + (Thu, 21 Sep 2006)
New Revision: 18802

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

Log:
Use the pidl-generated code for the srvsvc interface, both client and server 
code.

This has had some basic testing. I'll do more during the next couple of days 
and hopefully also 
make RPC-SRVSVC from Samba4 pass against it.

Removed:
   branches/SAMBA_3_0/source/include/rpc_srvsvc.h
   branches/SAMBA_3_0/source/rpc_client/cli_srvsvc.c
   branches/SAMBA_3_0/source/rpc_parse/parse_srv.c
   branches/SAMBA_3_0/source/rpc_server/srv_srvsvc.c
Modified:
   branches/SAMBA_3_0/source/Makefile.in
   branches/SAMBA_3_0/source/client/client.c
   branches/SAMBA_3_0/source/configure.in
   branches/SAMBA_3_0/source/include/includes.h
   branches/SAMBA_3_0/source/include/rpc_client.h
   branches/SAMBA_3_0/source/include/rpc_misc.h
   branches/SAMBA_3_0/source/include/smb.h
   branches/SAMBA_3_0/source/libsmb/libsmbclient.c
   branches/SAMBA_3_0/source/rpc_parse/parse_misc.c
   branches/SAMBA_3_0/source/rpc_server/srv_echo_nt.c
   branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c
   branches/SAMBA_3_0/source/rpcclient/cmd_srvsvc.c
   branches/SAMBA_3_0/source/smbd/open.c
   branches/SAMBA_3_0/source/utils/net_rpc.c
   branches/SAMBA_3_0/source/utils/smbtree.c


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


Build status as of Fri Sep 22 00:00:01 2006

2006-09-21 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2006-09-21 
00:00:52.0 +
+++ /home/build/master/cache/broken_results.txt 2006-09-22 00:00:05.0 
+
@@ -1,21 +1,21 @@
-Build status as of Thu Sep 21 00:00:02 2006
+Build status as of Fri Sep 22 00:00:01 2006
 
 Build counts:
 Tree Total  Broken Panic 
 SOC  0  0  0 
 build_farm   0  0  0 
-ccache   39 7  0 
-distcc   39 6  0 
-ldb  37 9  0 
-libreplace   36 3  0 
+ccache   46 7  0 
+distcc   46 6  0 
+ldb  43 9  0 
+libreplace   42 1  0 
 lorikeet-heimdal 0  0  0 
-ppp  17 0  0 
-rsync39 4  0 
+ppp  18 0  0 
+rsync46 4  0 
 samba0  0  0 
 samba-docs   0  0  0 
-samba4   37 32 12
-samba_3_040 25 0 
-smb-build30 4  0 
-talloc   40 3  0 
-tdb  38 7  0 
+samba4   44 14 1 
+samba_3_042 19 0 
+smb-build29 4  0 
+talloc   46 2  0 
+tdb  44 7  0 
 


svn commit: samba r18803 - in branches/SAMBA_3_0/source/rpc_client: .

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-22 00:05:53 + (Fri, 22 Sep 2006)
New Revision: 18803

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

Log:
remove unused function
Modified:
   branches/SAMBA_3_0/source/rpc_client/cli_samr.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_samr.c
===
--- branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-21 23:57:32 UTC 
(rev 18802)
+++ branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-22 00:05:53 UTC 
(rev 18803)
@@ -1424,24 +1424,6 @@
 
 /* Query display info */
 
-static uint32 get_next_idx(SAMR_R_QUERY_DISPINFO *r)
-{
-   switch (r-switch_level) {
-   case 1:
-   return r-ctr-sam.info1-sam[r-num_entries-1].user_idx;
-   case 2:
-   return r-ctr-sam.info2-sam[r-num_entries-1].user_idx;
-   case 3:
-   return r-ctr-sam.info3-sam[r-num_entries-1].grp_idx;
-   case 4:
-   return r-ctr-sam.info4-sam[r-num_entries-1].user_idx;
-   case 5:
-   return r-ctr-sam.info5-sam[r-num_entries-1].grp_idx;
-   default:
-   return 0;
-   }
-}
-
 NTSTATUS rpccli_samr_query_dispinfo(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, 
POLICY_HND *domain_pol, uint32 *start_idx,



Re: svn commit: samba r18802 - in branches/SAMBA_3_0/source: . client include libsmb rpc_client rpc_parse rpc_server rpcclient smbd utils

2006-09-21 Thread Jim McDonough

On 9/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Use the pidl-generated code for the srvsvc interface, both client and
server code.


Very cool.  Is there any reason we can't rename stat in
srvsvc_NetServerStatisticsGet?  It causes  lots of compile warnings.  :

./librpc/gen_ndr/cli_srvsvc.h:28: warning: declaration of 'stat' shadows a
global declaration
/usr/include/sys/stat.h:365: warning: shadowed declaration is here


svn commit: samba r18804 - in branches/SAMBA_3_0/source/rpc_server: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-22 03:41:11 + (Fri, 22 Sep 2006)
New Revision: 18804

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

Log:
resume_hnd isn't a ref pointer and can be NULL

metze

Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c
===
--- branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c2006-09-22 
00:05:53 UTC (rev 18803)
+++ branches/SAMBA_3_0/source/rpc_server/srv_srvsvc_nt.c2006-09-22 
03:41:11 UTC (rev 18804)
@@ -508,7 +508,9 @@
 
ZERO_STRUCTP(ctr);
 
-   *resume_hnd = 0;
+   if (resume_hnd) {
+   *resume_hnd = 0;
+   }
 
/* Ensure all the usershares are loaded. */
become_root();



svn commit: samba r18805 - in branches/SAMBA_4_0/source/smbd: .

2006-09-21 Thread tridge
Author: tridge
Date: 2006-09-22 03:49:24 + (Fri, 22 Sep 2006)
New Revision: 18805

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

Log:

make error message match function name

Modified:
   branches/SAMBA_4_0/source/smbd/process_single.c


Changeset:
Modified: branches/SAMBA_4_0/source/smbd/process_single.c
===
--- branches/SAMBA_4_0/source/smbd/process_single.c 2006-09-22 03:41:11 UTC 
(rev 18804)
+++ branches/SAMBA_4_0/source/smbd/process_single.c 2006-09-22 03:49:24 UTC 
(rev 18805)
@@ -54,7 +54,7 @@
/* accept an incoming connection. */
status = socket_accept(sock, sock2);
if (!NT_STATUS_IS_OK(status)) {
-   DEBUG(0,(accept_connection_single: accept: %s\n, 
nt_errstr(status)));
+   DEBUG(0,(single_accept_connection: accept: %s\n, 
nt_errstr(status)));
/* this looks strange, but is correct. We need to
   throttle things until the system clears enough
   resources to handle this new socket. If we don't



svn commit: samba r18806 - in branches/SAMBA_4_0/source/smbd: .

2006-09-21 Thread tridge
Author: tridge
Date: 2006-09-22 03:49:40 + (Fri, 22 Sep 2006)
New Revision: 18806

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

Log:

fixed two spelling errors

Modified:
   branches/SAMBA_4_0/source/smbd/service_stream.c


Changeset:
Modified: branches/SAMBA_4_0/source/smbd/service_stream.c
===
--- branches/SAMBA_4_0/source/smbd/service_stream.c 2006-09-22 03:49:24 UTC 
(rev 18805)
+++ branches/SAMBA_4_0/source/smbd/service_stream.c 2006-09-22 03:49:40 UTC 
(rev 18806)
@@ -57,14 +57,14 @@
struct event_context *event_ctx = srv_conn-event.ctx;
const struct model_ops *model_ops = srv_conn-model_ops;
 
-   if (!reason) reason = unknwon reason;
+   if (!reason) reason = unknown reason;
 
srv_conn-terminate = reason;
 
if (srv_conn-processing) {
/* 
 * if we're currently inside the stream_io_handler(),
-* deferr the termination to the end of stream_io_hendler()
+* defer the termination to the end of stream_io_hendler()
 *
 * and we don't want to read or write to the connection...
 */



svn commit: samba r18807 - in branches/SAMBA_4_0/source/torture/basic: .

2006-09-21 Thread tridge
Author: tridge
Date: 2006-09-22 03:50:15 + (Fri, 22 Sep 2006)
New Revision: 18807

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

Log:

don't overtax the imaginations of servers that can't do mkdir on \\dirname\\

Modified:
   branches/SAMBA_4_0/source/torture/basic/charset.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/basic/charset.c
===
--- branches/SAMBA_4_0/source/torture/basic/charset.c   2006-09-22 03:49:40 UTC 
(rev 18806)
+++ branches/SAMBA_4_0/source/torture/basic/charset.c   2006-09-22 03:50:15 UTC 
(rev 18807)
@@ -26,7 +26,7 @@
 #include libcli/libcli.h
 #include torture/util.h
 
-#define BASEDIR \\chartest\\
+#define BASEDIR \\chartest
 
 /* 
open a file using a set of unicode code points for the name
@@ -62,7 +62,7 @@
return NT_STATUS_NO_MEMORY;
}
 
-   fname2 = talloc_asprintf(ucs_name, %s%s, BASEDIR, fname);
+   fname2 = talloc_asprintf(ucs_name, %s\\%s, BASEDIR, fname);
if (!fname2) {
talloc_free(ucs_name);
return NT_STATUS_NO_MEMORY;



svn commit: samba r18808 - in branches/SAMBA_4_0/source/torture/smb2: .

2006-09-21 Thread tridge
Author: tridge
Date: 2006-09-22 04:04:46 + (Fri, 22 Sep 2006)
New Revision: 18808

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

Log:

added SMB2-MAXWRITE test and SMB2-DIR tests

expanded size of dangerous level for write in SMB2-CONNECT test

Added:
   branches/SAMBA_4_0/source/torture/smb2/dir.c
   branches/SAMBA_4_0/source/torture/smb2/maxwrite.c
Modified:
   branches/SAMBA_4_0/source/torture/smb2/config.mk
   branches/SAMBA_4_0/source/torture/smb2/connect.c
   branches/SAMBA_4_0/source/torture/smb2/smb2.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/smb2/config.mk
===
--- branches/SAMBA_4_0/source/torture/smb2/config.mk2006-09-22 03:50:15 UTC 
(rev 18807)
+++ branches/SAMBA_4_0/source/torture/smb2/config.mk2006-09-22 04:04:46 UTC 
(rev 18808)
@@ -8,6 +8,8 @@
proto.h
 OBJ_FILES = \
connect.o \
+   dir.o \
+   maxwrite.o \
scan.o \
util.o \
getinfo.o \

Modified: branches/SAMBA_4_0/source/torture/smb2/connect.c
===
--- branches/SAMBA_4_0/source/torture/smb2/connect.c2006-09-22 03:50:15 UTC 
(rev 18807)
+++ branches/SAMBA_4_0/source/torture/smb2/connect.c2006-09-22 04:04:46 UTC 
(rev 18808)
@@ -75,7 +75,7 @@
int i;

if (lp_parm_bool(-1, torture, dangerous, False)) {
-   data = data_blob_talloc(tree, NULL, 16);
+   data = data_blob_talloc(tree, NULL, 1600);
} else if (lp_parm_bool(-1, target, samba4, False)) {
data = data_blob_talloc(tree, NULL, UINT16_MAX);
} else {
@@ -90,6 +90,8 @@
w.in.offset  = 0;
w.in.data= data;
 
+   printf(writing %d bytes\n, data.length);
+
status = smb2_write(tree, w);
if (!NT_STATUS_IS_OK(status)) {
printf(write failed - %s\n, nt_errstr(status));
@@ -120,6 +122,8 @@
r.in.length  = data.length;
r.in.offset  = 0;
 
+   printf(reading %d bytes\n, data.length);
+
status = smb2_read(tree, tree, r);
if (!NT_STATUS_IS_OK(status)) {
printf(read failed - %s\n, nt_errstr(status));
@@ -139,8 +143,7 @@
 /*
   send a create
 */
-static struct smb2_handle torture_smb2_create(struct smb2_tree *tree, 
- const char *fname)
+struct smb2_handle torture_smb2_create(struct smb2_tree *tree, const char 
*fname)
 {
struct smb2_create io;
NTSTATUS status;

Added: branches/SAMBA_4_0/source/torture/smb2/dir.c
===
--- branches/SAMBA_4_0/source/torture/smb2/dir.c2006-09-22 03:50:15 UTC 
(rev 18807)
+++ branches/SAMBA_4_0/source/torture/smb2/dir.c2006-09-22 04:04:46 UTC 
(rev 18808)
@@ -0,0 +1,94 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   SMB2 dir list test suite
+
+   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.
+*/
+
+#include includes.h
+#include libcli/smb2/smb2.h
+#include libcli/smb2/smb2_calls.h
+
+#include torture/torture.h
+#include torture/smb2/proto.h
+
+/*
+  test find continue
+*/
+static BOOL torture_smb2_find_dir(struct smb2_tree *tree)
+{
+   struct smb2_handle handle;
+   NTSTATUS status;
+   int i;
+   struct smb2_find f;
+   BOOL ret = True;
+   union smb_search_data *d;
+   uint_t count;
+
+   status = smb2_util_roothandle(tree, handle);
+   if (!NT_STATUS_IS_OK(status)) {
+   return False;
+   }
+
+   ZERO_STRUCT(f);
+   f.in.file.handle= handle;
+   f.in.pattern= *;
+   f.in.continue_flags = SMB2_CONTINUE_FLAG_SINGLE;
+   f.in.max_response_size  = 0x100;
+   f.in.level  = SMB2_FIND_BOTH_DIRECTORY_INFO;
+
+   do {
+   status = smb2_find_level(tree, tree, f, count, d);
+   if (!NT_STATUS_IS_OK(status)) {
+   printf(SMB2_FIND_ID_BOTH_DIRECTORY_INFO failed - 
%s\n, nt_errstr(status));
+   break;
+   }
+
+   printf(Got %d files\n, count);
+

svn commit: samba r18809 - in branches/SAMBA_3_0/source: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-22 04:05:15 + (Fri, 22 Sep 2006)
New Revision: 18809

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

Log:
add a valgrind suppression file to prepare running make test
under valgrind in the buildfarm

metze

Added:
   branches/SAMBA_3_0/source/.valgrind_suppressions


Changeset:
Added: branches/SAMBA_3_0/source/.valgrind_suppressions
===



svn commit: samba r18810 - in branches/SAMBA_3_0/source: . include lib lib/talloc lib/talloc/web

2006-09-21 Thread metze
Author: metze
Date: 2006-09-22 04:16:58 + (Fri, 22 Sep 2006)
New Revision: 18810

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

Log:
use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze

Added:
   branches/SAMBA_3_0/source/lib/talloc/
   branches/SAMBA_3_0/source/lib/talloc/Makefile.in
   branches/SAMBA_3_0/source/lib/talloc/aclocal.m4
   branches/SAMBA_3_0/source/lib/talloc/autogen.sh
   branches/SAMBA_3_0/source/lib/talloc/config.guess
   branches/SAMBA_3_0/source/lib/talloc/config.mk
   branches/SAMBA_3_0/source/lib/talloc/config.sub
   branches/SAMBA_3_0/source/lib/talloc/configure.ac
   branches/SAMBA_3_0/source/lib/talloc/install-sh
   branches/SAMBA_3_0/source/lib/talloc/libtalloc.m4
   branches/SAMBA_3_0/source/lib/talloc/talloc.3.xml
   branches/SAMBA_3_0/source/lib/talloc/talloc.c
   branches/SAMBA_3_0/source/lib/talloc/talloc.h
   branches/SAMBA_3_0/source/lib/talloc/talloc.pc.in
   branches/SAMBA_3_0/source/lib/talloc/talloc_guide.txt
   branches/SAMBA_3_0/source/lib/talloc/testsuite.c
   branches/SAMBA_3_0/source/lib/talloc/web/
   branches/SAMBA_3_0/source/lib/talloc/web/index.html
Removed:
   branches/SAMBA_3_0/source/include/talloc.h
   branches/SAMBA_3_0/source/lib/talloc.c
   branches/SAMBA_3_0/source/lib/talloctort.c
Modified:
   branches/SAMBA_3_0/source/Makefile.in
   branches/SAMBA_3_0/source/configure.in
   branches/SAMBA_3_0/source/include/includes.h


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


svn commit: samba r18811 - in branches/SAMBA_3_0/source/librpc: gen_ndr idl

2006-09-21 Thread jerry
Author: jerry
Date: 2006-09-22 04:31:11 + (Fri, 22 Sep 2006)
New Revision: 18811

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

Log:
rename stat field to avoid compiler warnings about 
shadowed variables


Modified:
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_srvsvc.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/srv_srvsvc.c
   branches/SAMBA_3_0/source/librpc/gen_ndr/srv_srvsvc.h
   branches/SAMBA_3_0/source/librpc/gen_ndr/srvsvc.h
   branches/SAMBA_3_0/source/librpc/idl/srvsvc.idl


Changeset:
Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.c   2006-09-22 
04:16:58 UTC (rev 18810)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.c   2006-09-22 
04:31:11 UTC (rev 18811)
@@ -738,7 +738,7 @@
return werror_to_ntstatus(r.out.result);
 }
 
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t 
level, uint32_t options, struct srvsvc_Statistics *stat)
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t 
level, uint32_t options, struct srvsvc_Statistics *stats)
 {
struct srvsvc_NetServerStatisticsGet r;
NTSTATUS status;
@@ -762,7 +762,7 @@
}

/* Return variables */
-   *stat = *r.out.stat;
+   *stats = *r.out.stats;

/* Return result */
return werror_to_ntstatus(r.out.result);

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.h
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.h   2006-09-22 
04:16:58 UTC (rev 18810)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/cli_srvsvc.h   2006-09-22 
04:31:11 UTC (rev 18811)
@@ -25,7 +25,7 @@
 NTSTATUS rpccli_srvsvc_NetSrvGetInfo(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo 
*info);
 NTSTATUS rpccli_srvsvc_NetSrvSetInfo(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetSrvInfo info, 
uint32_t *parm_error);
 NTSTATUS rpccli_srvsvc_NetDiskEnum(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, const char *server_unc, uint32_t level, struct srvsvc_NetDiskInfo 
*info, uint32_t maxlen, uint32_t *totalentries, uint32_t *resume_handle);
-NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t 
level, uint32_t options, struct srvsvc_Statistics *stat);
+NTSTATUS rpccli_srvsvc_NetServerStatisticsGet(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, const char *server_unc, const char *service, uint32_t 
level, uint32_t options, struct srvsvc_Statistics *stats);
 NTSTATUS rpccli_srvsvc_NetTransportAdd(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, const char *server_unc, uint32_t level, union srvsvc_NetTransportInfo 
info);
 NTSTATUS rpccli_srvsvc_NetTransportEnum(struct rpc_pipe_client *cli, 
TALLOC_CTX *mem_ctx, const char *server_unc, uint32_t *level, union 
srvsvc_NetTransportCtr *transports, uint32_t max_buffer, uint32_t 
*totalentries, uint32_t *resume_handle);
 NTSTATUS rpccli_srvsvc_NetTransportDel(struct rpc_pipe_client *cli, TALLOC_CTX 
*mem_ctx, const char *server_unc, uint32_t unknown, struct 
srvsvc_NetTransportInfo0 transport);

Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_srvsvc.c
===
--- branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_srvsvc.c   2006-09-22 
04:16:58 UTC (rev 18810)
+++ branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_srvsvc.c   2006-09-22 
04:31:11 UTC (rev 18811)
@@ -16485,8 +16485,8 @@
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-in.options));
}
if (flags  NDR_OUT) {
-   if (r-out.stat == NULL) return NT_STATUS_INVALID_PARAMETER_MIX;
-   NDR_CHECK(ndr_push_srvsvc_Statistics(ndr, NDR_SCALARS, 
r-out.stat));
+   if (r-out.stats == NULL) return 
NT_STATUS_INVALID_PARAMETER_MIX;
+   NDR_CHECK(ndr_push_srvsvc_Statistics(ndr, NDR_SCALARS, 
r-out.stats));
NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r-out.result));
}
return NT_STATUS_OK;
@@ -16498,7 +16498,7 @@
uint32_t _ptr_service;
TALLOC_CTX *_mem_save_server_unc_0;
TALLOC_CTX *_mem_save_service_0;
-   TALLOC_CTX *_mem_save_stat_0;
+   TALLOC_CTX *_mem_save_stats_0;
if (flags  NDR_IN) {
ZERO_STRUCT(r-out);
 
@@ -16540,17 +16540,17 @@
}

svn commit: samba r18813 - in branches/SAMBA_3_0/source/client: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-22 05:36:15 + (Fri, 22 Sep 2006)
New Revision: 18813

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

Log:
the generated rpccli_ functions give NTSTATUS

metze

Modified:
   branches/SAMBA_3_0/source/client/client.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/client.c
===
--- branches/SAMBA_3_0/source/client/client.c   2006-09-22 05:26:26 UTC (rev 
18812)
+++ branches/SAMBA_3_0/source/client/client.c   2006-09-22 05:36:15 UTC (rev 
18813)
@@ -2726,7 +2726,6 @@
struct rpc_pipe_client *pipe_hnd;
TALLOC_CTX *mem_ctx;
uint32 enum_hnd = 0;
-   WERROR werr;
union srvsvc_NetShareCtr ctr;
int i;
uint32 level;
@@ -2749,10 +2748,10 @@
 
level = 1;
 
-   werr = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, level, ctr,
+   status = rpccli_srvsvc_NetShareEnum(pipe_hnd, mem_ctx, NULL, level, 
ctr,
0x, numentries, enum_hnd);
 
-   if (!W_ERROR_IS_OK(werr)) {
+   if (!NT_STATUS_IS_OK(status)) {
TALLOC_FREE(mem_ctx);
cli_rpc_pipe_close(pipe_hnd);
return False;



svn commit: samba r18814 - in branches/SAMBA_3_0/source: .

2006-09-21 Thread metze
Author: metze
Date: 2006-09-22 05:46:03 + (Fri, 22 Sep 2006)
New Revision: 18814

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

Log:
diable immediate structs for now until we completely build with them again

metze

Modified:
   branches/SAMBA_3_0/source/configure.in


Changeset:
Modified: branches/SAMBA_3_0/source/configure.in
===
--- branches/SAMBA_3_0/source/configure.in  2006-09-22 05:36:15 UTC (rev 
18813)
+++ branches/SAMBA_3_0/source/configure.in  2006-09-22 05:46:03 UTC (rev 
18814)
@@ -1001,7 +1001,7 @@
#define X_FOOBAR(x) ((FOOBAR) { x })
#define FOO_ONE X_FOOBAR(1)
FOOBAR f = FOO_ONE;   
-   struct {
+   static struct {
FOOBAR y; 
} f2[] = {
{FOO_ONE}