[Samba] Solaris 10 + Samba 3.0.24 = AD-Member Win2003Server
Hi! I have problems with my Samba 3.0.24 on my Solaris 10 machine. I hope u can help me? I google'd a lot and asked many people but nobody can help me. So... I have... Solaris 10 with Samba 3.0.24 Kerberos installed OpenLDAP installed OpenSSL installed I configured and compiled Samba 3.0.24 (Options: ./configure --prefix=/usr/local/samba --with-winbind --with-ads --with-ldap --with-krb5=/usr/local --with-acl-support ) Know i want Samba to be a member of the ADS Domain. I maked an Keytab-File with the following command on the Windows 2003 Domaincontroller: C:\ktpass -princ host/[EMAIL PROTECTED] -mapuser XXX\user1 -pass * -out c:\user1.keytab After this i configured SWAT...and SWAT was working good. Then i registered the Keytab-File with the following commands: #/usr/local/sbin/ktutil #ktutil: rkt /usr/local/krb5/usr1.keytab #ktutil: wkt /usr/local/krb5/krb5.keytab I set copied the libnss_winbind.so and set the symbolic links. #cp .../samba-3.0.24/source/nsswitch/libnss_winbind.so /usr/lib #ln -s libnss_winbind.so libnss_winbind.so.1 #ln -s libnss_winbind.so nss_winbind.so.1 #ln -s libnss_winbind.so nss_winbind.so.2 After this is configured Kerberos...edited krb5.conf like this: # krb5.conf template # In order to complete this configuration file # you will need to replace the __name__ placeholders # with appropriate values for your network. # [libdefaults] ticket_lifetime = 24000 default_realm = XXX..DE default_tgs_enctypes = des-cbc-crc des-cbc-md5 default_tkt_enctypes = des-cbc-crc des-cbc-md5 [realms] NTBV.BZ-FREIBURG.DE = { kdc = server1.xx..de kdc = server2.xx..de admin_server = server1.xx..de default_domain = xx..de } [domain_realm] .mn.freinet.de = XXX..DE mn.freinet.de = XXX..DE [logging] default = FILE:/var/krb5/kdc.log kdc = FILE:/var/krb5/kdc.log kdc_rotate = { # How often to rotate kdc.log. Logs will get rotated no more # often than the period, and less often if the KDC is not used # frequently. period = 1d # how many versions of kdc.log to keep around (kdc.log.0, kdc.log.1, ...) versions = 10 } [appdefaults] kinit = { renewable = true forwardable= true } Now i edited the /etc/nscd.conf, I added the following: ... # logfile /var/adm/nscd.log enable-cachehosts no enable-cachepasswdno enable-cachegroup no ... And the /etc/nsswitch.conf i edited too: passwd: files winbind group: files winbind Via SWAT, i configured Samba like this: # Samba config file created using SWAT # from 172.16.124.6 (172.16.124.6) # Date: 2006/09/11 15:14:18 [global] workgroup = XX realm = XX..DE netbios name = test1 server string = SambaTest interfaces = 192.168.20.19 bind interfaces only = Yes security = ADS password server = server1.xx.xxx.de log file = /user/local/samba/log/log.%m ldap ssl = No idmap uid = 5000-1 idmap gid = 5000-1 template homedir = /usr/local/samba/%D/%U template shell = /bin/bash winbind enum users = Yes winbind enum groups = Yes force create mode = 0775 force directory mode = 06775 [medianet] comment = TestShare path = /shared valid users = @XX\group1,@XX\group4 read only = No Then I Registered the Server in the Active Directory: #kinit domainadmin Password for [EMAIL PROTECTED]: # #./net ads join Using short domain name - XX Joined 'test1' to realm 'XX.X.DE'# Then i tested the following: #/usr/local/samba/bin/wbinfo -u XX\user1 XX\user2 XX\user3 XX\user4 # /usr/local/samba/bin/wbinfo -g XX\group1 XX\group2 XX\group3 XX\group4 XX\group5 #/usr/local/samba/bin/net ads info LDAP server: 192.168.20.1 LDAP server name: server1.XX..de Realm: XX..DE Bind Path: dc=XX,dc=,dc=DE LDAP port: 389 Server time: Tue, 12 Sep 2006 14:10:57 MEST KDC server: 192.168.20.1 Server time offset: 0 # id XX\user1 uid=5000(XX\user1) gid=5000(XX\group4) # ./wbinfo -r XX\user1 group3 group4 I created a Test Share, like in the Samba config. Valid User/group for the Share was the group1 (@XX\group1) and group4 (@XX\group2), like configured in smb.conf. The user user1 which have the primary-group group4 XX\group4 and is also member of the group3 XX\group3 must enter this share and should be allowed to enter it. Ok this works. But when i want to enter an folder in this share, which i created in Solaris (for example /shared/testfolder) and added the ACL: #setfacl -m g:XX\group3:rwx /shared/testfolder, then the window on my windows machine appears, that i have not the permission to enter it. But
RE: [Samba] ClearCase Interop problem with recent Samba versions
Hello Volker, thanks a lot for your help! with the settings you mentioned below everything works now !!! Christian -- I sense much NT in you, NT leads to Blue Screen. Blue Screen leads to downtime, downtime leads to suffering. NT is the path to the darkside. - Unknown Unix Jedi -Original Message- From: Volker Lendecke [mailto:[EMAIL PROTECTED] On Behalf Of Volker Lendecke Sent: Wednesday, February 14, 2007 6:04 PM To: Masopust, Christian Cc: samba@lists.samba.org Subject: Re: [Samba] ClearCase Interop problem with recent Samba versions On Wed, Feb 14, 2007 at 11:54:25AM +0100, Masopust, Christian wrote: attached you'll find the level 10 logs and snoop output as i don't have tcpdump installed on this sun-server (if needed i could). Try to set host msdfs = no msdfs root = no in the [global] section. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] ClearCase Interop problem with recent Samba versions
On Wed, 2007-02-14 at 18:03 +0100, Volker Lendecke wrote: On Wed, Feb 14, 2007 at 11:54:25AM +0100, Masopust, Christian wrote: attached you'll find the level 10 logs and snoop output as i don't have tcpdump installed on this sun-server (if needed i could). Try to set host msdfs = no msdfs root = no in the [global] section. IIRC you need to reboot the client(s) if you do that ... Simo. yes, that was true, i had to reboot the client! chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] UTF8 not working
On 2007-02-14 at 22:46 +0100 Dexter Filmore sent off: //xerxes/media /mnt/xerxes/smb/media cifs credentials=foo,rw,users 0 0 there is a iocharset mount option. try setting that to utf8. Björn -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] [home] shares not closing ?!
Hello... i have a small problem, in our samba domain, the home shares from users are not closing the connection. is there a way to make samba do this. i know it's an actual windows problem. now i have over 20 connections to homes shares from a view computers and i dislike the fact that users can see the other home shares listed under the pdc share list. i tried deadtime = 15, but no luck here... sugestions ?!?!?! Cheers, Collen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] can't see both my slackboxes in my internal network
hello everyone, for a couple of days now and i have a 2nd slackware 10.2 pc in my home network. i carried out the same steps to enable me to access my home folders on this slackbox too as i did for the oter pc. basically i did the absolutely minimum: -renamed the smb.conf-sample that came with slack10.2 to smb.conf -changed the 'server name' option to smth unique for this pc -changed the 'host allow' option to see my internal network. -added user nass with smbpasswd. now i can see this new slackbox pc in my internal network (from my winXP network places) but not the other one! if i remove the new pc from the network then i can see the old one again! any ideas? thank you in advance for your help nass -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] UTF8 not working
Am Donnerstag, 15. Februar 2007 09:40 schrieb Björn Jacke: On 2007-02-14 at 22:46 +0100 Dexter Filmore sent off: //xerxes/media /mnt/xerxes/smb/media cifs credentials=foo,rw,users 0 0 there is a iocharset mount option. try setting that to utf8. Björn Das war's, danke. -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d--(+)@ s-:+ a- C UL++ P+++ L+++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h++ r* y? --END GEEK CODE BLOCK-- http://www.stop1984.com http://www.againsttcpa.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] UTF8 not working - solved.
Adding iocharset=utf8 to the fstab options did the trick. Can't smbd announce this to mount.cifs? Dex -- -BEGIN GEEK CODE BLOCK- Version: 3.12 GCS d--(+)@ s-:+ a- C UL++ P+++ L+++ E-- W++ N o? K- w--(---) !O M+ V- PS+ PE Y++ PGP t++(---)@ 5 X+(++) R+(++) tv--(+)@ b++(+++) DI+++ D- G++ e* h++ r* y? --END GEEK CODE BLOCK-- http://www.stop1984.com http://www.againsttcpa.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ClearCase Interop problem with recent Samba versions
On Wed, Feb 14, 2007 at 06:03:47PM +0100, Volker Lendecke wrote: Volker == Volker Lendecke [EMAIL PROTECTED] writes: Volker On Wed, Feb 14, 2007 at 11:54:25AM +0100, Masopust, Volker Christian wrote: attached you'll find the level 10 logs and snoop output as i don't have tcpdump installed on this sun-server (if needed i could). Volker Try to set Volker host msdfs = no Volker msdfs root = no Volker in the [global] section. I see from the release notes for 3.0.23 that the defaults for these two settings were changed to yes. Does this have implications for uses other than ClearCase? Why did it affect ClearCase? -- Eric M. Boehm /\ ASCII Ribbon Campaign [EMAIL PROTECTED] \ / No HTML or RTF in mail X No proprietary word-processing Respect Open Standards / \ files in mail -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ClearCase Interop problem with recent Samba versions
On Thu, Feb 15, 2007 at 07:47:26AM -0500, Eric Boehm wrote: I see from the release notes for 3.0.23 that the defaults for these two settings were changed to yes. Does this have implications for uses other than ClearCase? Why did it affect ClearCase? No idea for both questions, sorry. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Domain Admins with Samba 3.024
I am having the exact same problem as you. When you say I built fresh rpms, do you mean that you downloaded the srpms and used the rpmbuild command? Could you post what you did in a step by step format. Thanks, Gary On Wed, 2007-02-14 at 21:48 -0700, Neil Jolly wrote: On 14-Feb-07, at 8:13 AM, Neil Jolly wrote: quote who=[EMAIL PROTECTED] Please read the changelog ! There are many change between 3.0.10 and 3.0.2x In 3.0.2x samba version, privilege are enabled are must be used ! I resolved the issue. I built fresh rpms, completely uninstalled the old install of samba, installed the fresh rpms, and restored the configuration files. Worked like a charm this time round. Not sure what the issue whas, but I'm glad to have it resolved. Thanks for the help, and suggestions. Neil Jolly #12 800 Bowcroft Place Cochrane, Alberta Phone: (403) 688-7516 Fax: (403) 851-0873 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Solaris 10 and store dos attributes
The user wouldn't be able to write to the file at a command prompt either.. [EMAIL PROTECTED]:~ -bash$ cat /etc/release Solaris 10 3/05 s10_74L2a X86 Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 22 January 2005 [EMAIL PROTECTED]:~ -bash$ id uid=241(schaefer) gid=203(stuff) [EMAIL PROTECTED]:~ -bash$ touch a_file.txt [EMAIL PROTECTED]:~ -bash$ ls -ld a_file.txt -rw-r--r-- 1 schaefer stuff 0 Feb 15 08:04 a_file.txt [EMAIL PROTECTED]:~ -bash$ echo blah a_file.txt [EMAIL PROTECTED]:~ -bash$ chmod u-w,g+w a_file.txt [EMAIL PROTECTED]:~ -bash$ ls -ld a_file.txt -r--rw-r-- 1 schaefer stuff 5 Feb 15 08:04 a_file.txt [EMAIL PROTECTED]:~ -bash$ echo blah a_file.txt -bash: a_file.txt: Permission denied -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Sent: Wednesday, February 14, 2007 1:58 PM To: samba@lists.samba.org Subject: [Samba] Solaris 10 and store dos attributes I'm having trouble with files being marked read-only in Windows because the Solaris file owner does not have write-permissions on the file; group-write is allowed: -r--rw 1 user group 32 Feb 13 14:19 testfile.txt I thought that setting store dos attributes = yes for this share would allow the read only setting to be stored in extended attributes, but it doesn't seem to be working - does Solaris 10 support extended attributes as needed by Samba? I'm using Samba 3.0.24 on Solaris 10, configuration file or the share below: [TEST] comment = server vartmp path = /var/tmp browseable = yes public = yes guest ok = yes writable = yes force create mode = 0664 force directory mode = 0775 map hidden = no map system = no map archive = no ea support = yes store dos attributes = yes Thanks in advance -- James -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Clients periodically disconnecting
Anyone have any ideas on this? I'm really stuck scratching my head Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University Never send mail to [EMAIL PROTECTED] On Tue, 13 Feb 2007, Chris St. Pierre wrote: Samba 3.0.21c, RHEL4. About a week ago, we restarted our Samba server because nmbd had run amok. Since that restart, our Apple clients have periodically disconnected -- by most reports, they disconnect every 15-45 minutes. It doesn't appear to be synchronized, i.e., every Mac on campus doesn't disconnect at once, but only occasionally. They get a message similar to: A server you are using is no longer available. Do you want to continue trying to contact it? (This varies by exact OS revision, of course.) Our Windows clients do not exhibit this behavior. I turned up the logging for a few users for whom this was reliably happening. The following are the last few messages before it disconnects: [2007/02/13 10:08:57, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2007/02/13 10:08:57, 5] auth/auth_util.c:debug_nt_user_token(433) NT user token: (NULL) [2007/02/13 10:08:57, 5] auth/auth_util.c:debug_unix_user_token(454) UNIX token of user 0 Primary group is 0 and contains 0 supplementary groups [2007/02/13 10:08:57, 5] smbd/uid.c:change_to_root_user(324) change_to_root_user: now uid=(0,0) gid=(0,0) [2007/02/13 10:08:57, 5] lib/username.c:Get_Pwnam_alloc(290) Finding user jrandom [2007/02/13 10:08:57, 5] lib/username.c:Get_Pwnam_internals(234) Trying _Get_Pwnam(), username as lowercase is jrandom [2007/02/13 10:08:57, 5] lib/username.c:Get_Pwnam_internals(267) Get_Pwnam_internals did find user [jrandom]! Any ideas? Chris St. Pierre Unix Systems Administrator Nebraska Wesleyan University -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] UTF8 not working - solved.
On 2007-02-15 at 12:41 +0100 Dexter Filmore sent off: Adding iocharset=utf8 to the fstab options did the trick. Can't smbd announce this to mount.cifs? this is not a matter of smbd-cifs. It's a matter of cifs vfs having to decide what the system's locale charset is. I think the default is taken from the kernel configuration of CONFIG_NLS_DEFAULT. Cheers Bjoern -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Should I upgrade Samba?
Currently I have a new server being set up with CentOS 4.4 (RedHat Enterprise Linux 4.4) and the Samba binaries that come with it which are version 3.010149. I am something of a Linux newbie so I wanted to know if I should upgrade to 3.0.24 and, if I should, why doesn't CentOS upgrade their binaries to the latest Samba? Thanks in advance. Boaz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Should I upgrade Samba?
Boaz Bezborodko wrote: Currently I have a new server being set up with CentOS 4.4 (RedHat Enterprise Linux 4.4) and the Samba binaries that come with it which are version 3.010149. I am something of a Linux newbie so I wanted to know if I should upgrade to 3.0.24 and, if I should, why doesn't CentOS upgrade their binaries to the latest Samba? Thanks in advance. Boaz If it ain't broke, don't fix it. The version that CentOS provides works and is configured for their system. Moreover, you can get security patches for it. If you have a compelling need for a feature that isn't present in your current version, you may want to consider upgrading. Otherwise, stick with the version distributed with CentOS. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] appears to be incompatibility between samba versions
here's the latest. i believe this points to a samba version incompatibility. on a new server, running samba 3.0.22, solaris 10. client Mac could not get access, claimed password was wrong. a windows PC did get access. the log files showed that the password was correct for BOTH the Mac and the pc. i repeated this three times to make sure. the samba 3.0.22 server thinks the password i gave it is fine, but the client continues to say the password is wrong. i down-revved the samba server to 3.0.7. now the client Mac __can__ get it. i can't find out what the rev is on the Mac. there was one Mac at 3.0.10 which was able to access the samba server running 3.0.22, FWIW. j. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem with MacOSX and filenames ending in white space
Hi, I have an OSX Client to a Linux Samba server (samba-3.0.23c-4 on CentOS4) When the client saves a filename that ends in one or more white spaces, OSX create also files starting with a dot. The filenames are correct in Linux but the OSX client see only garbage as the filename. I think is a problem with the .DS_Store file created by OSX. If you delete the whitespace of the filename in OSX and then copy the file, the problem is gone. Is this a know issue between OSX and Samba, or is a problem with OSX and any Windows server? Many thanks Oliver -- Oliver Schulze L. | Get my e-mail after a captcha in: Asuncion - Paraguay | http://tinymailto.com/oliver -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Newbie question, authentication with UNIX accounts, not smbusers/smbpasswd
Hi all, I would like to access my RedHat Enterprise box which has Samba 3.0.9, by mapping a network drive from WinXP and specifying the UNIX account/password on the server. Is this possible? I can duplicate account usernames/passwords into smbusers/smbpasswd, but doing this for every user is a pain. Thanks in advance for any suggestions or pointers, Phil -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: solved: Re: [Samba] Letter instead of A4 with driver installed via Samba's Point'n'Print
Kay Obermueller schrieb: Chris Smith schrieb: On Thursday 18 January 2007 17:51, you wrote: Yes, and it printed already correctly as a remote printer from Linux and OS X. Page Size is set to A4. Hmmm...cups updates the ppd in /etc/cups/ppd/ when the printer options are set ans I'm reasonably sure, but not certain, that it uses that ppd as a base when doing cupsaddsmb. Maybe there's an old version in /var/lib/samba/printers/W32X86 or wherever your distro puts it. Regardless you should be able to set the defaults via Windows by drilling down the printers folder on the server, right click on printer, choose properties, then from the Advanced tab select the box 'Printing Defaults...' and continue. Chris After I repeated cupsaddsmb I must have missed the correct menu in Windows to set the paper size. Since I set it in any menu I could find and tested printing with a brand new untouched Windows client everthing is fine and really works without any user intervention! Thank you. Kay Unfortunately this issue is still unsolved. But I had no time for the last weeks. Now I got the HP Laserjet 2200 reinstalled onto Samba and made it print A4 per default after first installation on a windows client but not the Minolta Magicolor 2200. That one showed A4 in it's properties, but still tried to print Letter on first printout. (I even thought on manipulating the little switch behind it's paper tray...) Also setting defaults on the server doesn't work. And that would help very much. What had an influence was to reinstall the HP Laserjets from a console in wich locales were set to de_DE.UTF-8 instead POSIX. Why not for the Magicolor? Kay -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smb4k client
I am trying to get smb4k (KDE) client working. It displays the computers on the network but not the shares (localhost has the only share that shows up :-(). The command line may give a clue. This works: # smbclient -L //compaq but it prompts me for a password but I can just press return to get a list of shares. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0.24 + OpenLDAP
I'm using the above version of Samba with OpenLDAP. I also use the smbldap-useradd script to add users, like below. I'm finding that I also have to have an account in /etc/passwd for the user to get in otherwise I get the message below. I thought that the ldapsam:ldap://localhost/ would not require the /etc/passwd entry. What did I miss? # Adding a User (doesn't work) smbldap-useradd -a -s /bin/false -c'Test User' -A 1 -N'Test User' test_user # The errors I see [2007/02/15 20:00:39, 0] passdb/pdb_get_set.c:pdb_get_group_sid(164) pdb_get_group_sid: Failed to find Unix account for busby [2007/02/15 20:00:39, 0] auth/auth_sam.c:check_sam_security(352) check_sam_security: make_server_info_sam() failed with 'NT_STATUS_NO_SUCH_USER' # What's odd is that if I add a user to /etc/passwd with useradd then use the smbldap-useradd script to add a user to LDAP it works fine. I've tried to tweak PAM and NSS to read ldap and it looks to work via `getent passwd` test. I can also see my users in ldap when I do ldapsearch for the same thing Samba does. Any ideas? /djb -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Getting error Samba SID does not belong to our domain
Hi all we have samba 3.0.21c with OpenLDAP backend as PDC and also 4 BDC's Suddenly on PDC we are getting these error messages in /var/log/messages I am unable to register any system to the domain. niether able to logon to the domain. ## Feb 15 11:14:32 msdpl smbd[18212]: [2007/02/15 11:14:32, 0] lib/util_sock.c:send_smb(765) Feb 15 11:14:32 msdpl smbd[18212]: Error writing 5 bytes to client. -1. (Connection reset by peer) Feb 15 11:14:34 msdpl smbd[18217]: [2007/02/15 11:14:34, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:34 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-500 does not belong to our domain Feb 15 11:14:34 msdpl smbd[18217]: [2007/02/15 11:14:34, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:34 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-2998 does not belong to our domain Feb 15 11:14:34 msdpl smbd[18217]: [2007/02/15 11:14:34, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:34 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3004 does not belong to our domain Feb 15 11:14:34 msdpl smbd[18217]: [2007/02/15 11:14:34, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:34 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3006 does not belong to our domain Feb 15 11:14:35 msdpl smbd[18217]: [2007/02/15 11:14:35, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:35 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3008 does not belong to our domain Feb 15 11:14:35 msdpl smbd[18217]: [2007/02/15 11:14:35, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:35 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3010 does not belong to our domain Feb 15 11:14:35 msdpl smbd[18217]: [2007/02/15 11:14:35, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:35 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3012 does not belong to our domain Feb 15 11:14:35 msdpl smbd[18217]: [2007/02/15 11:14:35, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:35 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3014 does not belong to our domain Feb 15 11:14:35 msdpl smbd[18217]: [2007/02/15 11:14:35, 0] passdb/pdb_ldap.c:ldapuser2displayentry(4006) Feb 15 11:14:35 msdpl smbd[18217]: sid S-1-5-21-3963901886-956592875-555457773-3016 does not belong to our domain # when typing net rpc info it gives the following error rpc_client/cli_pipe.c:rpc_api_pipe(790) rpc_api_pipe: Remote machine MEDHAPDC pipe \samr fnum 0x7008returned critical error. Error was Call timed out: server did not respond after 1 milliseconds [2007/02/15 21:12:52, 0] libsmb/clientgen.c:cli_rpc_pipe_close(375) cli_rpc_pipe_close: cli_close failed on pipe \samr, fnum 0x7008 to machine MEDHAPDC. Error was Call timed out: server did not respond after 1 milliseconds this is net rpc error but when we type #net getlocalsid it gives the SID S-1-5-21-3963901886-956592875-555457773 Actually my server's SID is the same as above. what does the above error means . The below is my smb.conf ### [global] workgroup = msdpl.com netbios name = medhapdc passdb backend = ldapsam:ldap://msdpl.com server string = Domain Controller hosts allow = 192.168.128. 192.168.129. 192.168.130. 127. security = user encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 interfaces = eth0,lo printing = cups disable spoolss = Yes printcap name = cups max print jobs = 100 enable privileges = yes log level = 2 password level = 8 username level = 8 bind interfaces only = yes local master = Yes os level = 65 domain master = yes preferred master = yes remote browse sync = 192.168.130.3 null passwords = no hide unreadable = yes hide dot files = yes domain logons = yes logon script = %u.bat logon path = logon drive = X: logon home = wins support = yes name resolve order = wins lmhosts host bcast dns proxy = no time server = yes log file = /var/log/samba/%m.log max log size = 50 nt acl support = yes ldap passwd sync = yes add user script = /usr/local/sbin/smbldap-useradd -m %u delete user script = /usr/local/sbin/smbldap-userdel %u add machine script = /usr/local/sbin/smbldap-useradd -w %m add group script = /usr/local/sbin/smbldap-groupadd -p %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' ldap delete dn = Yes ldap ssl = no ldap suffix = dc=msdpl,dc=com ldap admin dn = cn=manager,dc=msdpl,dc=com ldap group suffix = ou=Groups ldap user suffix = ou=People check password
Fwd: Re: [Samba] user add script, machine add script
Hello to all, after noone bother my subject. I think I'm all alone making mistakes on this thing. But I should really know if it is possible to mange the administration of samba in an comfortable way. After all the years I worked with it I never did manage it to be in an sufficent manner. Is there a plan in the future to have a central administration within the samba package? Original-Nachricht Datum: Thu, 08 Feb 2007 18:22:52 +0100 Von: Daniel Müller [EMAIL PROTECTED] An: samba@lists.samba.org CC: Betreff: [Samba] user add script, machine add script I am using samba 3.024 on a suse 9.3 workstation.Everythings is working as it should but add users with the add user script from Microsofts usrmngr and Machines with the srvmgr from Win clients. The funny is I can add, delete groups put users into groups. Did someone manage this? greetings Daniel -- Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail?ac=OM.GX.GX003K11713T4783a -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- NEU +++ 3DSL von 11 mit extra Vorteil für GMX Besteller +++ Jetzt Einführungsangebot sichern: http://www.gmx.net/de/go/dsl -- Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten Browser-Versionen downloaden: http://www.gmx.net/de/go/browser -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smb4k client
On Friday 16 February 2007 10:20, James Lockie wrote: I am trying to get smb4k (KDE) client working. It displays the computers on the network but not the shares (localhost has the only share that shows up :-(). Are you configured SMB4K? It has many configuration options, please do Configure Smb4k first, when didn't done. SMB4K works fine for my FreeBSD 6.2 box, latest version is 0.8.0 -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO ACK telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: Fwd: Re: [Samba] user add script, machine add script
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Daniel Müller schrieb: [...] Is there a plan in the future to have a central administration within the samba package? i don't know if there is a plan to include a central administration within the samba package. But there are enough possibilites to manage samba with 3rd party - comfortable. usrmngr from NT4 is a possibility and works like a charm if all commands in the config are configured correctly. If you do use an LDAP setup you could e.g. do this with ldapscripts or smbldap-tools - examples are included. Other way around there is: LAM, phpldapadmin, GoSA, where the last one may be the advanced solution for managing samba. Okay, i see everything needs a working LDAP setup. Best Regards Patrick Original-Nachricht Datum: Thu, 08 Feb 2007 18:22:52 +0100 Von: Daniel Müller [EMAIL PROTECTED] An: samba@lists.samba.org CC: Betreff: [Samba] user add script, machine add script I am using samba 3.024 on a suse 9.3 workstation.Everythings is working as it should but add users with the add user script from Microsofts usrmngr and Machines with the srvmgr from Win clients. The funny is I can add, delete groups put users into groups. Did someone manage this? greetings Daniel -- Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail?ac=OM.GX.GX003K11713T4783a -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1VCQTKIzE6LY9r8RAl5fAJ9XYRVS4U2o8ATiOJz1Aacps0tk3gCgg7/1 7VMoBltn/eIEHpNvWyUAUTg= =Zk6g -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] smb4k client
Rashid N. Achilov wrote: On Friday 16 February 2007 10:20, James Lockie wrote: I am trying to get smb4k (KDE) client working. It displays the computers on the network but not the shares (localhost has the only share that shows up :-(). Are you configured SMB4K? It has many configuration options, please do Configure Smb4k first, when didn't done. SMB4K works fine for my FreeBSD 6.2 box, latest version is 0.8.0 Fixed, I set the samba|net||protocol hint to RAP. It says old but it works with all WinXP systems. :-) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] User name mapping on Active Directory
Hi Active Directory and Samba People Could you Please teach me, if there is any user name (Active directroy) mapping functionality is available in active directory similar to SAMBA (example .putiing the statement username map=/etc/samba/user.map in etc/smb.conf file), If yes Kindly let me know.. Thanks to read my query.. Brijesh Shukla -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Gentoo+OpenLDAP+Gentoo
Hey All, I'm trying to get a gentoo server setup running as a PDC for my office that I work for. I have followed the following HOWTO exactly... http://gentoo-wiki.com/HOWTO_LDAP_SAMBA_PDC and on step 4-4.2 (http://gentoo-wiki.com/HOWTO_LDAP_SAMBA_PDC_Basic_Evaluation#Join_It.21) it fails. I have followed everything from that HOWTO exactly, although I did have to add one single change... When I got to the step where I'm supposed to start samba, it was failing. By doing some research online, I found that I needed to add the following line into the /etc/samba/smb.conf file. winbind nested groups = no When I tried to start samba the first time, it kept failing. When I did some research, I found a forum which said that fixed he problem... and it indeed did. The problem I am having right now, so that the windows system following step 4-4.2 does not work. I get an error back... --- Start Error Your computer could not be joined to the domain because of the following error has occured: The user name could not be found. --- End Error If I log in and just try to access the fileshares, it works fine. I can see my home directory fine, but when trying to join the domain, it fails. ode On the PDC I am running wireshark and I can see the SAM LOGIN requests, but something weird I found with them was that the User Name: field in the packet was either the machine name TESTINGBOX$ or it was blank. If never passed the user name I entered cjamieson. The domain/workgroup I am using is set to borran The test user I added is cjamieson The samba NETBIOS name is PDC I am running this in VMWare to evaluate how well of solution samba+ldap is for our office. So far I have been getting no help from #samba on freenode, so I was suggest by #samba-technical to contact the mailing lists. Does anyone have experiance with this, or have some information which could help me get this figured out? Please and Thank you VERY much to anyone who can help. Colton -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r21353 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch
Author: gd Date: 2007-02-15 11:44:06 + (Thu, 15 Feb 2007) New Revision: 21353 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21353 Log: In the turn of tracking down nss_winbind related bugs on Linux: print NSS_STATUS code with DEBUG_NSS when leaving a function. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c branches/SAMBA_3_0_25/source/nsswitch/winbind_nss_linux.c Changeset: Sorry, the patch is too large (661 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21353
svn commit: samba r21355 - in branches/SAMBA_4_0/source/dsdb/samdb: .
Author: metze Date: 2007-02-15 11:53:50 + (Thu, 15 Feb 2007) New Revision: 21355 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21355 Log: work in child domains, CN=Configuration isn't always under the domain dn metze Modified: branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c === --- branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c 2007-02-15 11:51:06 UTC (rev 21354) +++ branches/SAMBA_4_0/source/dsdb/samdb/cracknames.c 2007-02-15 11:53:50 UTC (rev 21355) @@ -69,8 +69,8 @@ return DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR; } - service_dn = ldb_dn_new(tmp_ctx, ldb_ctx, CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration); - if ( ! ldb_dn_add_base(service_dn, samdb_base_dn(ldb_ctx))) { + service_dn = ldb_dn_new(tmp_ctx, ldb_ctx, CN=Directory Service,CN=Windows NT,CN=Services); + if ( ! ldb_dn_add_base(service_dn, samdb_config_dn(ldb_ctx))) { return DRSUAPI_DS_NAME_STATUS_RESOLVE_ERROR; } service_dn_str = ldb_dn_alloc_linearized(tmp_ctx, service_dn);
svn commit: samba r21356 - in branches/SAMBA_4_0/source/rpc_server/drsuapi: .
Author: metze Date: 2007-02-15 11:57:23 + (Thu, 15 Feb 2007) New Revision: 21356 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21356 Log: we have a function to get the sites dn also it's not always under the domain dn metze Modified: branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c Changeset: Modified: branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c === --- branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c 2007-02-15 11:53:50 UTC (rev 21355) +++ branches/SAMBA_4_0/source/rpc_server/drsuapi/dcesrv_drsuapi.c 2007-02-15 11:57:23 UTC (rev 21356) @@ -395,15 +395,11 @@ r-out.level_out = r-in.req.req1.level; - sites_dn = samdb_domain_to_dn(b_state-sam_ctx, mem_ctx, r-in.req.req1.domain_name); + sites_dn = samdb_sites_dn(b_state-sam_ctx, mem_ctx); if (!sites_dn) { return WERR_DS_OBJ_NOT_FOUND; } - if (!ldb_dn_add_child_fmt(sites_dn, CN=Sites,CN=Configuration)) { - return WERR_NOMEM; - } - switch (r-out.level_out) { case -1: /* this level is not like the others */
svn commit: samba r21357 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch
Author: gd Date: 2007-02-15 12:05:19 + (Thu, 15 Feb 2007) New Revision: 21357 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21357 Log: Fix typo. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_group.c branches/SAMBA_3_0_25/source/nsswitch/winbindd_group.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_group.c === --- branches/SAMBA_3_0/source/nsswitch/winbindd_group.c 2007-02-15 11:57:23 UTC (rev 21356) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_group.c 2007-02-15 12:05:19 UTC (rev 21357) @@ -1302,7 +1302,7 @@ } if ( s-domain-primary lp_winbind_trusted_domains_only()) { - DEBUG(7,(winbindd_getpwnam: My domain -- rejecting + DEBUG(7,(winbindd_getgroups: My domain -- rejecting getgroups() for %s\\%s.\n, s-domname, s-username)); request_error(state); Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd_group.c === --- branches/SAMBA_3_0_25/source/nsswitch/winbindd_group.c 2007-02-15 11:57:23 UTC (rev 21356) +++ branches/SAMBA_3_0_25/source/nsswitch/winbindd_group.c 2007-02-15 12:05:19 UTC (rev 21357) @@ -1302,7 +1302,7 @@ } if ( s-domain-primary lp_winbind_trusted_domains_only()) { - DEBUG(7,(winbindd_getpwnam: My domain -- rejecting + DEBUG(7,(winbindd_getgroups: My domain -- rejecting getgroups() for %s\\%s.\n, s-domname, s-username)); request_error(state);
svn commit: samba r21358 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch
Author: gd Date: 2007-02-15 12:10:57 + (Thu, 15 Feb 2007) New Revision: 21358 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21358 Log: Some more debugging for _nss_winbind_initgroups_dyn() on Linux. Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c branches/SAMBA_3_0_25/source/nsswitch/winbind_nss_linux.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c === --- branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c 2007-02-15 12:05:19 UTC (rev 21357) +++ branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c 2007-02-15 12:10:57 UTC (rev 21358) @@ -943,10 +943,22 @@ int num_gids = response.data.num_entries; gid_t *gid_list = (gid_t *)response.extra_data.data; +#ifdef DEBUG_NSS + fprintf(stderr, [%5d]: initgroups %s: got NSS_STATUS_SUCCESS + and %d gids\n, getpid(), + user, num_gids); +#endif + /* Copy group list to client */ for (i = 0; i num_gids; i++) { +#ifdef DEBUG_NSS + fprintf(stderr, [%5d]: initgroups %s (%d): + processing gid %d \n, getpid(), + user, group, gid_list[i]); +#endif + /* Skip primary group */ if (gid_list[i] == group) { Modified: branches/SAMBA_3_0_25/source/nsswitch/winbind_nss_linux.c === --- branches/SAMBA_3_0_25/source/nsswitch/winbind_nss_linux.c 2007-02-15 12:05:19 UTC (rev 21357) +++ branches/SAMBA_3_0_25/source/nsswitch/winbind_nss_linux.c 2007-02-15 12:10:57 UTC (rev 21358) @@ -943,10 +943,22 @@ int num_gids = response.data.num_entries; gid_t *gid_list = (gid_t *)response.extra_data.data; +#ifdef DEBUG_NSS + fprintf(stderr, [%5d]: initgroups %s: got NSS_STATUS_SUCCESS + and %d gids\n, getpid(), + user, num_gids); +#endif + /* Copy group list to client */ for (i = 0; i num_gids; i++) { +#ifdef DEBUG_NSS + fprintf(stderr, [%5d]: initgroups %s (%d): + processing gid %d \n, getpid(), + user, group, gid_list[i]); +#endif + /* Skip primary group */ if (gid_list[i] == group) {
svn commit: samba r21359 - in branches/SAMBA_4_0/source/dsdb/repl: .
Author: metze Date: 2007-02-15 12:40:13 + (Thu, 15 Feb 2007) New Revision: 21359 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21359 Log: remove the rid encryption before storing the password hashes We decided to store them plain in our ldb metze Modified: branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c === --- branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c2007-02-15 12:10:57 UTC (rev 21358) +++ branches/SAMBA_4_0/source/dsdb/repl/replicated_objects.c2007-02-15 12:40:13 UTC (rev 21359) @@ -28,9 +28,12 @@ #include librpc/gen_ndr/ndr_drsuapi.h #include librpc/gen_ndr/ndr_drsblobs.h #include lib/crypto/crypto.h +#include libcli/auth/libcli_auth.h static WERROR dsdb_decrypt_attribute_value(TALLOC_CTX *mem_ctx, const DATA_BLOB *gensec_skey, + bool rid_crypt, + uint32_t rid, DATA_BLOB *in, DATA_BLOB *out) { @@ -49,6 +52,13 @@ DATA_BLOB plain_buffer; + /* +* users with rid == 0 should not exist +*/ + if (rid_crypt rid == 0) { + return WERR_DS_DRA_INVALID_PARAMETER; + } + /* * the first 16 bytes at the beginning are the confounder * followed by the 4 byte crc32 checksum @@ -90,12 +100,21 @@ } checked_buffer = data_blob_const(dec_buffer.data + 4, dec_buffer.length - 4); - if (checked_buffer.length) { - plain_buffer = data_blob_talloc(mem_ctx, checked_buffer.data, checked_buffer.length); - memset(checked_buffer.data, 0x00, checked_buffer.length); - W_ERROR_HAVE_NO_MEMORY(plain_buffer.data); - } else { - plain_buffer = data_blob_const(NULL, 0); + plain_buffer = data_blob_talloc(mem_ctx, checked_buffer.data, checked_buffer.length); + W_ERROR_HAVE_NO_MEMORY(plain_buffer.data); + + if (rid_crypt) { + uint32_t i, num_hashes; + + if ((checked_buffer.length % 16) != 0) { + return WERR_DS_DRA_INVALID_PARAMETER; + } + + num_hashes = plain_buffer.length / 16; + for (i = 0; i num_hashes; i++) { + uint32_t offset = i * 16; + sam_rid_crypt(rid, checked_buffer.data + offset, plain_buffer.data + offset, 0); + } } *out = plain_buffer; @@ -103,12 +122,14 @@ } static WERROR dsdb_decrypt_attribute(const DATA_BLOB *gensec_skey, +uint32_t rid, struct drsuapi_DsReplicaAttribute *attr) { WERROR status; TALLOC_CTX *mem_ctx; DATA_BLOB *enc_data; DATA_BLOB plain_data; + bool rid_crypt = false; if (attr-value_ctr.num_values == 0) { return WERR_OK; @@ -119,6 +140,8 @@ case DRSUAPI_ATTRIBUTE_unicodePwd: case DRSUAPI_ATTRIBUTE_ntPwdHistory: case DRSUAPI_ATTRIBUTE_lmPwdHistory: + rid_crypt = true; + break; case DRSUAPI_ATTRIBUTE_supplementalCredentials: case DRSUAPI_ATTRIBUTE_priorValue: case DRSUAPI_ATTRIBUTE_currentValue: @@ -144,6 +167,8 @@ status = dsdb_decrypt_attribute_value(mem_ctx, gensec_skey, + rid_crypt, + rid, enc_data, plain_data); W_ERROR_NOT_OK_RETURN(status); @@ -178,6 +203,8 @@ struct drsuapi_DsReplicaAttribute *name_a = NULL; struct drsuapi_DsReplicaMetaData *name_d = NULL; struct replPropertyMetaData1 *rdn_m = NULL; + struct dom_sid *sid = NULL; + uint32_t rid = 0; int ret; if (!in-object.identifier) { @@ -196,6 +223,11 @@ return WERR_FOOBAR; } + sid = in-object.identifier-sid; + if (sid-num_auths 0) { + rid = sid-sub_auths[sid-num_auths - 1]; + } + msg = ldb_msg_new(mem_ctx); W_ERROR_HAVE_NO_MEMORY(msg); @@ -238,7 +270,7 @@ m = md-ctr.ctr1.array[i]; e = msg-elements[i]; - status = dsdb_decrypt_attribute(gensec_skey, a); + status = dsdb_decrypt_attribute(gensec_skey, rid, a); W_ERROR_NOT_OK_RETURN(status); status = dsdb_attribute_drsuapi_to_ldb(schema, a, msg-elements, e);
svn commit: samba r21360 - in branches/SAMBA_4_0/source/torture/libnet: .
Author: metze Date: 2007-02-15 12:47:58 + (Thu, 15 Feb 2007) New Revision: 21360 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21360 Log: - put in the correct machine account password into test_secrets.ldb - don't overwrite the passwords with 'test' as we now understand the windows format for the password hashes metze Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c Changeset: Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c === --- branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c 2007-02-15 12:40:13 UTC (rev 21359) +++ branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c 2007-02-15 12:47:58 UTC (rev 21360) @@ -200,9 +200,9 @@ subobj.CONFIGDN_MOD = \naming_fsmo,repl_meta_data\;\n subobj.SCHEMADN_MOD = \schema_fsmo,repl_meta_data\;\n \n - subobj.KRBTGTPASS = \test\;\n - subobj.MACHINEPASS = \test\;\n - subobj.ADMINPASS= \test\;\n + subobj.KRBTGTPASS = \_NOT_USED_\;\n + subobj.MACHINEPASS = \%s\;\n + subobj.ADMINPASS= \_NOT_USED_\;\n \n var paths = provision_default_paths(subobj);\n paths.samdb = \%s\;\n @@ -222,6 +222,7 @@ p-dest_dsa-netbios_name, /* subobj.HOSTNAME */ p-dest_dsa-dns_name, /* subobj.DNSNAME */ p-dest_dsa-site_name, /* subobj.DEFAULTSITE */ + cli_credentials_get_password(s-machine_account),/* subobj.MACHINEPASS */ TORTURE_SAMDB_LDB, /* paths.samdb */ TORTURE_SECRETS_LDB,/* paths.secrets */ TORTURE_SECRETS_KEYTAB);/* paths.keytab */ @@ -707,81 +708,6 @@ return test_become_dc_store_chunk(private_data, c); } -static BOOL test_become_dc_set_test_passwords(struct test_become_dc_state *s) -{ - struct ldb_message *msg; - int ret; - - printf(Set up \test\ as password for the krbtgt, machine and administrator accounts\n); - - /* -* first krbtgt password -*/ - msg = ldb_msg_new(s); - if (!msg) return False; - - msg-dn = ldb_dn_new_fmt(msg, s-ldb, CN=krbtgt,CN=Users,%s, -ldb_dn_get_linearized(samdb_base_dn(s-ldb))); - if (!msg) return False; - - ret = ldb_msg_add_string(msg, sambaPassword, test); - if (ret != LDB_SUCCESS) return False; - - ret = samdb_replace(s-ldb, s, msg); - if (ret != LDB_SUCCESS) { - printf(failed to replace sambaPassword for '%s': %s\n, - ldb_dn_get_linearized(msg-dn), - ldb_strerror(ret)); - return False; - } - talloc_free(msg); - - /* -* our machine account password -*/ - msg = ldb_msg_new(s); - if (!msg) return False; - - msg-dn = ldb_dn_new(msg, s-ldb, s-computer_dn); - if (!msg) return False; - - ret = ldb_msg_add_string(msg, sambaPassword, test); - if (ret != LDB_SUCCESS) return False; - - ret = samdb_replace(s-ldb, s, msg); - if (ret != LDB_SUCCESS) { - printf(failed to replace sambaPassword for '%s': %s\n, - ldb_dn_get_linearized(msg-dn), - ldb_strerror(ret)); - return False; - } - talloc_free(msg); - - /* -* the Administrator account password -*/ - msg = ldb_msg_new(s); - if (!msg) return False; - - msg-dn = ldb_dn_new_fmt(msg, s-ldb, CN=Administrator,CN=Users,%s, -ldb_dn_get_linearized(samdb_base_dn(s-ldb))); - if (!msg) return False; - - ret = ldb_msg_add_string(msg, sambaPassword, test); - if (ret != LDB_SUCCESS) return False; - - ret = samdb_replace(s-ldb, s, msg); - if (ret != LDB_SUCCESS) { - printf(failed to replace sambaPassword for '%s': %s\n, - ldb_dn_get_linearized(msg-dn), - ldb_strerror(ret)); - return False; - } - talloc_free(msg); - - return True; -} - BOOL torture_net_become_dc(struct torture_context *torture) { BOOL ret = True; @@ -886,8 +812,6 @@ goto cleanup; } - ret = test_become_dc_set_test_passwords(s); - cleanup: ZERO_STRUCT(u); u.in.domain_dns_name= torture_join_dom_dns_name(s-tj);
svn commit: samba r21361 - in branches/SAMBA_4_0/testprogs/ejs: .
Author: metze Date: 2007-02-15 12:51:44 + (Thu, 15 Feb 2007) New Revision: 21361 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21361 Log: let samba3sam.js pass when we'll use unicodePwd for storing the nt hash jelmer: what should this test really test? metze Modified: branches/SAMBA_4_0/testprogs/ejs/samba3sam.js Changeset: Modified: branches/SAMBA_4_0/testprogs/ejs/samba3sam.js === --- branches/SAMBA_4_0/testprogs/ejs/samba3sam.js 2007-02-15 12:47:58 UTC (rev 21360) +++ branches/SAMBA_4_0/testprogs/ejs/samba3sam.js 2007-02-15 12:51:44 UTC (rev 21361) @@ -137,7 +137,7 @@ dn: cn=Niemand,cn=Users,dc=vernstok,dc=nl objectClass: user unixName: bin -unicodePwd: geheim +sambaUnicodePwd: geheim cn: Niemand ); if (ok.error != 0) { @@ -147,27 +147,27 @@ assert(ok.error == 0); println(Checking for existence of record (remote)); - msg = ldb.search((unixName=bin), new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search((unixName=bin), new Array('unixName','cn','dn', 'sambaUnicodePwd')); assert(msg.error == 0); assert(msg.msgs.length == 1); assert(msg.msgs[0].cn == Niemand); - assert(msg.msgs[0].unicodePwd == geheim); + assert(msg.msgs[0].sambaUnicodePwd == geheim); println(Checking for existence of record (local remote)); - msg = ldb.search(((unixName=bin)(unicodePwd=geheim)), new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search(((unixName=bin)(sambaUnicodePwd=geheim)), new Array('unixName','cn','dn', 'sambaUnicodePwd')); assert(msg.error == 0); assert(msg.msgs.length == 1); // TODO: should check with more records assert(msg.msgs[0].cn == Niemand); assert(msg.msgs[0].unixName == bin); - assert(msg.msgs[0].unicodePwd == geheim); + assert(msg.msgs[0].sambaUnicodePwd == geheim); println(Checking for existence of record (local || remote)); - msg = ldb.search((|(unixName=bin)(unicodePwd=geheim)), new Array('unixName','cn','dn', 'unicodePwd')); + msg = ldb.search((|(unixName=bin)(sambaUnicodePwd=geheim)), new Array('unixName','cn','dn', 'sambaUnicodePwd')); println(got + msg.msgs.length + replies); assert(msg.error == 0); assert(msg.msgs.length == 1); // TODO: should check with more records assert(msg.msgs[0].cn == Niemand); - assert(msg.msgs[0].unixName == bin || msg.msgs[0].unicodePwd == geheim); + assert(msg.msgs[0].unixName == bin || msg.msgs[0].sambaUnicodePwd == geheim); println(Checking for data in destination database); msg = s3.db.search((cn=Niemand));
svn commit: samba r21362 - in branches/SAMBA_4_0/source: auth auth/credentials dsdb/samdb dsdb/samdb/ldb_modules libnet rpc_server/netlogon rpc_server/samr
Author: metze Date: 2007-02-15 12:54:58 + (Thu, 15 Feb 2007) New Revision: 21362 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21362 Log: rename: ntPwdHash = unicodePwd lmPwdHash = dBCSPwd sambaLMPwdHistory = lmPwdHistory sambaNTPwdHistory = ntPwdHistory Note: you need to reprovision after this change! metze Modified: branches/SAMBA_4_0/source/auth/credentials/credentials_files.c branches/SAMBA_4_0/source/auth/sam.c branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/local_password.c branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/samba3sam.c branches/SAMBA_4_0/source/dsdb/samdb/samdb.c branches/SAMBA_4_0/source/libnet/libnet_samsync_ldb.c branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c Changeset: Modified: branches/SAMBA_4_0/source/auth/credentials/credentials_files.c === --- branches/SAMBA_4_0/source/auth/credentials/credentials_files.c 2007-02-15 12:51:44 UTC (rev 21361) +++ branches/SAMBA_4_0/source/auth/credentials/credentials_files.c 2007-02-15 12:54:58 UTC (rev 21362) @@ -184,7 +184,7 @@ flatname, realm, secureChannelType, - ntPwdHash, + unicodePwd, msDS-KeyVersionNumber, saltPrincipal, privateKeytab, @@ -264,7 +264,7 @@ } if (!password) { - const struct ldb_val *nt_password_hash = ldb_msg_find_ldb_val(msgs[0], ntPwdHash); + const struct ldb_val *nt_password_hash = ldb_msg_find_ldb_val(msgs[0], unicodePwd); struct samr_Password hash; ZERO_STRUCT(hash); if (nt_password_hash) { Modified: branches/SAMBA_4_0/source/auth/sam.c === --- branches/SAMBA_4_0/source/auth/sam.c2007-02-15 12:51:44 UTC (rev 21361) +++ branches/SAMBA_4_0/source/auth/sam.c2007-02-15 12:54:58 UTC (rev 21362) @@ -39,8 +39,8 @@ krb5Key, /* passwords */ - lmPwdHash, - ntPwdHash, + dBCSPwd, + unicodePwd, userAccountControl, Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/local_password.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/local_password.c 2007-02-15 12:51:44 UTC (rev 21361) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/local_password.c 2007-02-15 12:54:58 UTC (rev 21362) @@ -54,10 +54,10 @@ static const char * const password_attrs[] = { sambaPassword, krb5Key, - ntPwdHash, - lmPwdHash, - sambaLMPwdHistory, - sambaNTPwdHistory, + unicodePwd, + dBCSPwd, + lmPwdHistory, + ntPwdHistory, msDS-KeyVersionNumber, pwdLastSet }; Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c 2007-02-15 12:51:44 UTC (rev 21361) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c 2007-02-15 12:54:58 UTC (rev 21362) @@ -106,22 +106,22 @@ } if (is_mod) { - if (ldb_msg_add_empty(msg, ntPwdHash, LDB_FLAG_MOD_REPLACE, NULL) != 0) { + if (ldb_msg_add_empty(msg, unicodePwd, LDB_FLAG_MOD_REPLACE, NULL) != 0) { return LDB_ERR_OPERATIONS_ERROR; } - if (ldb_msg_add_empty(msg, lmPwdHash, LDB_FLAG_MOD_REPLACE, NULL) != 0) { + if (ldb_msg_add_empty(msg, dBCSPwd, LDB_FLAG_MOD_REPLACE, NULL) != 0) { return LDB_ERR_OPERATIONS_ERROR; } } /* compute the new nt and lm hashes */ E_md4hash(sambaPassword, tmp_hash.hash); - if (samdb_msg_add_hash(module-ldb, msg, msg, ntPwdHash, tmp_hash) != 0) { + if (samdb_msg_add_hash(module-ldb, msg, msg, unicodePwd, tmp_hash) != 0) { return LDB_ERR_OPERATIONS_ERROR; } if (E_deshash(sambaPassword, tmp_hash.hash)) { - if (samdb_msg_add_hash(module-ldb, msg, msg, lmPwdHash, tmp_hash) != 0) { + if (samdb_msg_add_hash(module-ldb, msg, msg, dBCSPwd, tmp_hash) != 0) { return LDB_ERR_OPERATIONS_ERROR; } } @@ -276,7 +276,7 @@ key.mkvno = 0; key.salt = NULL; /* No salt for this enc type */ - ntPwdHash = samdb_result_hash(msg, msg, ntPwdHash); + ntPwdHash = samdb_result_hash(msg, msg, unicodePwd); if (ntPwdHash == NULL) { /* what happened ?! */ return LDB_ERR_OPERATIONS_ERROR;
svn commit: samba r21363 - in branches/SAMBA_4_0/source/kdc: .
Author: metze Date: 2007-02-15 12:56:46 + (Thu, 15 Feb 2007) New Revision: 21363 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21363 Log: fallback to fetch the KEYTYPE_ARCFOUR out of the unicodePwd attribute when no krb5key attribute is present or it doesn't contain the KEYTYPE_ARCFOUR key. metze Modified: branches/SAMBA_4_0/source/kdc/hdb-ldb.c Changeset: Modified: branches/SAMBA_4_0/source/kdc/hdb-ldb.c === --- branches/SAMBA_4_0/source/kdc/hdb-ldb.c 2007-02-15 12:54:58 UTC (rev 21362) +++ branches/SAMBA_4_0/source/kdc/hdb-ldb.c 2007-02-15 12:56:46 UTC (rev 21363) @@ -58,8 +58,6 @@ userPrincipalName, servicePrincipalName, - krb5Key, - userAccountControl, pwdLastSet, @@ -69,6 +67,10 @@ whenChanged, msDS-KeyVersionNumber, + krb5Key, + + unicodePwd, + NULL }; @@ -196,63 +198,109 @@ talloc_free(entry_ex-ctx); } -static krb5_error_code LDB_message2entry_keys(TALLOC_CTX *mem_ctx, +static krb5_error_code LDB_message2entry_keys(krb5_context context, + TALLOC_CTX *mem_ctx, struct ldb_message *msg, unsigned int userAccountControl, hdb_entry_ex *entry_ex) { krb5_error_code ret = 0; - struct ldb_message_element *ldb_keys; + struct ldb_message_element *krb5keys; + struct samr_Password *hash; int i; + bool arcfour_needed = true; + uint32_t allocated_keys = 0; + entry_ex-entry.keys.val = NULL; + entry_ex-entry.keys.len = 0; + /* Get krb5Key from the db */ - ldb_keys = ldb_msg_find_element(msg, krb5Key); + krb5keys = ldb_msg_find_element(msg, krb5Key); + hash = samdb_result_hash(mem_ctx, msg, unicodePwd); - if (!ldb_keys) { + if (krb5keys) { + allocated_keys = krb5keys-num_values; + } + + if (hash) { + allocated_keys++; + } + + if (allocated_keys == 0) { /* oh, no password. Apparently (comment in * hdb-ldap.c) this violates the ASN.1, but this * allows an entry with no keys (yet). */ - entry_ex-entry.keys.val = NULL; - entry_ex-entry.keys.len = 0; - } else { - /* allocate space to decode into */ - entry_ex-entry.keys.val = calloc(ldb_keys-num_values, sizeof(Key)); - if (entry_ex-entry.keys.val == NULL) { - ret = ENOMEM; + return 0; + } + + /* allocate space to decode into */ + entry_ex-entry.keys.len = 0; + entry_ex-entry.keys.val = calloc(allocated_keys, sizeof(Key)); + if (entry_ex-entry.keys.val == NULL) { + ret = ENOMEM; + goto out; + } + + /* Decode Kerberos keys into the hdb structure */ + for (i=0; (krb5keys i krb5keys-num_values); i++) { + size_t decode_len; + Key key; + ret = decode_Key(krb5keys-values[i].data, krb5keys-values[i].length, +key, decode_len); + if (ret) { + /* Could be bougus data in the entry, or out of memory */ goto out; } - entry_ex-entry.keys.len = 0; - - /* Decode Kerberos keys into the hdb structure */ - for (i=0; i ldb_keys-num_values; i++) { - size_t decode_len; - Key key; - ret = decode_Key(ldb_keys-values[i].data, ldb_keys-values[i].length, -key, decode_len); - if (ret) { - /* Could be bougus data in the entry, or out of memory */ - goto out; - } - - if (userAccountControl UF_USE_DES_KEY_ONLY) { - switch (key.key.keytype) { - case KEYTYPE_DES: - entry_ex-entry.keys.val[entry_ex-entry.keys.len] = key; - entry_ex-entry.keys.len++; - default: - /* We must use DES keys only */ - break; - } - } else { + if (userAccountControl UF_USE_DES_KEY_ONLY) { + switch (key.key.keytype) { + case KEYTYPE_DES: + arcfour_needed = false; entry_ex-entry.keys.val[entry_ex-entry.keys.len] = key;
svn commit: samba r21364 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .
Author: metze Date: 2007-02-15 13:01:18 + (Thu, 15 Feb 2007) New Revision: 21364 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21364 Log: cosmetic change: it's nicer to use the KEYTYPE_ macro for the keytype field... metze Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c === --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c 2007-02-15 12:56:46 UTC (rev 21363) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/password_hash.c 2007-02-15 13:01:18 UTC (rev 21364) @@ -231,7 +231,7 @@ struct ldb_val val; int ret; - if (keys[i].key.keytype == ETYPE_ARCFOUR_HMAC_MD5) { + if (keys[i].key.keytype == KEYTYPE_ARCFOUR) { /* We might end up doing this below: * This ensures we get the unicode * conversion right. This should also @@ -282,7 +282,7 @@ } krb5_ret = krb5_keyblock_init(smb_krb5_context-krb5_context, - ETYPE_ARCFOUR_HMAC_MD5, + KEYTYPE_ARCFOUR, ntPwdHash-hash, sizeof(ntPwdHash-hash), key.key); if (krb5_ret) {
svn commit: samba r21365 - in branches/SAMBA_3_0/source: .
Author: vlendec Date: 2007-02-15 14:09:39 + (Thu, 15 Feb 2007) New Revision: 21365 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21365 Log: Lets see which build farm machines have makecontext friends Modified: branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2007-02-15 13:01:18 UTC (rev 21364) +++ branches/SAMBA_3_0/source/configure.in 2007-02-15 14:09:39 UTC (rev 21365) @@ -1243,6 +1243,7 @@ AC_CHECK_HEADERS(sys/mman.h) # setbuffer, shmget, shm_open are needed for smbtorture AC_CHECK_FUNCS(setbuffer shmget shm_open) +AC_CHECK_FUNCS(makecontext getcontext setcontext swapcontext) # Find a method of generating a stack trace AC_CHECK_HEADERS(execinfo.h libexc.h libunwind.h)
svn commit: samba r21366 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse: .
Author: idra Date: 2007-02-15 14:48:47 + (Thu, 15 Feb 2007) New Revision: 21366 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21366 Log: Until we have a schema enforcing module (which will make it impossible to add object without an objectclass), we need to use the default ldb search filter (an empty one), to retrieve all objects, and all record contents. Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js Changeset: Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js === --- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js 2007-02-15 14:09:39 UTC (rev 21365) +++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Fsm.js 2007-02-15 14:48:47 UTC (rev 21366) @@ -311,7 +311,7 @@ } // Build the search expression - var searchExpr = (objectclass=*); + var searchExpr = ; // Get our module descriptor var module = fsm.getObject(swat.main.module); @@ -415,7 +415,7 @@ baseDN = hierarchy.reverse().join(,); // Build the search expression - var searchExpr = (objectclass=*); + var searchExpr = ; // Get our module descriptor var module = fsm.getObject(swat.main.module);
svn commit: samba r21367 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse: .
Author: idra Date: 2007-02-15 14:49:35 + (Thu, 15 Feb 2007) New Revision: 21367 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21367 Log: Clear out the table with a deleted object contents after the record is deleted. Could be confusing otherwise. Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js Changeset: Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js === --- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-02-15 14:48:47 UTC (rev 21366) +++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-02-15 14:49:35 UTC (rev 21367) @@ -517,15 +517,18 @@ var result = rpcRequest.getUserData(result); var tree = module.fsm.getObject(tree); - var node = tree.getDataModel().getData()[tree.getSelectedNodes()[0].parentNodeId]; + var dataModel = tree.getDataModel(); + var node = dataModel.getData()[tree.getSelectedNodes()[0].parentNodeId]; - tree.getDataModel().prune(node.nodeId, false); + dataModel.prune(node.nodeId, false); node.bOpened = false; tree.toggleOpened(node); alert(Object Successfully deleted!); this._ldbmod.setBase(); + // just clear the attribute/value table. + dataModel.setData([ ]); }; qx.Proto._displaySearchResults = function(module, rpcRequest)
Rev 67: 1st working ib integrated ctdb in http://samba.org/~tridge/psomogyi/
revno: 67 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-02-15 17:02:38 +0100 message: 1st working ib integrated ctdb TODO: bugfix of ctdb_bench (wants to sent via uninitialised connection - see bench_ring/dest) modified: ib/README.txt readme.txt-20070212151749-ess18rmh152b8hao-1 ib/ibw_ctdb.c ibw_ctdb.c-20070102171255-7krov7858dqza466-1 ib/ibw_ctdb.h ibw_ctdb.h-20070102171259-nmuvtzt98aqzg7xp-1 ib/ibw_ctdb_init.c ibw_ctdb_init.c-20070102171305-cn2z4k7ibx8141d5-1 ib/ibwrapper.c ibwrapper.c-20061204130028-0125b4f5a72f4b11 ib/ibwrapper_test.c ibwrapper_test.c-20061214171730-h11a2z5ed6pt66hj-1 === modified file 'ib/README.txt' --- a/ib/README.txt 2007-02-12 15:47:12 + +++ b/ib/README.txt 2007-02-15 16:02:38 + @@ -9,3 +9,12 @@ ./configure --enable-infiniband +Example for testing +=== +bin/ctdb_test --transport ib --nlist ../2nodes_rm.txt --listen 10.0.0.1:9001 +bin/ctdb_test --transport ib --nlist ../2nodes_rm.txt --listen 10.0.0.2:9001 + +where 2nodes_rm.txt: +10.0.0.1:9001 +10.0.0.2:9001 + === modified file 'ib/ibw_ctdb.c' --- a/ib/ibw_ctdb.c 2007-02-14 17:58:20 + +++ b/ib/ibw_ctdb.c 2007-02-15 16:02:38 + @@ -29,6 +29,36 @@ #include ibwrapper.h #include ibw_ctdb.h +int ctdb_ibw_node_connect(struct ibw_ctx *ictx, struct ctdb_node *node) +{ + struct sockaddr_in sock_out; + + memset(sock_out, 0, sizeof(struct sockaddr_in)); + inet_pton(AF_INET, node-address.address, sock_out.sin_addr); + sock_out.sin_port = htons(node-address.port); + sock_out.sin_family = PF_INET; + + if (ibw_connect(ictx, sock_out, node)) { + DEBUG(0, (ctdb_ibw_node_connect: ibw_connect failed - retrying in 1 sec...\n)); + /* try again once a second */ + event_add_timed(node-ctdb-ev, node, timeval_current_ofs(1, 0), + ctdb_ibw_node_connect_event, node); + return -1; + } + + /* continues at ibw_ctdb.c/IBWC_CONNECTED in good case */ + return 0; +} + +void ctdb_ibw_node_connect_event(struct event_context *ev, struct timed_event *te, + struct timeval t, void *private) +{ + struct ctdb_node *node = talloc_get_type(private, struct ctdb_node); + struct ibw_ctx *ictx = talloc_get_type(node-ctdb-private, struct ibw_ctx); + + ctdb_ibw_node_connect(ictx, node); +} + int ctdb_ibw_connstate_handler(struct ibw_ctx *ctx, struct ibw_conn *conn) { if (ctx!=NULL) { @@ -76,11 +106,17 @@ if (node!=NULL) node-ctdb-upcalls-node_dead(node); talloc_free(conn); + /* normal + intended disconnect = not reconnecting in this layer */ } break; case IBWC_ERROR: { -/* struct ctdb_node *node = talloc_get_type(conn-conn_userdata, struct ctdb_node); + struct ctdb_node *node = talloc_get_type(conn-conn_userdata, struct ctdb_node); if (node!=NULL) - node-ctdb-upcalls-node_dead(node);*/ + node-private = NULL; /* not to use again */ + + DEBUG(10, (IBWC_ERROR, reconnecting immediately...\n)); + talloc_free(conn); + event_add_timed(node-ctdb-ev, node, timeval_current_ofs(1, 0), + ctdb_ibw_node_connect_event, node); } break; default: assert(0); @@ -94,17 +130,20 @@ int ctdb_ibw_receive_handler(struct ibw_conn *conn, void *buf, int n) { struct ctdb_context *ctdb = talloc_get_type(conn-ctx-ctx_userdata, struct ctdb_context); + void*buf2; /* future TODO: a solution for removal of this */ assert(ctdb!=NULL); + assert(buf!=NULL); + assert(conn!=NULL); assert(conn-state==IBWC_CONNECTED); - /* TODO: shall I short-circuit this in ibwrapper? */ - /* maybe when everything go fine... */ + /* so far buf is an ib-registered memory area +* and being reused for next receive +* noticed that HL requires talloc-ed memory to be stolen */ + buf2 = talloc_zero_size(conn, n); + memcpy(buf2, buf, n); - /* TODO2: !!! here I can provide conn-conn_userdata (with no perf. penalty) - -* as struct ctdb_node in case the connection -* has been built up by ibw_connect !!! */ - ctdb-upcalls-recv_pkt(ctdb, (uint8_t *)buf, (uint32_t)n); + ctdb-upcalls-recv_pkt(ctdb, (uint8_t *)buf2, (uint32_t)n); return 0; } === modified file 'ib/ibw_ctdb.h' --- a/ib/ibw_ctdb.h 2007-01-02
svn commit: samba r21370 - in branches/SAMBA_3_0_25/source/smbd: .
Author: idra Date: 2007-02-15 16:51:30 + (Thu, 15 Feb 2007) New Revision: 21370 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21370 Log: check into 3.0.25 as well Modified: branches/SAMBA_3_0_25/source/smbd/dfree.c Changeset: Modified: branches/SAMBA_3_0_25/source/smbd/dfree.c === --- branches/SAMBA_3_0_25/source/smbd/dfree.c 2007-02-15 16:50:14 UTC (rev 21369) +++ branches/SAMBA_3_0_25/source/smbd/dfree.c 2007-02-15 16:51:30 UTC (rev 21370) @@ -66,7 +66,7 @@ SMB_BIG_UINT sys_disk_free(connection_struct *conn, const char *path, BOOL small_query, SMB_BIG_UINT *bsize,SMB_BIG_UINT *dfree,SMB_BIG_UINT *dsize) { - int dfree_retval; + SMB_BIG_UINT dfree_retval; SMB_BIG_UINT dfree_q = 0; SMB_BIG_UINT bsize_q = 0; SMB_BIG_UINT dsize_q = 0;
svn commit: samba-web r1082 - in trunk/patches/patches-3.0.24: .
Author: jerry Date: 2007-02-15 16:56:33 + (Thu, 15 Feb 2007) New Revision: 1082 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1082 Log: add jra's revision r21346 sec_desc in SetPrinter(Info3) for Vista clients Modified: trunk/patches/patches-3.0.24/spoolss.diff Changeset: Modified: trunk/patches/patches-3.0.24/spoolss.diff === --- trunk/patches/patches-3.0.24/spoolss.diff 2007-02-09 20:23:59 UTC (rev 1081) +++ trunk/patches/patches-3.0.24/spoolss.diff 2007-02-15 16:56:33 UTC (rev 1082) @@ -1,7 +1,7 @@ Index: samba-3.0.24/source/rpc_server/srv_spoolss_nt.c === --- samba-3.0.24.orig/source/rpc_server/srv_spoolss_nt.c 2007-02-04 12:59:21.0 -0600 -+++ samba-3.0.24/source/rpc_server/srv_spoolss_nt.c2007-02-09 14:22:20.0 -0600 samba-3.0.24/source/rpc_server/srv_spoolss_nt.c2007-02-14 11:47:48.0 -0600 @@ -5848,6 +5848,12 @@ goto done; } @@ -34,7 +34,7 @@ Index: samba-3.0.24/source/printing/nt_printing.c === --- samba-3.0.24.orig/source/printing/nt_printing.c2007-02-04 13:09:01.0 -0600 -+++ samba-3.0.24/source/printing/nt_printing.c 2007-02-09 14:22:20.0 -0600 samba-3.0.24/source/printing/nt_printing.c 2007-02-14 11:47:48.0 -0600 @@ -2984,11 +2984,15 @@ return True; } @@ -171,7 +171,7 @@ Index: samba-3.0.24/source/rpc_server/srv_spoolss.c === --- samba-3.0.24.orig/source/rpc_server/srv_spoolss.c 2006-04-19 21:29:27.0 -0500 -+++ samba-3.0.24/source/rpc_server/srv_spoolss.c 2007-02-09 14:22:43.0 -0600 samba-3.0.24/source/rpc_server/srv_spoolss.c 2007-02-14 11:47:48.0 -0600 @@ -1477,6 +1477,15 @@ ZERO_STRUCT(r_u);
Re: svn commit: samba r21346 - in branches: SAMBA_3_0/source/rpc_parse SAMBA_3_0_25/source/rpc_parse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: Author: jra Date: 2007-02-14 17:17:32 + (Wed, 14 Feb 2007) New Revision: 21346 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21346 Log: FIXME ! Our parsing here is wrong I think, but for a level3 it makes no sense for ptr_sec_desc to be NULL. JRA. Based on a Vista sniff from Martin Zielinski [EMAIL PROTECTED]. Jerry - part of the Vista patchset. Jeremy. Added to the patches page. jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF1JERIR7qMdg1EfYRAhGaAKCXnpILsEj7mt10TXnWAHidhwsyKgCePSOB V/JGQwhxpKu8p15dIFb0/lw= =eunp -END PGP SIGNATURE-
svn commit: samba-web r1083 - in trunk/patches/patches-3.0.24: .
Author: jerry Date: 2007-02-15 17:04:18 + (Thu, 15 Feb 2007) New Revision: 1083 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=1083 Log: improve my quilt-foo and actually include the changes to parse_spoolss.c in the patch this time Modified: trunk/patches/patches-3.0.24/spoolss.diff Changeset: Modified: trunk/patches/patches-3.0.24/spoolss.diff === --- trunk/patches/patches-3.0.24/spoolss.diff 2007-02-15 16:56:33 UTC (rev 1082) +++ trunk/patches/patches-3.0.24/spoolss.diff 2007-02-15 17:04:18 UTC (rev 1083) @@ -1,7 +1,7 @@ Index: samba-3.0.24/source/rpc_server/srv_spoolss_nt.c === --- samba-3.0.24.orig/source/rpc_server/srv_spoolss_nt.c 2007-02-04 12:59:21.0 -0600 -+++ samba-3.0.24/source/rpc_server/srv_spoolss_nt.c2007-02-14 11:47:48.0 -0600 samba-3.0.24/source/rpc_server/srv_spoolss_nt.c2007-02-15 11:02:09.0 -0600 @@ -5848,6 +5848,12 @@ goto done; } @@ -34,7 +34,7 @@ Index: samba-3.0.24/source/printing/nt_printing.c === --- samba-3.0.24.orig/source/printing/nt_printing.c2007-02-04 13:09:01.0 -0600 -+++ samba-3.0.24/source/printing/nt_printing.c 2007-02-14 11:47:48.0 -0600 samba-3.0.24/source/printing/nt_printing.c 2007-02-15 11:02:09.0 -0600 @@ -2984,11 +2984,15 @@ return True; } @@ -171,7 +171,7 @@ Index: samba-3.0.24/source/rpc_server/srv_spoolss.c === --- samba-3.0.24.orig/source/rpc_server/srv_spoolss.c 2006-04-19 21:29:27.0 -0500 -+++ samba-3.0.24/source/rpc_server/srv_spoolss.c 2007-02-14 11:47:48.0 -0600 samba-3.0.24/source/rpc_server/srv_spoolss.c 2007-02-15 11:02:09.0 -0600 @@ -1477,6 +1477,15 @@ ZERO_STRUCT(r_u); @@ -188,3 +188,25 @@ DEBUG(0,(spoolss_io_q_addprinterdriverex: unable to unmarshall SPOOL_Q_ADDPRINTERDRIVEREX.\n)); return False; } +Index: samba-3.0.24/source/rpc_parse/parse_spoolss.c +=== +--- samba-3.0.24.orig/source/rpc_parse/parse_spoolss.c 2007-02-15 11:02:19.0 -0600 samba-3.0.24/source/rpc_parse/parse_spoolss.c 2007-02-15 11:02:25.0 -0600 +@@ -3893,7 +3893,16 @@ + } + case 3: + { +- ptr_sec_desc = q_u-info.info_3-secdesc_ptr; ++ /* FIXME ! Our parsing here is wrong I think, ++ * but for a level3 it makes no sense for ++ * ptr_sec_desc to be NULL. JRA. Based on ++ * a Vista sniff from Martin Zielinski [EMAIL PROTECTED]. ++ */ ++ if (UNMARSHALLING(ps)) { ++ ptr_sec_desc = 1; ++ } else { ++ ptr_sec_desc = q_u-info.info_3-secdesc_ptr; ++ } + break; + } + }
svn commit: samba r21371 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse: .
Author: idra Date: 2007-02-15 18:48:37 + (Thu, 15 Feb 2007) New Revision: 21371 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21371 Log: Ehmm I was reseting the wrong dataModel... Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js Changeset: Modified: branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js === --- branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-02-15 16:51:30 UTC (rev 21370) +++ branches/SAMBA_4_0/webapps/swat/source/class/swat/module/ldbbrowse/Gui.js 2007-02-15 18:48:37 UTC (rev 21371) @@ -527,8 +527,10 @@ alert(Object Successfully deleted!); this._ldbmod.setBase(); + // just clear the attribute/value table. - dataModel.setData([ ]); + var tableModel = module.fsm.getObject(tableModel:browse); + tableModel.setData([]); }; qx.Proto._displaySearchResults = function(module, rpcRequest)
Rev 11481: Tests, more tests! Some are still commented out, because the code they test is broken at the moment. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11481 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Thu 2007-02-15 20:28:24 +0100 message: Tests, more tests! Some are still commented out, because the code they test is broken at the moment. modified: source/librpc/idl/winreg.idl svn-v2:[EMAIL PROTECTED] source/torture/ndr/winreg.csvn-v2:[EMAIL PROTECTED] === modified file 'source/librpc/idl/winreg.idl' --- a/source/librpc/idl/winreg.idl 2007-02-14 21:37:06 + +++ b/source/librpc/idl/winreg.idl 2007-02-15 19:28:24 + @@ -127,7 +127,7 @@ /**/ /* Function: 0x07 */ - WERROR winreg_DeleteKey( + [public] WERROR winreg_DeleteKey( [in,ref] policy_handle *handle, [in] winreg_String key ); @@ -171,13 +171,13 @@ /**/ /* Function: 0x0b */ - WERROR winreg_FlushKey( + [public] WERROR winreg_FlushKey( [in,ref] policy_handle *handle ); /**/ /* Function: 0x0c */ - WERROR winreg_GetKeySecurity( + [public] WERROR winreg_GetKeySecurity( [in,ref] policy_handle *handle, [in] security_secinfo sec_info, [in,out,ref] KeySecurityData *sd @@ -193,7 +193,7 @@ /**/ /* Function: 0x0e */ - WERROR winreg_NotifyChangeKeyValue( + [public] WERROR winreg_NotifyChangeKeyValue( [in,ref] policy_handle *handle, [in] uint8 watch_subtree, [in] uint32 notify_filter, @@ -205,7 +205,7 @@ /**/ /* Function: 0x0f */ - WERROR winreg_OpenKey( + [public] WERROR winreg_OpenKey( [in,ref] policy_handle *parent_handle, [in] winreg_String keyname, [in] uint32 unknown, @@ -215,7 +215,7 @@ /**/ /* Function: 0x10 */ - WERROR winreg_QueryInfoKey( + [public] WERROR winreg_QueryInfoKey( [in,ref] policy_handle *handle, [in,out,ref] winreg_String *class_in, [out,ref] uint32 *num_subkeys, @@ -295,7 +295,7 @@ /**/ /* Function: 0x1a */ - WERROR winreg_GetVersion( + [public] WERROR winreg_GetVersion( [in,ref] policy_handle *handle, [out,ref]uint32 *version ); === modified file 'source/torture/ndr/winreg.c' --- a/source/torture/ndr/winreg.c 2007-02-14 21:37:06 + +++ b/source/torture/ndr/winreg.c 2007-02-15 19:28:24 + @@ -279,6 +279,200 @@ return true; } +static const uint8_t flushkey_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0xb2, 0x64, 0xbc, 0xb3, 0x7f, 0x90, 0x29, 0x4a, + 0xb4, 0xb3, 0x91, 0xe7, 0xe4, 0x4a, 0x58, 0xe3 +}; + +static bool flushkey_in_check(struct torture_context *tctx, + struct winreg_FlushKey *r) +{ + torture_assert_int_equal(tctx, r-in.handle-handle_type, 0, handle type); + return true; +} + +static const uint8_t flushkey_out_data[] = { + 0x00, 0x00, 0x00, 0x00 +}; + +static bool flushkey_out_check(struct torture_context *tctx, + struct winreg_FlushKey *r) +{ + torture_assert_werr_ok(tctx, r-out.result, return code); + return true; +} + + +static const uint8_t openkey_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0xb2, 0x64, 0xbc, 0xb3, 0x7f, 0x90, 0x29, 0x4a, + 0xb4, 0xb3, 0x91, 0xe7, 0xe4, 0x4a, 0x58, 0xe3, 0x16, 0x00, 0x16, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0b, 0x00, 0x00, 0x00, 0x73, 0x00, 0x70, 0x00, 0x6f, 0x00, 0x74, 0x00, + 0x74, 0x00, 0x79, 0x00, 0x66, 0x00, 0x6f, 0x00, 0x6f, 0x00, 0x74, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 +}; + +static bool openkey_in_check(struct torture_context *tctx, struct winreg_OpenKey *r) +{ + torture_assert_int_equal(tctx, r-in.unknown, 0, unknown); + torture_assert_int_equal(tctx, r-in.access_mask, 0x0200, access mask); + torture_assert_str_equal(tctx, r-in.keyname.name, spottyfoot, keyname); + /* FIXME: parent handle */ + return true; +} + +static const uint8_t openkey_out_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00 +}; + +static bool openkey_out_check(struct torture_context *tctx, struct winreg_OpenKey *r) +{ + torture_assert(tctx, GUID_all_zero(r-out.handle-uuid), handle); + torture_assert_werr_equal(tctx, r-out.result, WERR_BADFILE, return code); + return true; +} + +static
svn commit: samba r21372 - in branches/SAMBA_4_0: . source/librpc/idl source/torture/ndr
Author: jelmer Date: 2007-02-15 19:33:03 + (Thu, 15 Feb 2007) New Revision: 21372 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21372 Log: Tests, more tests! Some are still commented out, because the code they test is broken at the moment. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/winreg.idl branches/SAMBA_4_0/source/torture/ndr/winreg.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/librpc/idl/winreg.idl === --- branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2007-02-15 18:48:37 UTC (rev 21371) +++ branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2007-02-15 19:33:03 UTC (rev 21372) @@ -127,7 +127,7 @@ /**/ /* Function: 0x07 */ - WERROR winreg_DeleteKey( + [public] WERROR winreg_DeleteKey( [in,ref] policy_handle *handle, [in] winreg_String key ); @@ -171,13 +171,13 @@ /**/ /* Function: 0x0b */ - WERROR winreg_FlushKey( + [public] WERROR winreg_FlushKey( [in,ref] policy_handle *handle ); /**/ /* Function: 0x0c */ - WERROR winreg_GetKeySecurity( + [public] WERROR winreg_GetKeySecurity( [in,ref] policy_handle *handle, [in] security_secinfo sec_info, [in,out,ref] KeySecurityData *sd @@ -193,7 +193,7 @@ /**/ /* Function: 0x0e */ - WERROR winreg_NotifyChangeKeyValue( + [public] WERROR winreg_NotifyChangeKeyValue( [in,ref] policy_handle *handle, [in] uint8 watch_subtree, [in] uint32 notify_filter, @@ -205,7 +205,7 @@ /**/ /* Function: 0x0f */ - WERROR winreg_OpenKey( + [public] WERROR winreg_OpenKey( [in,ref] policy_handle *parent_handle, [in] winreg_String keyname, [in] uint32 unknown, @@ -215,7 +215,7 @@ /**/ /* Function: 0x10 */ - WERROR winreg_QueryInfoKey( + [public] WERROR winreg_QueryInfoKey( [in,ref] policy_handle *handle, [in,out,ref] winreg_String *class_in, [out,ref] uint32 *num_subkeys, @@ -295,7 +295,7 @@ /**/ /* Function: 0x1a */ - WERROR winreg_GetVersion( + [public] WERROR winreg_GetVersion( [in,ref] policy_handle *handle, [out,ref]uint32 *version ); Modified: branches/SAMBA_4_0/source/torture/ndr/winreg.c === --- branches/SAMBA_4_0/source/torture/ndr/winreg.c 2007-02-15 18:48:37 UTC (rev 21371) +++ branches/SAMBA_4_0/source/torture/ndr/winreg.c 2007-02-15 19:33:03 UTC (rev 21372) @@ -279,6 +279,200 @@
Rev 11482: More tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11482 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Thu 2007-02-15 22:03:30 +0100 message: More tests. added: source/torture/ndr/atsvc.c atsvc.c-20070215202923-ar674o5zg66g8bza-1 modified: source/librpc/idl/atsvc.idlsvn-v2:[EMAIL PROTECTED] source/librpc/idl/winreg.idl svn-v2:[EMAIL PROTECTED] source/torture/config.mk svn-v2:[EMAIL PROTECTED] source/torture/ndr/ndr.c svn-v2:[EMAIL PROTECTED] source/torture/ndr/winreg.csvn-v2:[EMAIL PROTECTED] === added file 'source/torture/ndr/atsvc.c' --- a/source/torture/ndr/atsvc.c1970-01-01 00:00:00 + +++ b/source/torture/ndr/atsvc.c2007-02-15 21:03:30 + @@ -0,0 +1,215 @@ +/* + Unix SMB/CIFS implementation. + test suite for atsvc ndr operations + + Copyright (C) Jelmer Vernooij 2007 + + 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 torture/ndr/ndr.h +#include librpc/gen_ndr/ndr_atsvc.h + +static const uint8_t jobenum_in_data[] = { + 0x01, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x09, 0x00, 0x00, 0x00, 0x57, 0x00, 0x49, 0x00, 0x4e, 0x00, 0x32, 0x00, + 0x4b, 0x00, 0x44, 0x00, 0x43, 0x00, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, + 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + +static bool jobenum_in_check(struct torture_context *tctx, +struct atsvc_JobEnum *r) +{ + torture_assert(tctx, r-in.servername != NULL, servername ptr); + torture_assert_str_equal(tctx, r-in.servername, WIN2KDC1, servername); + torture_assert_int_equal(tctx, r-in.ctr-entries_read, 0, ctr entries read); + torture_assert(tctx, r-in.ctr-first_entry == NULL, ctr entries first_entry); + torture_assert_int_equal(tctx, r-in.preferred_max_len, -1, preferred max len); + torture_assert(tctx, r-in.resume_handle != NULL, resume handle ptr); + torture_assert_int_equal(tctx, *r-in.resume_handle, 0, resume handle); + return true; +} + +static const uint8_t jobenum_out_data[] = { + 0x07, 0x00, 0x00, 0x00, 0x28, 0x14, 0x0a, 0x00, 0x07, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0xc0, 0xe4, 0x0a, 0x05, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x13, 0x00, 0x00, 0x40, 0x18, 0x0a, 0x00, 0x02, 0x00, 0x00, 0x00, + 0xc0, 0xe4, 0x0a, 0x05, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x00, 0x00, + 0x30, 0x18, 0x0a, 0x00, 0x03, 0x00, 0x00, 0x00, 0xc0, 0xe4, 0x0a, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x00, 0x00, 0x20, 0x18, 0x0a, 0x00, + 0x04, 0x00, 0x00, 0x00, 0xc0, 0xe4, 0x0a, 0x05, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x13, 0x00, 0x00, 0x10, 0x18, 0x0a, 0x00, 0x05, 0x00, 0x00, 0x00, + 0xc0, 0xe4, 0x0a, 0x05, 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x00, 0x00, + 0x00, 0x18, 0x0a, 0x00, 0x06, 0x00, 0x00, 0x00, 0xc0, 0xe4, 0x0a, 0x05, + 0x00, 0x00, 0x00, 0x00, 0x02, 0x13, 0x00, 0x00, 0xf0, 0x17, 0x0a, 0x00, + 0x07, 0x00, 0x00, 0x00, 0xc0, 0xe4, 0x0a, 0x05, 0x00, 0x00, 0x00, 0x00, + 0x02, 0x13, 0x00, 0x00, 0xe0, 0x17, 0x0a, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x66, 0x00, 0x6f, 0x00, + 0x6f, 0x00, 0x2e, 0x00, 0x65, 0x00, 0x78, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x62, 0x00, 0x61, 0x00, 0x72, 0x00, 0x2e, 0x00, 0x65, 0x00, 0x78, 0x00, + 0x65, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x66, 0x00, 0x6f, 0x00, 0x6f, 0x00, 0x2e, 0x00, + 0x65, 0x00, 0x78, 0x00, 0x65, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x66, 0x00, 0x6f, 0x00, + 0x6f, 0x00, 0x2e, 0x00, 0x65, 0x00, 0x78, 0x00, 0x65, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, + 0x66, 0x00, 0x6f, 0x00, 0x6f, 0x00, 0x2e, 0x00, 0x65, 0x00, 0x78, 0x00, + 0x65, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x66, 0x00, 0x6f, 0x00, 0x6f, 0x00, 0x2e, 0x00, + 0x65, 0x00, 0x78, 0x00, 0x65, 0x00,
svn commit: samba r21373 - in branches/SAMBA_4_0: . source/librpc/idl source/torture source/torture/ndr
Author: jelmer Date: 2007-02-15 21:06:33 + (Thu, 15 Feb 2007) New Revision: 21373 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21373 Log: More tests. Added: branches/SAMBA_4_0/source/torture/ndr/atsvc.c Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/atsvc.idl branches/SAMBA_4_0/source/librpc/idl/winreg.idl branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/ndr/ndr.c branches/SAMBA_4_0/source/torture/ndr/winreg.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/librpc/idl/atsvc.idl === --- branches/SAMBA_4_0/source/librpc/idl/atsvc.idl 2007-02-15 19:33:03 UTC (rev 21372) +++ branches/SAMBA_4_0/source/librpc/idl/atsvc.idl 2007-02-15 21:06:33 UTC (rev 21373) @@ -71,7 +71,7 @@ /**/ /* Function: 0x00 */ - NTSTATUS atsvc_JobAdd( + [public] NTSTATUS atsvc_JobAdd( [in,unique,string,charset(UTF16)] uint16 *servername, [in] atsvc_JobInfo *job_info, [out,ref]uint32 *job_id @@ -79,7 +79,7 @@ /**/ /* Function: 0x01 */ - NTSTATUS atsvc_JobDel( + [public] NTSTATUS atsvc_JobDel( [in,unique,string,charset(UTF16)] uint16 *servername, [in]uint32 min_job_id, [in]uint32 max_job_id @@ -101,7 +101,7 @@ /**/ /* Function: 0x02 */ - NTSTATUS atsvc_JobEnum( + [public] NTSTATUS atsvc_JobEnum( [in,unique,string,charset(UTF16)] uint16 *servername, [in,out] atsvc_enum_ctr *ctr, [in] uint32 preferred_max_len, Modified: branches/SAMBA_4_0/source/librpc/idl/winreg.idl === --- branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2007-02-15 19:33:03 UTC (rev 21372) +++ branches/SAMBA_4_0/source/librpc/idl/winreg.idl 2007-02-15 21:06:33 UTC (rev 21373) @@ -148,7 +148,7 @@ [size_is(size/2),length_is(length/2),charset(UTF16)] uint16 *name; } winreg_StringBuf; - WERROR winreg_EnumKey( + [public] WERROR winreg_EnumKey( [in,ref]policy_handle*handle, [in]uint32 enum_index, [in,out,ref]winreg_StringBuf *name, Modified: branches/SAMBA_4_0/source/torture/config.mk === --- branches/SAMBA_4_0/source/torture/config.mk 2007-02-15 19:33:03 UTC (rev 21372) +++ branches/SAMBA_4_0/source/torture/config.mk 2007-02-15 21:06:33 UTC (rev 21373) @@ -101,7 +101,8 @@ INIT_FUNCTION = torture_ndr_init PRIVATE_PROTO_HEADER = ndr/proto.h OBJ_FILES = ndr/ndr.o \ - ndr/winreg.o + ndr/winreg.o \
Rev 11483: lsa tests in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11483 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Thu 2007-02-15 23:04:50 +0100 message: lsa tests added: source/torture/ndr/lsa.c lsa.c-20070215220302-1uxt3fp0chzgd7p5-1 modified: source/librpc/idl/lsa.idl svn-v2:[EMAIL PROTECTED] source/torture/config.mk svn-v2:[EMAIL PROTECTED] source/torture/ndr/ndr.c svn-v2:[EMAIL PROTECTED] Diff too large for email (1185 lines, the limit is 1000).
svn commit: samba r21374 - in branches/SAMBA_4_0: . source/librpc/idl source/torture source/torture/ndr
Author: jelmer Date: 2007-02-15 22:07:18 + (Thu, 15 Feb 2007) New Revision: 21374 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21374 Log: lsa tests Added: branches/SAMBA_4_0/source/torture/ndr/lsa.c Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/ndr/ndr.c Changeset: Sorry, the patch is too large (1301 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21374
Rev 11484: More lsa tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11484 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Thu 2007-02-15 23:55:39 +0100 message: More lsa tests. modified: source/librpc/idl/lsa.idl svn-v2:[EMAIL PROTECTED] source/torture/ndr/atsvc.c svn-v2:[EMAIL PROTECTED] source/torture/ndr/lsa.c svn-v2:[EMAIL PROTECTED] === modified file 'source/librpc/idl/lsa.idl' --- a/source/librpc/idl/lsa.idl 2007-02-15 22:07:18 + +++ b/source/librpc/idl/lsa.idl 2007-02-15 22:55:39 + @@ -47,7 +47,7 @@ /**/ /* Function: 0x01 */ - NTSTATUS lsa_Delete ( + [public] NTSTATUS lsa_Delete ( [in] policy_handle *handle ); @@ -247,7 +247,7 @@ /**/ /* Function: 0x0a */ - NTSTATUS lsa_CreateAccount ( + [public] NTSTATUS lsa_CreateAccount ( [in]policy_handle *handle, [in]dom_sid2 *sid, [in]uint32 access_mask, @@ -375,7 +375,7 @@ /* Function:0x10 */ - NTSTATUS lsa_CreateSecret( + [public] NTSTATUS lsa_CreateSecret( [in] policy_handle *handle, [in] lsa_String name, [in] uint32 access_mask, @@ -555,7 +555,7 @@ NTSTATUS lsa_SetInformationTrustedDomain(); /* Function: 0x1c */ - NTSTATUS lsa_OpenSecret( + [public] NTSTATUS lsa_OpenSecret( [in] policy_handle*handle, [in] lsa_Stringname, [in] uint32access_mask, @@ -564,7 +564,7 @@ /* Function: 0x1d */ - NTSTATUS lsa_SetSecret( + [public] NTSTATUS lsa_SetSecret( [in] policy_handle*sec_handle, [in,unique] lsa_DATA_BUF *new_val, [in,unique] lsa_DATA_BUF *old_val @@ -575,7 +575,7 @@ } lsa_DATA_BUF_PTR; /* Function: 0x1e */ - NTSTATUS lsa_QuerySecret ( + [public] NTSTATUS lsa_QuerySecret ( [in] policy_handle *sec_handle, [in,out,unique] lsa_DATA_BUF_PTR *new_val, [in,out,unique] NTTIME_hyper *new_mtime, === modified file 'source/torture/ndr/atsvc.c' --- a/source/torture/ndr/atsvc.c2007-02-15 21:06:33 + +++ b/source/torture/ndr/atsvc.c2007-02-15 22:55:39 + @@ -199,16 +199,16 @@ struct torture_suite *suite = torture_suite_create(ctx, atsvc); torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobEnum, jobenum_in_data, NDR_IN, jobenum_in_check ); - /* torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobEnum, jobenum_out_data, NDR_IN, jobenum_out_check ); */ + torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobEnum, jobenum_out_data, NDR_OUT, jobenum_out_check ); torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobAdd, jobadd_in_data, NDR_IN, jobadd_in_check ); - /* torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobAdd, jobadd_out_data, NDR_IN, jobadd_out_check ); */ + torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobAdd, jobadd_out_data, NDR_OUT, jobadd_out_check ); torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobDel, jobdel_in_data, NDR_IN, jobdel_in_check ); - /* torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobDel, jobdel_out_data, NDR_IN, jobdel_out_check ); */ + torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobDel, jobdel_out_data, NDR_OUT, jobdel_out_check ); torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobGetInfo, jobgetinfo_in_data, NDR_IN, jobgetinfo_in_check ); - /* torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobGetInfo, jobgetinfo_out_data, NDR_IN, jobgetinfo_out_check ); */ + torture_suite_add_ndr_pull_fn_test(suite, atsvc_JobGetInfo, jobgetinfo_out_data, NDR_OUT, jobgetinfo_out_check ); return suite; } === modified file 'source/torture/ndr/lsa.c' --- a/source/torture/ndr/lsa.c 2007-02-15 22:07:18 + +++ b/source/torture/ndr/lsa.c 2007-02-15 22:55:39 + @@ -1092,22 +1092,234 @@ return true; } +static const uint8_t lsarcreateaccount_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f, + 0x83, 0x16, 0x04, 0xe8, 0x63, 0x15, 0xeb, 0x84, 0x03, 0x00, 0x00, 0x00, + 0x01, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0xb4, 0x71, 0xbc, 0x00, + 0xe1, 0x10, 0x00, 0x00, 0x26, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 +}; + +static bool lsarcreateaccount_in_check(struct torture_context *tctx, +struct lsa_CreateAccount *r) +{ + /* FIXME: Handle */ + /* FIXME: Sid */ +
svn commit: samba r21375 - in branches/SAMBA_4_0: . source/librpc/idl source/torture/ndr
Author: jelmer Date: 2007-02-15 22:59:10 + (Thu, 15 Feb 2007) New Revision: 21375 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21375 Log: More lsa tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/ndr/atsvc.c branches/SAMBA_4_0/source/torture/ndr/lsa.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl === --- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2007-02-15 22:07:18 UTC (rev 21374) +++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2007-02-15 22:59:10 UTC (rev 21375) @@ -47,7 +47,7 @@ /**/ /* Function: 0x01 */ - NTSTATUS lsa_Delete ( + [public] NTSTATUS lsa_Delete ( [in] policy_handle *handle ); @@ -247,7 +247,7 @@ /**/ /* Function: 0x0a */ - NTSTATUS lsa_CreateAccount ( + [public] NTSTATUS lsa_CreateAccount ( [in]policy_handle *handle, [in]dom_sid2 *sid, [in]uint32 access_mask, @@ -375,7 +375,7 @@ /* Function:0x10 */ - NTSTATUS lsa_CreateSecret( + [public] NTSTATUS lsa_CreateSecret( [in] policy_handle *handle, [in] lsa_String name, [in] uint32 access_mask, @@ -555,7 +555,7 @@ NTSTATUS lsa_SetInformationTrustedDomain(); /* Function: 0x1c */ - NTSTATUS lsa_OpenSecret( + [public] NTSTATUS lsa_OpenSecret( [in] policy_handle*handle, [in] lsa_Stringname, [in] uint32access_mask, @@ -564,7 +564,7 @@ /* Function: 0x1d */ - NTSTATUS lsa_SetSecret( + [public] NTSTATUS lsa_SetSecret( [in] policy_handle*sec_handle, [in,unique] lsa_DATA_BUF *new_val, [in,unique] lsa_DATA_BUF *old_val @@ -575,7 +575,7 @@ } lsa_DATA_BUF_PTR; /* Function: 0x1e */ - NTSTATUS lsa_QuerySecret ( + [public] NTSTATUS lsa_QuerySecret ( [in] policy_handle *sec_handle, [in,out,unique] lsa_DATA_BUF_PTR *new_val, [in,out,unique] NTTIME_hyper *new_mtime, Modified: branches/SAMBA_4_0/source/torture/ndr/atsvc.c === --- branches/SAMBA_4_0/source/torture/ndr/atsvc.c 2007-02-15 22:07:18 UTC (rev 21374) +++ branches/SAMBA_4_0/source/torture/ndr/atsvc.c 2007-02-15 22:59:10 UTC (rev 21375) @@ -199,16 +199,16 @@ struct torture_suite *suite =
Rev 11485: More tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11485 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-02-16 00:49:24 +0100 message: More tests. modified: source/librpc/idl/lsa.idl svn-v2:[EMAIL PROTECTED] source/torture/ndr/lsa.c svn-v2:[EMAIL PROTECTED] === modified file 'source/librpc/idl/lsa.idl' --- a/source/librpc/idl/lsa.idl 2007-02-15 22:59:10 + +++ b/source/librpc/idl/lsa.idl 2007-02-15 23:49:24 + @@ -268,7 +268,7 @@ [size_is(num_sids)] lsa_SidPtr *sids; } lsa_SidArray; - NTSTATUS lsa_EnumAccounts ( + [public] NTSTATUS lsa_EnumAccounts ( [in] policy_handle *handle, [in,out] uint32 *resume_handle, [in,range(0,8192)] uint32 num_entries, @@ -279,7 +279,7 @@ /*/ /* Function: 0x0c*/ - NTSTATUS lsa_CreateTrustedDomain( + [public] NTSTATUS lsa_CreateTrustedDomain( [in] policy_handle *handle, [in] lsa_DomainInfo *info, [in] uint32 access_mask, @@ -824,7 +824,7 @@ [size_is(count)] lsa_TranslatedName2 *names; } lsa_TransNameArray2; - NTSTATUS lsa_LookupSids2( + [public] NTSTATUS lsa_LookupSids2( [in] policy_handle *handle, [in] lsa_SidArray *sids, [out,unique]lsa_RefDomainList *domains, === modified file 'source/torture/ndr/lsa.c' --- a/source/torture/ndr/lsa.c 2007-02-15 22:59:10 + +++ b/source/torture/ndr/lsa.c 2007-02-15 23:49:24 + @@ -1287,6 +1287,213 @@ return true; } +static const uint8_t lsarcreatetrusteddomain_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f, + 0x83, 0x16, 0x04, 0xe8, 0x63, 0x15, 0xeb, 0x84, 0x1a, 0x00, 0x1a, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x74, 0x00, 0x6f, 0x00, + 0x72, 0x00, 0x74, 0x00, 0x75, 0x00, 0x72, 0x00, 0x65, 0x00, 0x64, 0x00, + 0x6f, 0x00, 0x6d, 0x00, 0x61, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, + 0x15, 0x00, 0x00, 0x00, 0x76, 0x7c, 0x01, 0x00, 0x93, 0xcb, 0x05, 0x00, + 0x39, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 +}; + +static bool lsarcreatetrusteddomain_in_check(struct torture_context *tctx, + struct lsa_CreateTrustedDomain *r) +{ + /* FIXME: Handle */ + torture_assert_str_equal(tctx, r-in.info-name.string, torturedomain, name); + torture_assert(tctx, r-in.info-sid != NULL, sid); + torture_assert_int_equal(tctx, r-in.access_mask, 0x200, access mask); + return true; +} + +static const uint8_t lsarcreatetrusteddomain_out_data[] = { + 0x00, 0x00, 0x00, 0x00, 0xb5, 0x23, 0x36, 0x5f, 0x33, 0x92, 0x41, 0x4c, + 0x9a, 0x73, 0x7d, 0x6a, 0x23, 0x14, 0x62, 0x56, 0x00, 0x00, 0x00, 0x00 +}; + +static bool lsarcreatetrusteddomain_out_check(struct torture_context *tctx, + struct lsa_CreateTrustedDomain *r) +{ + /* FIXME: Handle */ + torture_assert_ntstatus_ok(tctx, r-out.result, return code); + return true; +} + +static const uint8_t lsarenumerateaccounts_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f, + 0x83, 0x16, 0x04, 0xe8, 0x63, 0x15, 0xeb, 0x84, 0x00, 0x00, 0x00, 0x00, + 0x64, 0x00, 0x00, 0x00 +}; + +static bool lsarenumerateaccounts_in_check(struct torture_context *tctx, + struct lsa_EnumAccounts *r) +{ + /* FIXME: handle */ + torture_assert(tctx, r-in.resume_handle != NULL, resume handle ptr); + torture_assert_int_equal(tctx, *r-in.resume_handle, 0, resume handle); + torture_assert_int_equal(tctx, r-in.num_entries, 100, num entries); + return true; +} + +static const uint8_t lsarenumerateaccounts_out_data[] = { + 0x07, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, + 0x07, 0x00, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x08, 0x00, 0x02, 0x00, + 0x0c, 0x00, 0x02, 0x00, 0x10, 0x00, 0x02, 0x00, 0x14, 0x00, 0x02, 0x00, + 0x18, 0x00, 0x02, 0x00, 0x1c, 0x00, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x01, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, + 0x24, 0x02, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01, 0x02, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x05, 0x20, 0x00, 0x00, 0x00, 0x20, 0x02, 0x00, 0x00, + 0x05, 0x00, 0x00, 0x00, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00,
svn commit: samba r21376 - in branches/SAMBA_4_0: . source/librpc/idl source/torture/ndr
Author: jelmer Date: 2007-02-15 23:53:53 + (Thu, 15 Feb 2007) New Revision: 21376 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21376 Log: More tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/ndr/lsa.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/librpc/idl/lsa.idl === --- branches/SAMBA_4_0/source/librpc/idl/lsa.idl2007-02-15 22:59:10 UTC (rev 21375) +++ branches/SAMBA_4_0/source/librpc/idl/lsa.idl2007-02-15 23:53:53 UTC (rev 21376) @@ -268,7 +268,7 @@ [size_is(num_sids)] lsa_SidPtr *sids; } lsa_SidArray; - NTSTATUS lsa_EnumAccounts ( + [public] NTSTATUS lsa_EnumAccounts ( [in] policy_handle *handle, [in,out] uint32 *resume_handle, [in,range(0,8192)] uint32 num_entries, @@ -279,7 +279,7 @@ /*/ /* Function: 0x0c*/ - NTSTATUS lsa_CreateTrustedDomain( + [public] NTSTATUS lsa_CreateTrustedDomain( [in] policy_handle *handle, [in] lsa_DomainInfo *info, [in] uint32 access_mask, @@ -824,7 +824,7 @@ [size_is(count)] lsa_TranslatedName2 *names; } lsa_TransNameArray2; - NTSTATUS lsa_LookupSids2( + [public] NTSTATUS lsa_LookupSids2( [in] policy_handle *handle, [in] lsa_SidArray *sids, [out,unique]lsa_RefDomainList *domains, Modified: branches/SAMBA_4_0/source/torture/ndr/lsa.c === --- branches/SAMBA_4_0/source/torture/ndr/lsa.c 2007-02-15 22:59:10 UTC (rev 21375) +++ branches/SAMBA_4_0/source/torture/ndr/lsa.c 2007-02-15 23:53:53 UTC (rev 21376) @@ -1287,6 +1287,213 @@ return true; } +static const uint8_t lsarcreatetrusteddomain_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f, + 0x83, 0x16, 0x04, 0xe8, 0x63, 0x15, 0xeb, 0x84, 0x1a, 0x00, 0x1a, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x74, 0x00, 0x6f, 0x00, + 0x72, 0x00, 0x74, 0x00, 0x75, 0x00, 0x72, 0x00, 0x65, 0x00, 0x64, 0x00, + 0x6f, 0x00, 0x6d, 0x00, 0x61, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x00, 0x00, + 0x04, 0x00, 0x00, 0x00, 0x01, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, + 0x15, 0x00, 0x00, 0x00, 0x76, 0x7c, 0x01, 0x00, 0x93, 0xcb, 0x05, 0x00, + 0x39, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02 +}; + +static bool lsarcreatetrusteddomain_in_check(struct torture_context *tctx, +
Build status as of Fri Feb 16 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-02-15 00:00:26.0 + +++ /home/build/master/cache/broken_results.txt 2007-02-16 00:00:33.0 + @@ -1,22 +1,22 @@ -Build status as of Thu Feb 15 00:00:02 2007 +Build status as of Fri Feb 16 00:00:02 2007 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 33 6 0 +ccache 34 6 0 ctdb 0 0 0 distcc 3 0 0 ldb 32 5 0 libreplace 30 2 0 -lorikeet-heimdal 28 17 0 -ppp 14 0 0 +lorikeet-heimdal 29 17 0 +ppp 15 0 0 rsync34 5 0 samba0 0 0 samba-docs 0 0 0 -samba4 37 27 0 -samba_3_039 14 0 +samba4 38 26 0 +samba_3_040 15 0 smb-build31 31 0 -talloc 33 1 0 +talloc 34 1 0 tdb 32 2 0
Rev 11486: More tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11486 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-02-16 01:30:36 +0100 message: More tests. modified: source/librpc/idl/lsa.idl svn-v2:[EMAIL PROTECTED] source/torture/ndr/lsa.c svn-v2:[EMAIL PROTECTED] === modified file 'source/librpc/idl/lsa.idl' --- a/source/librpc/idl/lsa.idl 2007-02-15 23:53:53 + +++ b/source/librpc/idl/lsa.idl 2007-02-16 00:30:36 + @@ -69,7 +69,7 @@ [size_is(count)] lsa_PrivEntry *privs; } lsa_PrivArray; - NTSTATUS lsa_EnumPrivs ( + [public] NTSTATUS lsa_EnumPrivs ( [in] policy_handle *handle, [in,out] uint32 *resume_handle, [in] uint32 max_count, @@ -850,7 +850,7 @@ [size_is(count)] lsa_TranslatedSid2 *sids; } lsa_TransSidArray2; - NTSTATUS lsa_LookupNames2 ( + [public] NTSTATUS lsa_LookupNames2 ( [in] policy_handle *handle, [in,range(0,1000)] uint32 num_names, [in,size_is(num_names)] lsa_String names[], @@ -903,7 +903,7 @@ [size_is(count)] lsa_TranslatedSid3 *sids; } lsa_TransSidArray3; - NTSTATUS lsa_LookupNames3 ( + [public] NTSTATUS lsa_LookupNames3 ( [in] policy_handle *handle, [in,range(0,1000)] uint32 num_names, [in,size_is(num_names)] lsa_String names[], @@ -939,7 +939,7 @@ /*/ /* Function 0x4c */ - NTSTATUS lsa_LookupSids3( + [public] NTSTATUS lsa_LookupSids3( [in] lsa_SidArray *sids, [out,unique] lsa_RefDomainList *domains, [in,out] lsa_TransNameArray2 *names, === modified file 'source/torture/ndr/lsa.c' --- a/source/torture/ndr/lsa.c 2007-02-15 23:53:53 + +++ b/source/torture/ndr/lsa.c 2007-02-16 00:30:36 + @@ -1492,7 +1492,491 @@ return true; } - +static const uint8_t lsarlookupnames2_in_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x2a, 0xab, 0xb8, 0x84, 0x36, 0xc6, 0xed, 0x4f, + 0x83, 0x16, 0x04, 0xe8, 0x63, 0x15, 0xeb, 0x84, 0x07, 0x00, 0x00, 0x00, + 0x07, 0x00, 0x00, 0x00, 0x22, 0x00, 0x22, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x1c, 0x00, 0x1c, 0x00, 0x02, 0x00, 0x00, 0x00, 0x20, 0x00, 0x20, 0x00, + 0x03, 0x00, 0x00, 0x00, 0x1e, 0x00, 0x1e, 0x00, 0x04, 0x00, 0x00, 0x00, + 0x1a, 0x00, 0x1a, 0x00, 0x05, 0x00, 0x00, 0x00, 0x26, 0x00, 0x26, 0x00, + 0x06, 0x00, 0x00, 0x00, 0x10, 0x00, 0x10, 0x00, 0x07, 0x00, 0x00, 0x00, + 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, + 0x41, 0x00, 0x63, 0x00, 0x63, 0x00, 0x6f, 0x00, 0x75, 0x00, 0x6e, 0x00, + 0x74, 0x00, 0x20, 0x00, 0x4f, 0x00, 0x70, 0x00, 0x65, 0x00, 0x72, 0x00, + 0x61, 0x00, 0x74, 0x00, 0x6f, 0x00, 0x72, 0x00, 0x73, 0x00, 0x00, 0x00, + 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0e, 0x00, 0x00, 0x00, + 0x41, 0x00, 0x64, 0x00, 0x6d, 0x00, 0x69, 0x00, 0x6e, 0x00, 0x69, 0x00, + 0x73, 0x00, 0x74, 0x00, 0x72, 0x00, 0x61, 0x00, 0x74, 0x00, 0x6f, 0x00, + 0x72, 0x00, 0x73, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x10, 0x00, 0x00, 0x00, 0x53, 0x00, 0x55, 0x00, 0x50, 0x00, 0x50, 0x00, + 0x4f, 0x00, 0x52, 0x00, 0x54, 0x00, 0x5f, 0x00, 0x33, 0x00, 0x38, 0x00, + 0x38, 0x00, 0x39, 0x00, 0x34, 0x00, 0x35, 0x00, 0x61, 0x00, 0x30, 0x00, + 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x00, + 0x4e, 0x00, 0x45, 0x00, 0x54, 0x00, 0x57, 0x00, 0x4f, 0x00, 0x52, 0x00, + 0x4b, 0x00, 0x20, 0x00, 0x53, 0x00, 0x45, 0x00, 0x52, 0x00, 0x56, 0x00, + 0x49, 0x00, 0x43, 0x00, 0x45, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x4c, 0x00, 0x4f, 0x00, + 0x43, 0x00, 0x41, 0x00, 0x4c, 0x00, 0x20, 0x00, 0x53, 0x00, 0x45, 0x00, + 0x52, 0x00, 0x56, 0x00, 0x49, 0x00, 0x43, 0x00, 0x45, 0x00, 0x00, 0x00, + 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x00, 0x00, 0x00, + 0x41, 0x00, 0x75, 0x00, 0x74, 0x00, 0x68, 0x00, 0x65, 0x00, 0x6e, 0x00, + 0x74, 0x00, 0x69, 0x00, 0x63, 0x00, 0x61, 0x00, 0x74, 0x00, 0x65, 0x00, + 0x64, 0x00, 0x20, 0x00, 0x55, 0x00, 0x73, 0x00, 0x65, 0x00, 0x72, 0x00, + 0x73, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x08, 0x00, 0x00, 0x00, 0x45, 0x00, 0x76, 0x00, 0x65, 0x00, 0x72, 0x00, + 0x79, 0x00, 0x6f, 0x00, 0x6e, 0x00, 0x65, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + +static bool lsarlookupnames2_in_check(struct torture_context *tctx, + struct lsa_LookupNames2 *r) +{ + /* FIXME: Handle */ + torture_assert_int_equal(tctx,
svn commit: samba r21377 - in branches/SAMBA_4_0: . source/librpc/idl source/torture/ndr
Author: jelmer Date: 2007-02-16 00:35:11 + (Fri, 16 Feb 2007) New Revision: 21377 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21377 Log: More tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/lsa.idl branches/SAMBA_4_0/source/torture/ndr/lsa.c Changeset: Sorry, the patch is too large (677 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21377
Rev 11487: Add simple NDR epmap test. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11487 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Fri 2007-02-16 02:05:04 +0100 message: Add simple NDR epmap test. added: source/torture/ndr/epmap.c epmap.c-20070216010313-hk7pxh9btce290tm-1 modified: source/librpc/idl/epmapper.idl svn-v2:[EMAIL PROTECTED] source/torture/config.mk svn-v2:[EMAIL PROTECTED] source/torture/ndr/ndr.c svn-v2:[EMAIL PROTECTED] === added file 'source/torture/ndr/epmap.c' --- a/source/torture/ndr/epmap.c1970-01-01 00:00:00 + +++ b/source/torture/ndr/epmap.c2007-02-16 01:05:04 + @@ -0,0 +1,78 @@ +/* + Unix SMB/CIFS implementation. + test suite for epmap ndr operations + + Copyright (C) Jelmer Vernooij 2007 + + 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 torture/ndr/ndr.h +#include librpc/gen_ndr/ndr_epmapper.h + +static const uint8_t map_in_data[] = { + 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, + 0x4b, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00, 0x05, 0x00, 0x13, 0x00, + 0x0d, 0x78, 0x57, 0x34, 0x12, 0x34, 0x12, 0xcd, 0xab, 0xef, 0x00, 0x01, + 0x23, 0x45, 0x67, 0x89, 0xac, 0x01, 0x00, 0x02, 0x00, 0x00, 0x00, 0x13, + 0x00, 0x0d, 0x04, 0x5d, 0x88, 0x8a, 0xeb, 0x1c, 0xc9, 0x11, 0x9f, 0xe8, + 0x08, 0x00, 0x2b, 0x10, 0x48, 0x60, 0x02, 0x00, 0x02, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x0b, 0x02, 0x00, 0x00, 0x00, 0x01, 0x00, 0x07, 0x02, 0x00, + 0x00, 0x00, 0x01, 0x00, 0x09, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00 +}; + +static bool map_in_check(struct torture_context *tctx, +struct epm_Map *r) +{ + /* FIXME: Object */ + torture_assert_int_equal(tctx, r-in.max_towers, 1, max towers); + torture_assert(tctx, r-in.map_tower != NULL, map tower); + torture_assert_int_equal(tctx, r-in.map_tower-tower_length, 75, tower len); + /* FIXME: entry handle */ + + return true; +} + +static const uint8_t map_out_data[] = { + 0x00, 0x00, 0x00, 0x00, 0x18, 0xc3, 0x47, 0xdd, 0xe6, 0x5a, 0x8b, 0x42, + 0xb3, 0xb7, 0xc7, 0x79, 0x7b, 0xf0, 0x45, 0xe0, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x05, 0x00, 0x00, 0x00, 0x4b, 0x00, 0x00, 0x00 +}; + +static bool map_out_check(struct torture_context *tctx, + struct epm_Map *r) +{ + torture_assert_int_equal(tctx, *r-out.num_towers, 1, num towers); + torture_assert_int_equal(tctx, r-out.result, 0x4b, return code); + /* FIXME: entry handle */ + + return true; +} + +struct torture_suite *ndr_epmap_suite(TALLOC_CTX *ctx) +{ + struct torture_suite *suite = torture_suite_create(ctx, epmap); + + torture_suite_add_ndr_pull_fn_test(suite, epm_Map, map_in_data, NDR_IN, map_in_check ); + /* torture_suite_add_ndr_pull_fn_test(suite, epm_Map, map_out_data, NDR_OUT, map_out_check ); */ + + return suite; +} + === modified file 'source/librpc/idl/epmapper.idl' --- a/source/librpc/idl/epmapper.idl2007-01-05 20:51:19 + +++ b/source/librpc/idl/epmapper.idl2007-02-16 01:05:04 + @@ -265,7 +265,7 @@ epm_twr_t *twr; } epm_twr_p_t; - error_status_t epm_Map( + [public] error_status_t epm_Map( [in,ptr] GUID*object, [in,ptr] epm_twr_t *map_tower, [in,out]policy_handle *entry_handle, === modified file 'source/torture/config.mk' --- a/source/torture/config.mk 2007-02-15 22:07:18 + +++ b/source/torture/config.mk 2007-02-16 01:05:04 + @@ -103,7 +103,8 @@ OBJ_FILES = ndr/ndr.o \ ndr/winreg.o \ ndr/atsvc.o \ - ndr/lsa.o + ndr/lsa.o \ + ndr/epmap.o [MODULE::torture_rpc] #
svn commit: samba r21378 - in branches/SAMBA_4_0: . source/librpc/idl source/torture source/torture/ndr
Author: jelmer Date: 2007-02-16 01:08:59 + (Fri, 16 Feb 2007) New Revision: 21378 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21378 Log: Add simple NDR epmap test. Added: branches/SAMBA_4_0/source/torture/ndr/epmap.c Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/idl/epmapper.idl branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/ndr/ndr.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/librpc/idl/epmapper.idl === --- branches/SAMBA_4_0/source/librpc/idl/epmapper.idl 2007-02-16 00:35:11 UTC (rev 21377) +++ branches/SAMBA_4_0/source/librpc/idl/epmapper.idl 2007-02-16 01:08:59 UTC (rev 21378) @@ -265,7 +265,7 @@ epm_twr_t *twr; } epm_twr_p_t; - error_status_t epm_Map( + [public] error_status_t epm_Map( [in,ptr] GUID*object, [in,ptr] epm_twr_t *map_tower, [in,out]policy_handle *entry_handle, Modified: branches/SAMBA_4_0/source/torture/config.mk === --- branches/SAMBA_4_0/source/torture/config.mk 2007-02-16 00:35:11 UTC (rev 21377) +++ branches/SAMBA_4_0/source/torture/config.mk 2007-02-16 01:08:59 UTC (rev 21378) @@ -103,7 +103,8 @@ OBJ_FILES = ndr/ndr.o \ ndr/winreg.o \ ndr/atsvc.o \ - ndr/lsa.o + ndr/lsa.o \ + ndr/epmap.o [MODULE::torture_rpc] # TORTURE_NET and TORTURE_NBT use functions from torture_rpc... Added: branches/SAMBA_4_0/source/torture/ndr/epmap.c === --- branches/SAMBA_4_0/source/torture/ndr/epmap.c 2007-02-16 00:35:11 UTC (rev 21377) +++ branches/SAMBA_4_0/source/torture/ndr/epmap.c 2007-02-16 01:08:59 UTC (rev 21378) @@ -0,0 +1,78 @@ +/* + Unix SMB/CIFS implementation. + test suite for epmap ndr operations + + Copyright (C) Jelmer Vernooij 2007 + + 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
Rev 59: merged peters IB work in http://samba.org/~tridge/ctdb
revno: 59 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-02-16 14:41:45 +1100 message: merged peters IB work added: ib/README.txt readme.txt-20070212151749-ess18rmh152b8hao-1 renamed: tests/ibwrapper_test.c = ib/ibwrapper_test.c ibwrapper_test.c-20061214171730-h11a2z5ed6pt66hj-1 modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 common/ctdb.c ctdb.c-20061127094323-t50f58d65iaao5of-2 ib/ibw_ctdb.c ibw_ctdb.c-20070102171255-7krov7858dqza466-1 ib/ibw_ctdb.h ibw_ctdb.h-20070102171259-nmuvtzt98aqzg7xp-1 ib/ibw_ctdb_init.c ibw_ctdb_init.c-20070102171305-cn2z4k7ibx8141d5-1 ib/ibwrapper.c ibwrapper.c-20061204130028-0125b4f5a72f4b11 ib/ibwrapper_test.c ibwrapper_test.c-20061214171730-h11a2z5ed6pt66hj-1 revno: 44.1.23 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-02-15 17:02:38 +0100 message: 1st working ib integrated ctdb TODO: bugfix of ctdb_bench (wants to sent via uninitialised connection - see bench_ring/dest) revno: 44.1.22 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-02-14 18:58:20 +0100 message: ib: a trivial approach of integration TODO: bugfix (not yet complete, something happens differently than expected at tcpip when connection is refused in the beginning) revno: 44.1.21 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Mon 2007-02-12 16:47:12 +0100 message: Some minor changes before integrating ib... revno: 44.1.20 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Mon 2007-02-12 15:13:22 +0100 message: Merged tridge's code. (I had error 206 at direct bzr merge, so 1st I did a bzr branch and merged that one.) revno: 44.1.19 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Fri 2007-02-09 18:06:13 +0100 message: ib: adjustment of a test scenario Diff too large for email (627, the limit is 200).
Rev 60: fixed incr initialisation in http://samba.org/~tridge/ctdb
revno: 60 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Fri 2007-02-16 14:48:27 +1100 message: fixed incr initialisation modified: ctdb_bench.c ctdb_bench.c-20061219052637-2liagoglohxb6p7s-1 === modified file 'ctdb_bench.c' --- a/ctdb_bench.c 2007-02-09 01:45:58 + +++ b/ctdb_bench.c 2007-02-16 03:48:27 + @@ -149,19 +149,22 @@ */ static void bench_ring(struct ctdb_context *ctdb, struct event_context *ev) { - TDB_DATA data; - int incr, vnn=ctdb_get_vnn(ctdb); - - data.dptr = (uint8_t *)incr; - data.dsize = sizeof(incr); + int vnn=ctdb_get_vnn(ctdb); if (vnn == 0) { /* two messages are injected into the ring, moving in opposite directions */ - int dest = (ctdb_get_vnn(ctdb) + incr) % ctdb_get_num_nodes(ctdb); + int dest, incr; + TDB_DATA data; + + data.dptr = (uint8_t *)incr; + data.dsize = sizeof(incr); + incr = 1; + dest = (ctdb_get_vnn(ctdb) + incr) % ctdb_get_num_nodes(ctdb); ctdb_send_message(ctdb, dest, 0, data); incr = -1; + dest = (ctdb_get_vnn(ctdb) + incr) % ctdb_get_num_nodes(ctdb); ctdb_send_message(ctdb, dest, 0, data); }