[Samba] samba proxy - can it be done?
I am trying to build an embedded samba appliance that will work as a VPN endpoint for a remote server. I have no control over the IP and routing assigned to the appliance, or the computers on its subnet. I've set up wins forwarding on the appliance so I can see the remote server in My networks on the client PCs, but (not surprisingly ) I cannot connect to it as the windows clients have no route to the subnet at the remote endpoint. Is there some magic bullet proxy that I can use to forward the connection from the remote samba server to the appliance? Both the appliance and the remote are running samba 3.0.26a. Thanks, --Yan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] irritating log warnings
FWIW, here is the solution. in wins.dat (in debian you find it in /var/lib/samba/wins.dat) the old network was still present. I stopped samba, deleted the file and restarted samba. Done. -- Groeten, J.Asenjo -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] LDAP Account Manager 2.2.0.RC1 released
LDAP Account Manager (LAM) 2.2.0.RC1 - January 6th, 2008 LAM is a web frontend for managing accounts stored in an LDAP directory. Announcement: - This release adds a number of usability enhancements. The controls of the main tab were moved and are permanently visible now. LAM Pro customers can set different access levels and use the new password reset page. Full changelog: http://lam.sourceforge.net/changelog/index.htm This is a test release. Do not use it in productive environments! Please report any problems until 2008-01-18. Features: - * management of Unix user and group accounts (posixAccount/posixGroup) * management of Samba 2.x/3 user and host accounts (sambaAccount/sambaSamAccount) * management of Kolab 2 accounts (kolabInetorgPerson) * profiles for account creation * account creation via file upload * automatic creation/deletion of home directories * setting quotas * PDF output for all accounts * editor for organizational units (OU) * schema browser * tree view * multiple configuration files * multi-language support: Catalan, Chinese (Traditional + Simplified), Czech, Dutch, English, French, German, Hungarian, Italian, Japanese, Portuguese, Russian and Spanish * support for LDAP+SSL/TLS Availability: - This software is available under the GNU General Public License V2.0. You can get the newest version at http://lam.sf.net. It may take some time until you can download the files from all mirrors. File formats: DEB, RPM, tar.gz There is also a FreeBSD port. Debian users may use the packages in unstable. Demo installation: -- You can try our demo installation online. http://lam.sf.net/live-demo/index.htm Support: If you find a bug please file a bug report. For questions or implementing new features please use the forum and feature request tracker at our Sourceforge homepage http://www.sf.net/projects/lam. Authors Copyright: Copyright (C) 2003 - 2008: Michael Duergner [EMAIL PROTECTED] Roland Gruber [EMAIL PROTECTED] Tilo Lutz [EMAIL PROTECTED] LAM is published under the GNU General Public License. The comlete list of licenses can be found in the copyright file. signature.asc Description: OpenPGP digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba and CUPS accouting with HP 1320
Hi, I've problems to get accounting information for print jobs. I'm using samba and CUPs on debian etch. For the HP 1320 printer I use this PPD: http://openprinting.org/foomatic-db/db/source/PPD/HP/HP_LaserJet_1320_Series.ppd Which PS print driver do I have to use at windows client side? Thanks, Marcus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Multiple mounts instead of remounting?
I'm having issues trying to remount any shares using samba. Super Short version mount -o remount /some_windows_share creates a duplicate mount instead of properly remounting. Full details... I have many shares served off of NT4 boxes, mounted via samba on a linux box (RHEL 4). Since long dormant (12 hour) shares from one server in particular always have problems for a few seconds when accessing files, I altered my scripts to mount -o remount. I expected it would freshen the mount. Instead of doing a remount however, it appears to be mounting _over_ the original. Not really what I wanted. Any idea why it's doing this? I wanted to avoid doing an unmount then a mount, as some of these scripts may, on ocasion, be run in parallel. I know at least on local drives remounting while in use (at least for read operations), doesn't appear to cause problems.. Thanks, Kyle -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Adding samba 3.0.26a shared printer to Vista fails with 0x00000057
Running a security=share Samba 3.0.26a (with a print$ share), serving XP print/file and Vista file clients w/o any problems. However, when attempting to connect to a Samba shared printer with a Vista client I get: Windows cannot connect to the printer. Operation could not be completed (error 0x0057). It appears the REG_BINARY to REG_SZ patch discussed here: http://lists.samba.org/archive/samba-technical/2007-February/051552, is on, but maybe I'm running into trouble because the point-n-print stuff was initially added via the APW against some earlier version 3 of Samba? Would removing ntprinters.tdb and setting up my point-n-print environment again with this newer samba version accomplish anything? Thanks for any help, ~ Daniel -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] LDAP problem
Hello, I have a problem with my PDC server. It runs samba + openLDAP. It used to work fine. The machine was stopped today because of a power supply failure, and since it was restarted i have problems connecting to the domain. - The ldap data was restored from a ldif file, the ldap seems to work fine. when i type ldapsearch -x I see the contents of the ldap data. - When I try : smbclient -L \\pdc -U tleost it asks for my password, and i see the samba shares. - I tried, as root, on the pdc: smbpasswd -w which was successful. ... anyway, i cannot connect from my windows clients. I get an error message telling me the pdc is not available. Here is a log i get (/var/log/samba/devel2.log) - [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(219) check_ntlm_password: Checking password for unmapped user [EMAIL PROTECTED] with the new password interface [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(222) check_ntlm_password: mapped user is: [EMAIL PROTECTED] [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511) init_sam_from_ldap: Entry found for user: Invite [2008/01/06 15:17:45, 4] lib/substitute.c:automount_server(323) Home server: servpdc [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 1] auth/auth_util.c:make_server_info_sam(822) User Invite in passdb, but getpwnam() fails! [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1300) ldapsam_getsampwnam: Unable to locate user [] count=0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. [2008/01/06 15:17:45, 3] auth/auth_winbind.c:check_winbind_security(80) check_winbind_security: Not using winbind, requested domain [COMPANY] was for this SAM. [2008/01/06 15:17:45, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER [2008/01/06 15:17:45, 3] smbd/process.c:timeout_processing(1336) timeout_processing: End of file from client (client has disconnected). [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 2] smbd/server.c:exit_server(571) Closing connections [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(69) Yielding connection to [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(76) yield_connection: tdb_delete for name failed with error Record does not exist. [2008/01/06 15:17:45, 3] smbd/server.c:exit_server(614) Any help would be much appreciated. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Domain Trust
Hi! I have some problem with the trust betwen domains of Windows 200x. From a machine of domain A I can read users and groups of domain B, but I have some users of domain B at groups of domain A, and when I try [EMAIL PROTECTED]: ~$ getent group domainA\group I don't get the users of domain B that belong to this group. But if I write this order with an user of domain B: [EMAIL PROTECTED]: ~$ id I get all the groups of all domains where he belongs, also the groups of domain A. So, my question is: How can I get the users of domain B that belong to a group of domain A? Thanks, David Molina -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
Why did you need to restore from the ldif? Are you sure it was a recent backup? How was it made? A quick way to browse the ldap data is: slapcat | less on the ldap server. You can search quickly using the search functions in less - just like in vi. The log looks odd - I don't have a samba installation to hand to check but we see a user called Invite and also some entries which seem to be due a null user name: [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. Q On 06/01/2008, Tanguy Léost [EMAIL PROTECTED] wrote: Hello, I have a problem with my PDC server. It runs samba + openLDAP. It used to work fine. The machine was stopped today because of a power supply failure, and since it was restarted i have problems connecting to the domain. - The ldap data was restored from a ldif file, the ldap seems to work fine. when i type ldapsearch -x I see the contents of the ldap data. - When I try : smbclient -L \\pdc -U tleost it asks for my password, and i see the samba shares. - I tried, as root, on the pdc: smbpasswd -w which was successful. ... anyway, i cannot connect from my windows clients. I get an error message telling me the pdc is not available. Here is a log i get (/var/log/samba/devel2.log) - [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(219) check_ntlm_password: Checking password for unmapped user [EMAIL PROTECTED] with the new password interface [2008/01/06 15:17:45, 3] auth/auth.c:check_ntlm_password(222) check_ntlm_password: mapped user is: [EMAIL PROTECTED] [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511) init_sam_from_ldap: Entry found for user: Invite [2008/01/06 15:17:45, 4] lib/substitute.c:automount_server(323) Home server: servpdc [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 1] auth/auth_util.c:make_server_info_sam(822) User Invite in passdb, but getpwnam() fails! [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 3] smbd/uid.c:push_conn_ctx(365) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/06 15:17:45, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1300) ldapsam_getsampwnam: Unable to locate user [] count=0 [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. [2008/01/06 15:17:45, 3] auth/auth_winbind.c:check_winbind_security(80) check_winbind_security: Not using winbind, requested domain [COMPANY] was for this SAM. [2008/01/06 15:17:45, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER [2008/01/06 15:17:45, 3] smbd/process.c:timeout_processing(1336) timeout_processing: End of file from client (client has disconnected). [2008/01/06 15:17:45, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2008/01/06 15:17:45, 2] smbd/server.c:exit_server(571) Closing connections [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(69) Yielding connection to [2008/01/06 15:17:45, 3] smbd/connection.c:yield_connection(76) yield_connection: tdb_delete for name failed with error Record does not exist. [2008/01/06 15:17:45, 3] smbd/server.c:exit_server(614) Any help would be much appreciated. -- 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] LDAP problem
le 07.01.2008 00:43 Quinn Fissler ecrivait : Why did you need to restore from the ldif? Are you sure it was a recent backup? How was it made? Thanks very much for replying. I had to restore form a ldif file because the ldap seemed to be broken. Since we restored it, slpad is running again. I presume the restore was ok. I didn't do it myself. (By the way, I haven't had a look at the ldap administration, so I'm not quite used to the commands) A quick way to browse the ldap data is: slapcat | less I stopped slapd and tried it, it seems ok to me. I can see the data from my ldap. on the ldap server. You can search quickly using the search functions in less - just like in vi. The log looks odd - I don't have a samba installation to hand to check but we see a user called Invite and also some entries which seem to be due a null user name: [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. Yes, i'm puzzled too. Invite in french means guest. I have no idea why it looks for the guest account. I looked furher, and something looks strange. If I try: #ldapsearch -D cn=Manger,dc=company,dc=fr I get this: SASL/DIGEST-MD5 authentication started Please enter your password: ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80) additional info: SASL(-13): user not found: no secret in database It looks like it can't find the Manager account, doesn't it? If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. Q I'll have a look at this. Thanks for your help -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 00:43 Quinn Fissler ecrivait : Why did you need to restore from the ldif? Are you sure it was a recent backup? How was it made? A quick way to browse the ldap data is: slapcat | less on the ldap server. You can search quickly using the search functions in less - just like in vi. The log looks odd - I don't have a samba installation to hand to check but we see a user called Invite and also some entries which seem to be due a null user name: [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. Q I forgot to mention something weird: sometimes (maybe one time out of 10 or 15...) the PDC grants me access to the domain. I can open a windows session, or have access to a share on the PDC from my windows session. ...Keeps me even more confused. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
The account which you use to bind can be defined in the database or the rootdn in the slapd.conf There is also the option for anonymous binding - that's why I say use slapcat as it sidesteps the binding issue but has the limitation that it must be done on the ldap server (or its shared data area). You can leave slapd running when you do slapcat for diags (you may wish to stop ldap if you wanted to use slapcat to do a full backup of the directory, but for these diags, its just a quick way of sanity checking the data) I asked why you needed to restore as it's very unusual to lose data in this way. Was ldap reinstalled? How about samba? (Has some other thing changed after this power failure - like the smb.conf, smbldap confs, ldap.conf or slapd.conf) I take it that you're getting this running for Monday morning. Q On 07/01/2008, Tanguy Léost [EMAIL PROTECTED] wrote: le 07.01.2008 00:43 Quinn Fissler ecrivait : Why did you need to restore from the ldif? Are you sure it was a recent backup? How was it made? Thanks very much for replying. I had to restore form a ldif file because the ldap seemed to be broken. Since we restored it, slpad is running again. I presume the restore was ok. I didn't do it myself. (By the way, I haven't had a look at the ldap administration, so I'm not quite used to the commands) A quick way to browse the ldap data is: slapcat | less I stopped slapd and tried it, it seems ok to me. I can see the data from my ldap. on the ldap server. You can search quickly using the search functions in less - just like in vi. The log looks odd - I don't have a samba installation to hand to check but we see a user called Invite and also some entries which seem to be due a null user name: [2008/01/06 15:17:45, 3] auth/auth_sam.c:check_sam_security(244) check_sam_security: Couldn't find user '' in passdb file. Yes, i'm puzzled too. Invite in french means guest. I have no idea why it looks for the guest account. I looked furher, and something looks strange. If I try: #ldapsearch -D cn=Manger,dc=company,dc=fr I get this: SASL/DIGEST-MD5 authentication started Please enter your password: ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80) additional info: SASL(-13): user not found: no secret in database It looks like it can't find the Manager account, doesn't it? If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. Q I'll have a look at this. Thanks for your help -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
definitely get a look at the network dialogue How do your Windows clients resolve the address of the pdc? I forgot to mention something weird: sometimes (maybe one time out of 10 or 15...) the PDC grants me access to the domain. I can open a windows session, or have access to a share on the PDC from my windows session. ...Keeps me even more confused. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 01:44 Quinn Fissler ecrivait : The account which you use to bind can be defined in the database or the rootdn in the slapd.conf yes, that's cn=Manager,dc=company,dc=fr There is also the option for anonymous binding - that's why I say use slapcat as it sidesteps the binding issue but has the limitation that it must be done on the ldap server (or its shared data area). You can leave slapd running when you do slapcat for diags (you may wish to stop ldap if you wanted to use slapcat to do a full backup of the directory, but for these diags, its just a quick way of sanity checking the data) ok. I read that slapd should be stopped before running a slap* command, that's why i did that. I asked why you needed to restore as it's very unusual to lose data in this way. It was broken, so there was no other choice. A colleague tried to put back the files as he found them, but slpad wouldn't run, so we had to restore a backup Was ldap reinstalled? How about samba? none of them was touched. (Has some other thing changed after this power failure - like the smb.conf , smbldap confs, ldap.conf or slapd.conf) As far as I know these files were not modified. We just restored the ldif. I take it that you're getting this running for Monday morning. Q I wish it was true ;) it's just within 6 hours :( Thanks a lot for your help Do you have any idea how to have this PDC working again? ...I'm starting to consider the possibility of bypassing the ldap and use another way of authenticating the clients. Tanguy ps: sorry for my mistakes in english. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 01:53 Quinn Fissler ecrivait : definitely get a look at the network dialogue Yes i thought about that. Sometimes in the logs I get errors about the network (getpeername errors, and a french error messages which would probably stand for final node is not connected) But the network does look ok (except this pdc problem) How do your Windows clients resolve the address of the pdc? They resolve it correctly. I forgot to mention something weird: sometimes (maybe one time out of 10 or 15...) the PDC grants me access to the domain. I can open a windows session, or have access to a share on the PDC from my windows session. ...Keeps me even more confused. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
Hi, I had the same problem, as you had, I my Environment, i had samba PDC (samba 3.0.21c, LDAP openldap-2.2.13, DHCP, dns) running, and other file server(acting as Domain member server) as happenned to you, due to power failure ,my pdc went down and had to restart after which none of the windows xp or 2000 clients would connect (All saying that computer is not in domain). I had tried a lot of options including restoring the ldif file, (Because openldap did not recover from power failure causing openldap to break, had remove the exising db and restore from ldif file). when ever there was a power failure or uneven shutdown, this would happen, So for this i had this solution, created a BDC with ldap backend (slave ldap), So all my client would request to BDC first then PDC (as BDC wins election over PDC). So that if i had to take PDC down, I had no issues, Second to openldap to recover DB from power failure, Upgraded openldap to 2.3 with db recover options like keeping DB_CONFIG file, checkpointing etc. From then, I have not faced any issues. -- Regards Tom :) /*Life is too complicated, Lets make it simple*/ On Jan 7, 2008 6:28 AM, Tanguy Léost [EMAIL PROTECTED] wrote: le 07.01.2008 01:44 Quinn Fissler ecrivait : The account which you use to bind can be defined in the database or the rootdn in the slapd.conf yes, that's cn=Manager,dc=company,dc=fr There is also the option for anonymous binding - that's why I say use slapcat as it sidesteps the binding issue but has the limitation that it must be done on the ldap server (or its shared data area). You can leave slapd running when you do slapcat for diags (you may wish to stop ldap if you wanted to use slapcat to do a full backup of the directory, but for these diags, its just a quick way of sanity checking the data) ok. I read that slapd should be stopped before running a slap* command, that's why i did that. I asked why you needed to restore as it's very unusual to lose data in this way. It was broken, so there was no other choice. A colleague tried to put back the files as he found them, but slpad wouldn't run, so we had to restore a backup Was ldap reinstalled? How about samba? none of them was touched. (Has some other thing changed after this power failure - like the smb.conf , smbldap confs, ldap.conf or slapd.conf) As far as I know these files were not modified. We just restored the ldif. I take it that you're getting this running for Monday morning. Q I wish it was true ;) it's just within 6 hours :( Thanks a lot for your help Do you have any idea how to have this PDC working again? ...I'm starting to consider the possibility of bypassing the ldap and use another way of authenticating the clients. Tanguy ps: sorry for my mistakes in english. -- 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] LDAP problem
le 07.01.2008 02:11 tom farrel ecrivait : Hi, I had the same problem, as you had, I my Environment, i had samba PDC (samba 3.0.21c, LDAP openldap-2.2.13, DHCP, dns) running, and other file server(acting as Domain member server) as happenned to you, due to power failure ,my pdc went down and had to restart after which none of the windows xp or 2000 clients would connect (All saying that computer is not in domain). I had tried a lot of options including restoring the ldif file, (Because openldap did not recover from power failure causing openldap to break, had remove the exising db and restore from ldif file). when ever there was a power failure or uneven shutdown, this would happen, So for this i had this solution, created a BDC with ldap backend (slave ldap), So all my client would request to BDC first then PDC (as BDC wins election over PDC). So that if i had to take PDC down, I had no issues, Second to openldap to recover DB from power failure, Upgraded openldap to 2.3 with db recover options like keeping DB_CONFIG file, checkpointing etc. From then, I have not faced any issues. -- Regards Tom :) /*Life is too complicated, Lets make it simple*/ Hi, Thanks for your suggestions. I'll consider installing this as soon as i have fixed my PDC. regards, Tanguy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Help removing many users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It would be a smart thing to do, but I had problems with it last time I tried. It seems that it would randomly stop authenticating people beyond a certain point in the file. I didn't get a chance to try this again. In any case, HP will not support tdbsam (I'm using CIFS/9000, but this question was relevant to Samba in any case) as the recommendation from Samba Team is not to use it for over 250 users. Oddly enough, they did not say that they wouldn't support smbpasswd. In any case, I'm hoping that a serious trim on that file will give me the breathing room I need to look at LDAP. Rune Tønnesen wrote: Hi Ryan Why don't you migrate your smbpasswd file to tdb? This could be done pdbedit -i smbpasswd:/etc/samba/smbpasswd -e tdbsam:/etc/samba/smbpasswd.tdb in smb.conf change passdb backend to passdb backend = tdbsam:/etc/samba/smbpasswd.tdb voila - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHgYXgmb+gadEcsb4RAgqpAKCvhC4dssUIj17OZy827q8olrCUXgCgkc/N KrTHA0ZZAnoxZZkiij/YdD8= =mwED -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] PDC error
Hello everyone, I just created a samba PDC which uses ldap as a backend to store user names and passwords. I have joined a machine to my samba PDC (domain). When I try to login I get the following error. The system cannot log you on due to the following error: THe system cannot find message text for message number 0x%1 in the message file for %2 Does anyone know the cause for this, or does anyone know how to fix it? -- REGARDS, Andy Z -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Windows 2000 and smbclient to make a tarball?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to use a command: smbclient -v winserv\\data passwd -U administrator -Tqc - 2/tmp/smbclient_errors /tmp/data.tar When I run the command it exits with a code 1 and the error file is empty. Is this a problem with Win2k Server I'm just stuck with or is it possible I just have something misconfigured in my Samba somewhere? Robert - -- :wq! - --- Robert L. Harris | GPG Key ID: E344DA3B @ x-hkp://pgp.mit.edu DISCLAIMER: These are MY OPINIONS With Dreams To Be A King, ALONE. I speak for First One Should Be A Man no-one else. - Manowar -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iD8DBQFHgZLY8+1vMONE2jsRAvmHAKCoIdjyRneVZ3qX14isNFZszzpdOgCgw6JQ n+8nmdRuk0KM0cFQkSc0a24= =xBmA -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Samba PDC Ldap integration
Thanks guys I fixed the problem, it was not actually a software problem. The switch the server was on was stuffed, It kept dropping out. Thanks for all your help On Jan 3, 2008 3:01 PM, Andy [EMAIL PROTECTED] wrote: Hello all I have set up a Debian etch server with a samba and ldap integration. domain master = yes domain logons = yes os level = 33 preferred master = yes local master = yes passdb backend = ldapsam:ldap://localhost/ ldap admin dn = cn=admin,dc=test,dc=net ldap suffix =dc=test,dc=net ldap user suffix = ou=users ldap machine suffix = ou=machines ldap group suffix = ou=groups ldap password sync = yes I have added the machine into LDAP as a samba 3 machine. I have added a user to the domain admins group. When I try to connect a PC to the domain a error message pops up saying the following error occurred attempting to join the domain test: The specific network name is no longer available Would some know the cause of this? -- REGARDS, Andy Z -- REGARDS, Andy Z -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba and CUPS accouting with HP 1320
On Sunday 06 January 2008 12:15:24 pm Marcus Sobchak [EMAIL PROTECTED] wrote: Which PS print driver do I have to use at windows client side? You will probably have to set up the samba system to serve windows print drivers to the client via Point and Print as described in the following article: http://www.enterprisenetworkingplanet.com/netsysm/article.php/3621876 Once the Windows + Cups driver is being served to the client, the following link talks about setting up job accounting: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.html#id413751 Regards, Mark Gannon -- Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy nor suffer too much, because they live in the gray twilight that knows not victory nor defeat. ~ Theodore Roosevelt ~ signature.asc Description: This is a digitally signed message part. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 00:43 Quinn Fissler ecrivait : If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. I launched tcpdump on the PDC. It's weird, sometimes packets don't even seem to arrive from my windows client to the pdc... -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
Tanguy Léost wrote: le 07.01.2008 00:43 Quinn Fissler ecrivait : If I were you, I'd run tcpdump/snoop/wireshark and look at the dialogue between the client and the pdc. I launched tcpdump on the PDC. It's weird, sometimes packets don't even seem to arrive from my windows client to the pdc... In your initial post you mentioned a power supply failure. Could this have been caused by a surge? Could your networking equipment have been damaged also? *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 05:16 Michael Heydon ecrivait : In your initial post you mentioned a power supply failure. Could this have been caused by a surge? Could your networking equipment have been damaged also? Hello, I didn't have any details about the power failure, but yes, I presume it might have affected also the networking equipment. (As a matter of fact I was on holiday, so i have very few information about what actually happened. My colleague called me from work and told me many servers had been stopped because of a power supply. so i guess the network switches have been affected too) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
le 07.01.2008 01:39 Tanguy Léost ecrivait : I forgot to mention something weird: sometimes (maybe one time out of 10 or 15...) the PDC grants me access to the domain. I can open a windows session, or have access to a share on the PDC from my windows session. ...Keeps me even more confused. I noticed that I could have access to the PDC more often when i launched smbd with the -i switch (i.e. in foreground). I'm really confused, does anyone have an idea about what that means? When it is run at startup, it is just run as smbd -D and then almost all connections fail. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] LDAP problem
[2008/01/06 15:17:45, 2] passdb/pdb_ldap.c:init_sam_from_ldap(511) init_sam_from_ldap: Entry found for user: Invite [2008/01/06 15:17:45, 4] lib/substitute.c:automount_server(323) Home server: servpdc [2008/01/06 15:17:45, 1] auth/auth_util.c:make_server_info_sam(822) User Invite in passdb, but getpwnam() fails! check passdb backend in your smb.conf and its integrity On Jan 7, 2008 1:41 AM, Tanguy Léost [EMAIL PROTECTED] wrote: le 07.01.2008 01:39 Tanguy Léost ecrivait : I forgot to mention something weird: sometimes (maybe one time out of 10 or 15...) the PDC grants me access to the domain. I can open a windows session, or have access to a share on the PDC from my windows session. ...Keeps me even more confused. I noticed that I could have access to the PDC more often when i launched smbd with the -i switch (i.e. in foreground). I'm really confused, does anyone have an idea about what that means? When it is run at startup, it is just run as smbd -D and then almost all connections fail. -- 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: Record format
RMS Sequential Variable files produced on VMS cannot be read as expected by Windows programs. They expect CRLF pairs to be embedded in the data, and they aren't there. The Record Attributes are meaningless here (no extraneous data is retieved from/written to the file). In order to be readable by Windows programs, files on VMS must have RMS attributes showing a record format of Stream or Stream_LF. David J Dachtera DJE Systems -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 03, 2008 2:38 AM To: samba-vms@lists.samba.org Subject: Record format We have recently installed Samba on VMS (Itanium). We have problems in reading text-files produced on VMS. The CR/LF does not work. The data stream appears in a long line. The file attributes on VMS are: Record format: Variable length, maximum 0 bytes, longest 75 bytes Record attributes: Carriage return carriage control Do I have to change these attributes or is there anything to do in the SMB.CONF file? RG Rolf PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1114-g020ed73
The branch, v3-2-test has been updated via 020ed731b17ac00dd490f210f108eae249fb27ad (commit) from d3b91e494c824a65506ba1bc1cba5bba77000530 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 020ed731b17ac00dd490f210f108eae249fb27ad Author: Michael Adam [EMAIL PROTECTED] Date: Sun Jan 6 22:50:38 2008 +0100 Remove vlp.o in make clean. Michael --- Summary of changes: source/Makefile.in |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/source/Makefile.in b/source/Makefile.in index 2267be4..3e02b89 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -1992,6 +1992,7 @@ clean: delheaders -rm -f $(PRECOMPILED_HEADER) -rm -f core */*~ *~ \ */*.o */*/*.o */*/*/*.o \ + ../testsuite/*/*.o \ */[EMAIL PROTECTED]@ */*/[EMAIL PROTECTED]@ */*/*/[EMAIL PROTECTED]@ \ $(TOPFILES) $(BIN_PROGS) $(SBIN_PROGS) $(ROOT_SBIN_PROGS) \ $(MODULES) $(TORTURE_PROGS) $(LIBSMBCLIENT) $(LIBADDNS) \ -- Samba Shared Repository
svn commit: samba r26676 - in branches/SAMBA_4_0: . source/libcli/raw source/libcli/smb_composite
Author: jelmer Date: 2008-01-06 22:01:31 + (Sun, 06 Jan 2008) New Revision: 26676 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26676 Log: libcli: Fill in lp_workgroup() again, should fix my breakage of cifsdd tests. Thanks to Andrew for catching this. Also fixes a typo in sessetup.c. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/libcli/raw/clitree.c branches/SAMBA_4_0/source/libcli/smb_composite/sesssetup.c Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:revision-info ...skipped... Name: bzr:revision-id:v3-trunk0 ...skipped... Modified: branches/SAMBA_4_0/source/libcli/raw/clitree.c === --- branches/SAMBA_4_0/source/libcli/raw/clitree.c 2008-01-05 21:29:25 UTC (rev 26675) +++ branches/SAMBA_4_0/source/libcli/raw/clitree.c 2008-01-06 22:01:31 UTC (rev 26676) @@ -192,6 +192,7 @@ io.in.service_type = service_type; io.in.credentials = credentials; io.in.fallback_to_anonymous = false; + io.in.workgroup = lp_workgroup(global_loadparm); io.in.options = *options; status = smb_composite_connect(io, parent_ctx, resolve_ctx, ev); Modified: branches/SAMBA_4_0/source/libcli/smb_composite/sesssetup.c === --- branches/SAMBA_4_0/source/libcli/smb_composite/sesssetup.c 2008-01-05 21:29:25 UTC (rev 26675) +++ branches/SAMBA_4_0/source/libcli/smb_composite/sesssetup.c 2008-01-06 22:01:31 UTC (rev 26676) @@ -129,7 +129,7 @@ case RAW_SESSSETUP_SPNEGO: state-io-out.vuid = state-setup.spnego.out.vuid; if (NT_STATUS_EQUAL(c-status, NT_STATUS_LOGON_FAILURE)) { - /* we neet to reset the vuid for a new try */ + /* we need to reset the vuid for a new try */ session-vuid = 0; if (cli_credentials_wrong_password(state-io-in.credentials)) { nt_status = session_setup_spnego(c, session,
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1117-g4f2d139
The branch, v3-2-test has been updated via 4f2d139a186048f08180378a877b69d2f80ad51f (commit) via 8fce247bcf7fb27a31a7b8103377681d692d35aa (commit) via c0c7c1223da29c68359dac64a340c1c710d5f3d2 (commit) from 020ed731b17ac00dd490f210f108eae249fb27ad (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 4f2d139a186048f08180378a877b69d2f80ad51f Author: Michael Adam [EMAIL PROTECTED] Date: Sun Jan 6 18:48:02 2008 +0100 Remove superfluous parameter fd from SMB_VFS_FSET_NT_ACL(). Michael commit 8fce247bcf7fb27a31a7b8103377681d692d35aa Author: Michael Adam [EMAIL PROTECTED] Date: Sun Jan 6 18:03:33 2008 +0100 Wrap lines for readability. Michael commit c0c7c1223da29c68359dac64a340c1c710d5f3d2 Author: Michael Adam [EMAIL PROTECTED] Date: Sat Jan 5 02:16:15 2008 +0100 Remove superfluous fd parameter from SMB_VFS_FGET_NT_ACL(). Michael --- Summary of changes: source/include/vfs.h| 15 --- source/include/vfs_macros.h | 12 ++-- source/modules/vfs_afsacl.c |4 ++-- source/modules/vfs_aixacl2.c|4 ++-- source/modules/vfs_default.c|4 ++-- source/modules/vfs_full_audit.c | 14 ++ source/modules/vfs_gpfs.c |4 ++-- source/modules/vfs_zfsacl.c |4 ++-- source/smbd/dir.c |4 ++-- source/smbd/nttrans.c |5 ++--- source/smbd/open.c |3 +-- 11 files changed, 39 insertions(+), 34 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/vfs.h b/source/include/vfs.h index 5a3ec58..038da29 100644 --- a/source/include/vfs.h +++ b/source/include/vfs.h @@ -77,6 +77,8 @@ /* Leave at 22 - not yet released. Change get_nt_acl to return NTSTATUS - vl */ /* Leave at 22 - not yet released. Change get_nt_acl to *not* take a * files_struct. - obnox.*/ +/* Leave at 22 - not yet released. Remove parameter fd from fget_nt_acl. - obnox */ +/* Leave at 22 - not yet released. Remove parameter fd from gset_nt_acl. - obnox */ #define SMB_VFS_INTERFACE_VERSION 22 @@ -310,15 +312,22 @@ struct vfs_ops { /* NT ACL operations. */ NTSTATUS (*fget_nt_acl)(struct vfs_handle_struct *handle, - struct files_struct *fsp, int fd, + struct files_struct *fsp, uint32 security_info, struct security_descriptor **ppdesc); NTSTATUS (*get_nt_acl)(struct vfs_handle_struct *handle, const char *name, uint32 security_info, struct security_descriptor **ppdesc); - NTSTATUS (*fset_nt_acl)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, uint32 security_info_sent, struct security_descriptor *psd); - NTSTATUS (*set_nt_acl)(struct vfs_handle_struct *handle, struct files_struct *fsp, const char *name, uint32 security_info_sent, struct security_descriptor *psd); + NTSTATUS (*fset_nt_acl)(struct vfs_handle_struct *handle, + struct files_struct *fsp, + uint32 security_info_sent, + struct security_descriptor *psd); + NTSTATUS (*set_nt_acl)(struct vfs_handle_struct *handle, + struct files_struct *fsp, + const char *name, + uint32 security_info_sent, + struct security_descriptor *psd); /* POSIX ACL operations. */ diff --git a/source/include/vfs_macros.h b/source/include/vfs_macros.h index c31d6cf..45c5353 100644 --- a/source/include/vfs_macros.h +++ b/source/include/vfs_macros.h @@ -84,9 +84,9 @@ #define SMB_VFS_FILE_ID_CREATE(conn, dev, inode) ((conn)-vfs.ops.file_id_create((conn)-vfs.handles.file_id_create, (dev), (inode))) /* NT ACL operations. */ -#define SMB_VFS_FGET_NT_ACL(fsp, fd, security_info, ppdesc) ((fsp)-conn-vfs.ops.fget_nt_acl((fsp)-conn-vfs.handles.fget_nt_acl, (fsp), (fd), (security_info), (ppdesc))) +#define SMB_VFS_FGET_NT_ACL(fsp, security_info, ppdesc) ((fsp)-conn-vfs.ops.fget_nt_acl((fsp)-conn-vfs.handles.fget_nt_acl, (fsp), (security_info), (ppdesc))) #define SMB_VFS_GET_NT_ACL(conn, name, security_info, ppdesc) ((conn)-vfs.ops.get_nt_acl((conn)-vfs.handles.get_nt_acl, (name), (security_info), (ppdesc))) -#define SMB_VFS_FSET_NT_ACL(fsp, fd, security_info_sent, psd)
svn commit: samba r26677 - in branches/SAMBA_4_0/source/lib/tdb: . python/tests
Author: tpot Date: 2008-01-06 23:17:55 + (Sun, 06 Jan 2008) New Revision: 26677 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26677 Log: Implement and test iter{keys,values,items} for tdb bindings. Use tempfile.mkstemp() instead of os.tmpnam() in tests. Modified: branches/SAMBA_4_0/source/lib/tdb/python/tests/simple.py branches/SAMBA_4_0/source/lib/tdb/tdb.i Changeset: Modified: branches/SAMBA_4_0/source/lib/tdb/python/tests/simple.py === --- branches/SAMBA_4_0/source/lib/tdb/python/tests/simple.py2008-01-06 22:01:31 UTC (rev 26676) +++ branches/SAMBA_4_0/source/lib/tdb/python/tests/simple.py2008-01-06 23:17:55 UTC (rev 26677) @@ -8,7 +8,7 @@ import tdb from unittest import TestCase -import os +import os, tempfile class OpenTdbTests(TestCase): @@ -19,7 +19,7 @@ class SimpleTdbTests(TestCase): def setUp(self): super(SimpleTdbTests, self).setUp() -self.tdb = tdb.Tdb(os.tmpnam(), 0, tdb.DEFAULT, os.O_CREAT|os.O_RDWR) +self.tdb = tdb.Tdb(tempfile.mkstemp()[1], 0, tdb.DEFAULT, os.O_CREAT|os.O_RDWR) self.assertNotEqual(None, self.tdb) def tearDown(self): @@ -82,6 +82,13 @@ self.tdb[brainslug] = 2 self.assertEquals([(bla, 1), (brainslug, 2)], self.tdb.items()) +def test_iteritems(self): +self.tdb[bloe] = 2 +self.tdb[bla] = 25 +i = self.tdb.iteritems() +self.assertEquals(set([(bla, 25), (bloe, 2)]), + set([i.next(), i.next()])) + def test_transaction_cancel(self): self.tdb[bloe] = 2 self.tdb.transaction_start() @@ -107,11 +114,23 @@ self.tdb[bla] = 25 self.assertEquals([bla, bloe], self.tdb.keys()) +def test_iterkeys(self): +self.tdb[bloe] = 2 +self.tdb[bla] = 25 +i = self.tdb.iterkeys() +self.assertEquals(set([bloe, bla]), set([i.next(), i.next()])) + def test_values(self): self.tdb[bloe] = 2 self.tdb[bla] = 25 self.assertEquals([25, 2], self.tdb.values()) +def test_itervalues(self): +self.tdb[bloe] = 2 +self.tdb[bla] = 25 +i = self.tdb.itervalues() +self.assertEquals(set([25, 2]), set([i.next(), i.next()])) + def test_clear(self): self.tdb[bloe] = 2 self.tdb[bla] = 25 Modified: branches/SAMBA_4_0/source/lib/tdb/tdb.i === --- branches/SAMBA_4_0/source/lib/tdb/tdb.i 2008-01-06 22:01:31 UTC (rev 26676) +++ branches/SAMBA_4_0/source/lib/tdb/tdb.i 2008-01-06 23:17:55 UTC (rev 26677) @@ -263,8 +263,18 @@ for k in iter(self): del(self[k]) -# TODO: iterkeys, itervalues, iteritems +def iterkeys(self): +for k in iter(self): +yield k + +def itervalues(self): +for k in iter(self): +yield self[k] +def iteritems(self): +for k in iter(self): +yield (k, self[k]) + # TODO: any other missing methods for container types } } tdb;
svn commit: samba r26678 - in branches/SAMBA_4_0/source/lib/tdb: .
Author: tpot Date: 2008-01-06 23:42:46 + (Sun, 06 Jan 2008) New Revision: 26678 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26678 Log: Check in auto-generated swig files. Modified: branches/SAMBA_4_0/source/lib/tdb/tdb.py branches/SAMBA_4_0/source/lib/tdb/tdb_wrap.c Changeset: Modified: branches/SAMBA_4_0/source/lib/tdb/tdb.py === --- branches/SAMBA_4_0/source/lib/tdb/tdb.py2008-01-06 23:17:55 UTC (rev 26677) +++ branches/SAMBA_4_0/source/lib/tdb/tdb.py2008-01-06 23:42:46 UTC (rev 26678) @@ -1,5 +1,5 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.33 +# Version 1.3.31 # # Don't modify this file, modify the SWIG interface instead. @@ -164,7 +164,17 @@ for k in iter(self): del(self[k]) +def iterkeys(self): +for k in iter(self): +yield k + +def itervalues(self): +for k in iter(self): +yield self[k] +def iteritems(self): +for k in iter(self): +yield (k, self[k]) Modified: branches/SAMBA_4_0/source/lib/tdb/tdb_wrap.c === --- branches/SAMBA_4_0/source/lib/tdb/tdb_wrap.c2008-01-06 23:17:55 UTC (rev 26677) +++ branches/SAMBA_4_0/source/lib/tdb/tdb_wrap.c2008-01-06 23:42:46 UTC (rev 26678) @@ -1,6 +1,6 @@ /* * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.33 + * Version 1.3.31 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -17,14 +17,14 @@ /* template workaround for compilers that cannot correctly implement the C++ standard */ #ifndef SWIGTEMPLATEDISAMBIGUATOR -# if defined(__SUNPRO_CC) (__SUNPRO_CC = 0x560) -# define SWIGTEMPLATEDISAMBIGUATOR template -# elif defined(__HP_aCC) -/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ -/* If we find a maximum version that requires this, the test would be __HP_aCC = 35500 for A.03.55 */ -# define SWIGTEMPLATEDISAMBIGUATOR template +# if defined(__SUNPRO_CC) +# if (__SUNPRO_CC = 0x560) +# define SWIGTEMPLATEDISAMBIGUATOR template +# else +# define SWIGTEMPLATEDISAMBIGUATOR +# endif # else -# define SWIGTEMPLATEDISAMBIGUATOR +# define SWIGTEMPLATEDISAMBIGUATOR # endif #endif @@ -107,13 +107,7 @@ # define _CRT_SECURE_NO_DEPRECATE #endif -/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ -#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) defined(_MSC_VER) !defined(_SCL_SECURE_NO_DEPRECATE) -# define _SCL_SECURE_NO_DEPRECATE -#endif - - /* Python.h has to appear first */ #include Python.h @@ -349,7 +343,7 @@ while ((*f2 == ' ') (f2 != l2)) ++f2; if (*f1 != *f2) return (*f1 *f2) ? 1 : -1; } - return (int)((l1 - f1) - (l2 - f2)); + return (l1 - f1) - (l2 - f2); } /* @@ -1096,14 +1090,14 @@ /* Unpack the argument tuple */ SWIGINTERN int -SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) +SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) { if (!args) { if (!min !max) { return 1; } else { PyErr_Format(PyExc_TypeError, %s expected %s%d arguments, got none, - name, (min == max ? : at least ), (int)min); + name, (min == max ? : at least ), min); return 0; } } @@ -,14 +1105,14 @@ PyErr_SetString(PyExc_SystemError, UnpackTuple() argument list is not a tuple); return 0; } else { -register Py_ssize_t l = PyTuple_GET_SIZE(args); +register int l = PyTuple_GET_SIZE(args); if (l min) { PyErr_Format(PyExc_TypeError, %s expected %s%d arguments, got %d, - name, (min == max ? : at least ), (int)min, (int)l); + name, (min == max ? : at least ), min, l); return 0; } else if (l max) { PyErr_Format(PyExc_TypeError, %s expected %s%d arguments, got %d, - name, (min == max ? : at most ), (int)max, (int)l); + name, (min == max ? : at most ), max, l); return 0; } else { register int i; @@ -1597,11 +1591,9 @@ (unaryfunc)0, /*nb_float*/ (unaryfunc)PySwigObject_oct, /*nb_oct*/ (unaryfunc)PySwigObject_hex, /*nb_hex*/ -#if PY_VERSION_HEX = 0x0205 /* 2.5.0 */ -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add - nb_index */ -#elif PY_VERSION_HEX = 0x0202 /* 2.2.0 */ -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add - nb_inplace_true_divide */ -#elif PY_VERSION_HEX = 0x0200 /* 2.0.0 */ +#if PY_VERSION_HEX
Build status as of Mon Jan 7 00:00:02 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-01-06 00:00:58.0 + +++ /home/build/master/cache/broken_results.txt 2008-01-07 00:00:40.0 + @@ -1,26 +1,26 @@ -Build status as of Sun Jan 6 00:00:02 2008 +Build status as of Mon Jan 7 00:00:02 2008 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 27 8 0 +ccache 28 8 0 ctdb 0 0 0 distcc 1 0 0 -ldb 27 12 0 -libreplace 26 13 0 -lorikeet-heimdal 23 14 0 +ldb 28 12 0 +libreplace 27 13 0 +lorikeet-heimdal 24 14 0 pidl 17 5 0 ppp 9 7 0 python 0 0 0 -rsync27 10 0 +rsync28 10 0 samba-docs 0 0 0 samba-gtk3 3 0 -samba4 24 19 8 +samba4 24 15 4 samba_3_21 0 0 samba_3_2_test 26 12 0 samba_4_0_test 0 0 0 -smb-build25 3 0 -talloc 27 7 0 -tdb 27 5 0 +smb-build26 3 0 +talloc 28 7 0 +tdb 28 5 0
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-1119-gd9d6775
The branch, v3-2-test has been updated via d9d6775878f8b3425665c6a45a5ef9cb92932cf8 (commit) via 73e28806ce87d829ea7c38ed3440020845bb13bf (commit) from 4f2d139a186048f08180378a877b69d2f80ad51f (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit d9d6775878f8b3425665c6a45a5ef9cb92932cf8 Author: Michael Adam [EMAIL PROTECTED] Date: Mon Jan 7 00:21:12 2008 +0100 Adapt fset_nt_acl() and fget_nt_acl() in examples/VFS/ to vfs prototype change. Michael commit 73e28806ce87d829ea7c38ed3440020845bb13bf Author: Michael Adam [EMAIL PROTECTED] Date: Mon Jan 7 00:14:19 2008 +0100 Remove unneeded parameter fd from SMB_VFS_PREAD(). Michael --- Summary of changes: examples/VFS/skel_opaque.c | 10 +- examples/VFS/skel_transparent.c | 12 ++-- source/include/vfs.h|3 ++- source/include/vfs_macros.h |6 +++--- source/modules/vfs_cacheprime.c |5 ++--- source/modules/vfs_default.c| 16 source/modules/vfs_full_audit.c |6 +++--- source/modules/vfs_readahead.c | 11 +-- source/smbd/fileio.c|4 ++-- source/smbd/vfs.c |2 +- 10 files changed, 37 insertions(+), 38 deletions(-) Changeset truncated at 500 lines: diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index fd4b206..21b39c1 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -135,9 +135,9 @@ static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, int fd, v return vfswrap_read(NULL, fsp, fd, data, n); } -static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, int fd, void *data, size_t n, SMB_OFF_T offset) +static ssize_t skel_pread(vfs_handle_struct *handle, struct files_struct *fsp, void *data, size_t n, SMB_OFF_T offset) { - return vfswrap_pread(NULL, fsp, fd, data, n, offset); + return vfswrap_pread(NULL, fsp, data, n, offset); } static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n) @@ -301,7 +301,7 @@ static struct file_id skel_file_id_create(vfs_handle_struct *handle, } static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, - int fd, uint32 security_info, SEC_DESC **ppdesc) + uint32 security_info, SEC_DESC **ppdesc) { errno = ENOSYS; return 0; @@ -314,8 +314,8 @@ static size_t skel_get_nt_acl(vfs_handle_struct *handle, files_struct *fsp, return 0; } -static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, int - fd, uint32 security_info_sent, SEC_DESC *psd) +static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, + uint32 security_info_sent, SEC_DESC *psd) { errno = ENOSYS; return NT_STATUS_NOT_IMPLEMENTED; diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 2512f4d..76ef7e0 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -129,9 +129,9 @@ static ssize_t skel_read(vfs_handle_struct *handle, files_struct *fsp, int fd, v return SMB_VFS_NEXT_READ(handle, fsp, fd, data, n); } -static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, int fd, void *data, size_t n, SMB_OFF_T offset) +static ssize_t skel_pread(vfs_handle_struct *handle, files_struct *fsp, void *data, size_t n, SMB_OFF_T offset) { - return SMB_VFS_NEXT_PREAD(handle, fsp, fd, data, n, offset); + return SMB_VFS_NEXT_PREAD(handle, fsp, data, n, offset); } static ssize_t skel_write(vfs_handle_struct *handle, files_struct *fsp, int fd, const void *data, size_t n) @@ -290,9 +290,9 @@ static struct file_id skel_file_id_create(vfs_handle_struct *handle, } static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, - int fd, uint32 security_info, SEC_DESC **ppdesc) + uint32 security_info, SEC_DESC **ppdesc) { - return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, fd, security_info, ppdesc); + return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, ppdesc); } static size_t skel_get_nt_acl(vfs_handle_struct *handle, files_struct *fsp, @@ -302,9 +302,9 @@ static size_t skel_get_nt_acl(vfs_handle_struct *handle, files_struct *fsp, } static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, - int fd, uint32 security_info_sent, SEC_DESC *psd) + uint32 security_info_sent, SEC_DESC *psd) { - return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, fd, security_info_sent, psd); + return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd); } static NTSTATUS skel_set_nt_acl(vfs_handle_struct *handle, files_struct *fsp, diff --git a/source/include/vfs.h
svn commit: samba r26679 - in branches/SAMBA_4_0/source/dsdb/common: .
Author: abartlet Date: 2008-01-07 00:46:39 + (Mon, 07 Jan 2008) New Revision: 26679 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26679 Log: It is very bad to free the ldb handle when you didn't create it... (My bad when copying this code into samdb_is_gc()). Andrew Bartlett Modified: branches/SAMBA_4_0/source/dsdb/common/util.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/common/util.c === --- branches/SAMBA_4_0/source/dsdb/common/util.c2008-01-06 23:42:46 UTC (rev 26678) +++ branches/SAMBA_4_0/source/dsdb/common/util.c2008-01-07 00:46:39 UTC (rev 26679) @@ -1395,7 +1395,7 @@ options = ldb_msg_find_attr_as_int(res-msgs[0], options, 0); talloc_free(res); - talloc_free(ldb); + talloc_free(tmp_ctx); /* if options attribute has the 0x0001 flag set, then enable the global catlog */ if (options 0x1) {
svn commit: samba r26680 - in branches/SAMBA_4_0/source/cldap_server: .
Author: abartlet Date: 2008-01-07 00:47:01 + (Mon, 07 Jan 2008) New Revision: 26680 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26680 Log: Don't always advertise GC functionality. Andrew Bartlett Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c Changeset: Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c === --- branches/SAMBA_4_0/source/cldap_server/netlogon.c 2008-01-07 00:46:39 UTC (rev 26679) +++ branches/SAMBA_4_0/source/cldap_server/netlogon.c 2008-01-07 00:47:01 UTC (rev 26680) @@ -162,7 +162,6 @@ } server_type = - NBT_SERVER_GC | NBT_SERVER_DS | NBT_SERVER_TIMESERV | NBT_SERVER_CLOSEST | NBT_SERVER_WRITABLE | NBT_SERVER_GOOD_TIMESERV; @@ -171,6 +170,10 @@ server_type |= NBT_SERVER_PDC; } + if (samdb_is_gc(cldapd-samctx)) { + server_type |= NBT_SERVER_GC; + } + if (str_list_check(services, ldap)) { server_type |= NBT_SERVER_LDAP; }
svn commit: samba r26681 - in branches/SAMBA_4_0/source/cldap_server: .
Author: abartlet Date: 2008-01-07 03:14:51 + (Mon, 07 Jan 2008) New Revision: 26681 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26681 Log: Use fewer magic numbers. Andrew Bartlett Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c Changeset: Modified: branches/SAMBA_4_0/source/cldap_server/netlogon.c === --- branches/SAMBA_4_0/source/cldap_server/netlogon.c 2008-01-07 00:47:01 UTC (rev 26680) +++ branches/SAMBA_4_0/source/cldap_server/netlogon.c 2008-01-07 03:14:51 UTC (rev 26681) @@ -230,7 +230,7 @@ case 5: case 6: case 7: - netlogon-logon5.type = (user?23+2:23); + netlogon-logon5.type = (user?NETLOGON_RESPONSE_FROM_PDC_USER:NETLOGON_RESPONSE_FROM_PDC2); netlogon-logon5.server_type = server_type; netlogon-logon5.domain_uuid = domain_uuid; netlogon-logon5.forest = realm; @@ -245,7 +245,7 @@ netlogon-logon5.lm20_token = 0x; break; default: - netlogon-logon13.type = (user?23+2:23); + netlogon-logon13.type = (user?NETLOGON_RESPONSE_FROM_PDC_USER:NETLOGON_RESPONSE_FROM_PDC2); netlogon-logon13.server_type = server_type; netlogon-logon13.domain_uuid = domain_uuid; netlogon-logon13.forest = realm;
svn commit: samba r26682 - in branches/SAMBA_4_0/source/torture/ldap: .
Author: abartlet Date: 2008-01-07 03:15:39 + (Mon, 07 Jan 2008) New Revision: 26682 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26682 Log: Move CLDAP to the modern torture system, and add value checking. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c Changeset: Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c === --- branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 03:14:51 UTC (rev 26681) +++ branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 03:15:39 UTC (rev 26682) @@ -28,15 +28,11 @@ #include lib/ldb/include/ldb.h #include param/param.h -#define CHECK_STATUS(status, correct) do { \ - if (!NT_STATUS_EQUAL(status, correct)) { \ - printf((%s) Incorrect status %s - should be %s\n, \ - __location__, nt_errstr(status), nt_errstr(correct)); \ - ret = false; \ - goto done; \ - } \ -} while (0) +#define CHECK_STATUS(status, correct) torture_assert_ntstatus_equal(tctx, status, correct, incorrect status) +#define CHECK_VAL(v, correct) torture_assert_int_equal(tctx, (v), (correct), incorrect value); + +#define CHECK_STRING(v, correct) torture_assert_str_equal(tctx, v, correct, incorrect value); /* test netlogon operations */ @@ -48,7 +44,6 @@ union nbt_cldap_netlogon n1; struct GUID guid; int i; - bool ret = true; ZERO_STRUCT(search); search.in.dest_address = dest; @@ -94,6 +89,8 @@ search.in.user = NULL; status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.user_name, ); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2); printf(Trying with User=Administrator\n); @@ -101,11 +98,16 @@ status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.user_name, search.in.user); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC_USER); + printf(Trying with a GUID\n); search.in.realm = NULL; search.in.domain_guid = GUID_string(tctx, n1.logon5.domain_uuid); status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC_USER); + CHECK_STRING(GUID_string(tctx, search.out.netlogon.logon5.domain_uuid), search.in.domain_guid); printf(Trying with a incorrect GUID\n); guid = GUID_random(); @@ -119,6 +121,8 @@ search.in.realm = n1.logon5.dns_domain; status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2); + CHECK_STRING(search.out.netlogon.logon5.user_name, ); printf(Trying with a bad AAC\n); search.in.acct_control = 0xFF00FF00; @@ -131,11 +135,15 @@ search.in.user = Administrator; status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.dns_domain, n1.logon5.dns_domain); + CHECK_STRING(search.out.netlogon.logon5.user_name, search.in.user); printf(Trying with just a bad username\n); search.in.user = ___no_such_user___; status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.user_name, search.in.user); + CHECK_STRING(search.out.netlogon.logon5.dns_domain, n1.logon5.dns_domain); printf(Trying with just a bad domain\n); search = empty_search; @@ -147,20 +155,28 @@ search.in.domain_guid = GUID_string(tctx, n1.logon5.domain_uuid); status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.dns_domain, n1.logon5.dns_domain); + CHECK_STRING(search.out.netlogon.logon5.user_name, ); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2); printf(Trying with a incorrect domain and incorrect guid\n); search.in.domain_guid = GUID_string(tctx, guid); status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_NOT_FOUND); + CHECK_STRING(search.out.netlogon.logon5.dns_domain, n1.logon5.dns_domain); + CHECK_STRING(search.out.netlogon.logon5.user_name, ); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2); printf(Trying with a incorrect GUID and correct domain\n); search.in.domain_guid = GUID_string(tctx, guid); search.in.realm = n1.logon5.dns_domain; status = cldap_netlogon(cldap, tctx, search);
Rev 730: more efficient traversal in pulldb control in http://samba.org/~tridge/ctdb
revno: 730 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:07:01 +1100 message: more efficient traversal in pulldb control modified: server/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 === modified file 'server/ctdb_recover.c' --- a/server/ctdb_recover.c 2008-01-06 01:38:01 + +++ b/server/ctdb_recover.c 2008-01-07 03:07:01 + @@ -170,36 +170,38 @@ return 0; } -struct getkeys_params { +/* + a traverse function for pulling all relevent records from pulldb + */ +struct pulldb_data { struct ctdb_context *ctdb; - uint32_t lmaster; - uint32_t rec_count; - struct getkeys_rec { - TDB_DATA key; - TDB_DATA data; - } *recs; + struct ctdb_control_pulldb_reply *pulldata; + uint32_t len; + bool failed; }; -static int traverse_getkeys(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *p) +static int traverse_pulldb(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *p) { - struct getkeys_params *params = (struct getkeys_params *)p; - uint32_t lmaster; - - lmaster = ctdb_lmaster(params-ctdb, key); - - /* only include this record if the lmaster matches or if - the wildcard lmaster (-1) was specified. - */ - if ((params-lmaster != CTDB_LMASTER_ANY) (params-lmaster != lmaster)) { - return 0; - } - - params-recs = talloc_realloc(NULL, params-recs, struct getkeys_rec, params-rec_count+1); - key.dptr = talloc_memdup(params-recs, key.dptr, key.dsize); - data.dptr = talloc_memdup(params-recs, data.dptr, data.dsize); - params-recs[params-rec_count].key = key; - params-recs[params-rec_count].data = data; - params-rec_count++; + struct pulldb_data *params = (struct pulldb_data *)p; + struct ctdb_rec_data *rec; + + /* add the record to the blob */ + rec = ctdb_marshall_record(params-pulldata, 0, key, NULL, data); + if (rec == NULL) { + params-failed = true; + return -1; + } + params-pulldata = talloc_realloc_size(NULL, params-pulldata, rec-length + params-len); + if (params-pulldata == NULL) { + DEBUG(0,(__location__ Failed to expand pulldb_data to %u (%u records)\n, +rec-length + params-len, params-pulldata-count)); + params-failed = true; + return -1; + } + params-pulldata-count++; + memcpy(params-len+(uint8_t *)params-pulldata, rec, rec-length); + params-len += rec-length; + talloc_free(rec); return 0; } @@ -211,10 +213,8 @@ { struct ctdb_control_pulldb *pull; struct ctdb_db_context *ctdb_db; - struct getkeys_params params; + struct pulldb_data params; struct ctdb_control_pulldb_reply *reply; - int i; - size_t len = 0; if (ctdb-freeze_mode != CTDB_FREEZE_FROZEN) { DEBUG(0,(rejecting ctdb_control_pull_db when not frozen\n)); @@ -229,43 +229,32 @@ return -1; } - params.ctdb = ctdb; - params.lmaster = pull-lmaster; - - params.rec_count = 0; - params.recs = talloc_array(outdata, struct getkeys_rec, 0); - CTDB_NO_MEMORY(ctdb, params.recs); - - if (ctdb_lock_all_databases_mark(ctdb) != 0) { - DEBUG(0,(__location__ Failed to get lock on entired db - failing\n)); - return -1; - } - - tdb_traverse_read(ctdb_db-ltdb-tdb, traverse_getkeys, params); - - ctdb_lock_all_databases_unmark(ctdb); - - reply = talloc(outdata, struct ctdb_control_pulldb_reply); + reply = talloc_zero(outdata, struct ctdb_control_pulldb_reply); CTDB_NO_MEMORY(ctdb, reply); reply-db_id = pull-db_id; - reply-count = params.rec_count; - - len = offsetof(struct ctdb_control_pulldb_reply, data); - - for (i=0;ireply-count;i++) { - struct ctdb_rec_data *rec; - rec = ctdb_marshall_record(outdata, 0, params.recs[i].key, NULL, params.recs[i].data); - reply = talloc_realloc_size(outdata, reply, rec-length + len); - memcpy(len+(uint8_t *)reply, rec, rec-length); - len += rec-length; - talloc_free(rec); - } - - talloc_free(params.recs); - - outdata-dptr = (uint8_t *)reply; - outdata-dsize = len; + + params.ctdb = ctdb; + params.pulldata = reply; + params.len = offsetof(struct ctdb_control_pulldb_reply, data); + params.failed = false; + + if (ctdb_lock_all_databases_mark(ctdb) != 0) { + DEBUG(0,(__location__ Failed to get lock on entired db - failing\n)); + return -1; +
Rev 827: merge from tridge.stable in http://samba.org/~tridge/ctdb
revno: 827 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: ronnie.merge timestamp: Mon 2008-01-07 14:09:08 +1100 message: merge from tridge.stable modified: config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1 server/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 revno: 432.1.257.1.42 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:08:25 +1100 message: catch internal traversal errors modified: server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 revno: 432.1.257.1.41 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:07:01 +1100 message: more efficient traversal in pulldb control modified: server/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 revno: 432.1.257.1.40 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:05:30 +1100 message: don't retstart statd when we don't need to modified: config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1 === modified file 'config/events.d/60.nfs' --- a/config/events.d/60.nfs2007-11-16 02:37:27 + +++ b/config/events.d/60.nfs2008-01-07 03:05:30 + @@ -55,6 +55,9 @@ ;; recovered) + # if no IPs have changed then don't need to restart statd + [ -f $CTDB_BASE/state/statd/restart ] || exit 0; + # always restart the lockmanager so that we start with a clusterwide # graceperiod when ip addresses has changed [ -x $CTDB_BASE/statd-callout ] { === modified file 'server/ctdb_recover.c' --- a/server/ctdb_recover.c 2008-01-07 02:46:31 + +++ b/server/ctdb_recover.c 2008-01-07 03:09:08 + @@ -170,36 +170,38 @@ return 0; } -struct getkeys_params { +/* + a traverse function for pulling all relevent records from pulldb + */ +struct pulldb_data { struct ctdb_context *ctdb; - uint32_t lmaster; - uint32_t rec_count; - struct getkeys_rec { - TDB_DATA key; - TDB_DATA data; - } *recs; + struct ctdb_control_pulldb_reply *pulldata; + uint32_t len; + bool failed; }; -static int traverse_getkeys(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *p) +static int traverse_pulldb(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *p) { - struct getkeys_params *params = (struct getkeys_params *)p; - uint32_t lmaster; - - lmaster = ctdb_lmaster(params-ctdb, key); - - /* only include this record if the lmaster matches or if - the wildcard lmaster (-1) was specified. - */ - if ((params-lmaster != CTDB_LMASTER_ANY) (params-lmaster != lmaster)) { - return 0; - } - - params-recs = talloc_realloc(NULL, params-recs, struct getkeys_rec, params-rec_count+1); - key.dptr = talloc_memdup(params-recs, key.dptr, key.dsize); - data.dptr = talloc_memdup(params-recs, data.dptr, data.dsize); - params-recs[params-rec_count].key = key; - params-recs[params-rec_count].data = data; - params-rec_count++; + struct pulldb_data *params = (struct pulldb_data *)p; + struct ctdb_rec_data *rec; + + /* add the record to the blob */ + rec = ctdb_marshall_record(params-pulldata, 0, key, NULL, data); + if (rec == NULL) { + params-failed = true; + return -1; + } + params-pulldata = talloc_realloc_size(NULL, params-pulldata, rec-length + params-len); + if (params-pulldata == NULL) { + DEBUG(0,(__location__ Failed to expand pulldb_data to %u (%u records)\n, +rec-length + params-len, params-pulldata-count)); + params-failed = true; + return -1; + } + params-pulldata-count++; + memcpy(params-len+(uint8_t *)params-pulldata, rec, rec-length); + params-len += rec-length; + talloc_free(rec); return 0; } @@ -211,10 +213,8 @@ { struct ctdb_control_pulldb *pull; struct ctdb_db_context *ctdb_db; - struct getkeys_params params; + struct pulldb_data params; struct ctdb_control_pulldb_reply *reply; - int i; - size_t len = 0;
Rev 731: catch internal traversal errors in http://samba.org/~tridge/ctdb
revno: 731 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:08:25 +1100 message: catch internal traversal errors modified: server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 === modified file 'server/ctdb_recoverd.c' --- a/server/ctdb_recoverd.c2008-01-06 02:24:55 + +++ b/server/ctdb_recoverd.c2008-01-07 03:08:25 + @@ -542,7 +542,7 @@ struct ctdb_ltdb_header header; if (existing.dsize sizeof(struct ctdb_ltdb_header)) { DEBUG(0,(__location__ Bad record size %u from node %u\n, -existing.dsize, srcnode)); +(unsigned)existing.dsize, srcnode)); free(existing.dptr); talloc_free(tmp_ctx); return -1; @@ -898,6 +898,7 @@ struct ctdb_context *ctdb; struct ctdb_control_pulldb_reply *recdata; uint32_t len; + bool failed; }; static int traverse_recdb(struct tdb_context *tdb, TDB_DATA key, TDB_DATA data, void *p) @@ -917,10 +918,15 @@ /* add the record to the blob ready to send to the nodes */ rec = ctdb_marshall_record(params-recdata, 0, key, NULL, data); + if (rec == NULL) { + params-failed = true; + return -1; + } params-recdata = talloc_realloc_size(NULL, params-recdata, rec-length + params-len); if (params-recdata == NULL) { DEBUG(0,(__location__ Failed to expand recdata to %u (%u records)\n, rec-length + params-len, params-recdata-count)); + params-failed = true; return -1; } params-recdata-count++; @@ -949,12 +955,20 @@ params.ctdb = ctdb; params.recdata = recdata; params.len = offsetof(struct ctdb_control_pulldb_reply, data); + params.failed = false; if (tdb_traverse_read(recdb-tdb, traverse_recdb, params) == -1) { DEBUG(0,(__location__ Failed to traverse recdb database\n)); + talloc_free(params.recdata); return -1; } + if (params.failed) { + DEBUG(0,(__location__ Failed to traverse recdb database\n)); + talloc_free(params.recdata); + return -1; + } + recdata = params.recdata; outdata.dptr = (void *)recdata;
Rev 729: don't retstart statd when we don't need to in http://samba.org/~tridge/ctdb
revno: 729 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:05:30 +1100 message: don't retstart statd when we don't need to modified: config/events.d/60.nfs nfs-20070601141008-hy3h4qgbk1jd2jci-1 === modified file 'config/events.d/60.nfs' --- a/config/events.d/60.nfs2007-11-16 02:37:27 + +++ b/config/events.d/60.nfs2008-01-07 03:05:30 + @@ -55,6 +55,9 @@ ;; recovered) + # if no IPs have changed then don't need to restart statd + [ -f $CTDB_BASE/state/statd/restart ] || exit 0; + # always restart the lockmanager so that we start with a clusterwide # graceperiod when ip addresses has changed [ -x $CTDB_BASE/statd-callout ] {
Rev 826: merged from tridge.stable in http://samba.org/~tridge/ctdb
revno: 826 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: ronnie.merge timestamp: Mon 2008-01-07 13:46:31 +1100 message: merged from tridge.stable added: lib/replace/getaddrinfo.c getaddrinfo.c-20080105064003-0l0vaddyd3689f0x-1 lib/replace/getaddrinfo.h getaddrinfo.h-20080105064016-nzzl0au2e9klsho4-1 lib/replace/getaddrinfo.m4 getaddrinfo.m4-20080105064006-hosjskadr4vu48vd-1 lib/replace/getifaddrs.c getifaddrs.c-20080105064003-0l0vaddyd3689f0x-2 lib/replace/getifaddrs.m4 getifaddrs.m4-20080105064006-hosjskadr4vu48vd-2 lib/replace/inet_ntop.cinet_ntop.c-20080105064003-0l0vaddyd3689f0x-3 lib/replace/inet_ntop.m4 inet_ntop.m4-20080105064006-hosjskadr4vu48vd-3 lib/replace/inet_pton.cinet_pton.c-20080105064003-0l0vaddyd3689f0x-4 lib/replace/inet_pton.m4 inet_pton.m4-20080105064006-hosjskadr4vu48vd-4 lib/replace/libreplace_ld.m4 libreplace_ld.m4-20080105064006-hosjskadr4vu48vd-5 tests/ctdb_randrec.c ctdb_randrec.c-20080103224053-3pf5tyxleld8dqam-1 modified: client/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 config/ctdb.init ctdb.init-20070527204758-biuh7znabuwan3zn-6 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 include/includes.h includes.h-20061117234101-o3qt14umlg9en8z0-17 lib/replace/README readme-20070125040949-7t3f5zdl1q4z9hyv-6 lib/replace/configure.ac configure.ac-20070125040949-7t3f5zdl1q4z9hyv-13 lib/replace/dlfcn.cdlfcn.c-20070125040949-7t3f5zdl1q4z9hyv-14 lib/replace/dlfcn.m4 dlfcn.m4-20070125040949-7t3f5zdl1q4z9hyv-15 lib/replace/getpass.c getpass.c-20070125040949-7t3f5zdl1q4z9hyv-16 lib/replace/getpass.m4 getpass.m4-20070125040949-7t3f5zdl1q4z9hyv-17 lib/replace/libreplace.m4 libreplace.m4-20070125040949-7t3f5zdl1q4z9hyv-20 lib/replace/libreplace_cc.m4 libreplace_cc.m4-20070125040949-7t3f5zdl1q4z9hyv-21 lib/replace/libreplace_macros.m4 libreplace_macros.m4-20070125040949-7t3f5zdl1q4z9hyv-22 lib/replace/replace.h replace.h-20070125040949-7t3f5zdl1q4z9hyv-27 lib/replace/system/capability.h capability.h-20070125040949-7t3f5zdl1q4z9hyv-76 lib/replace/system/config.m4 config.m4-20070125040949-7t3f5zdl1q4z9hyv-77 lib/replace/system/network.h network.h-20070125040949-7t3f5zdl1q4z9hyv-84 lib/replace/system/passwd.hpasswd.h-20070125040949-7t3f5zdl1q4z9hyv-85 lib/replace/system/time.h time.h-20070125040949-7t3f5zdl1q4z9hyv-92 lib/replace/system/wait.h wait.h-20070125040949-7t3f5zdl1q4z9hyv-93 lib/tdb/Makefile.inmakefile.in-20070125040949-7t3f5zdl1q4z9hyv-59 lib/tdb/autogen.sh autogen.sh-20070125040949-7t3f5zdl1q4z9hyv-61 lib/tdb/common/error.c error.c-20070220022425-m1wibgjq7n5hahs6-3 lib/tdb/common/freelist.c freelist.c-20070220022425-m1wibgjq7n5hahs6-4 lib/tdb/common/io.cio.c-20070220022425-m1wibgjq7n5hahs6-6 lib/tdb/common/lock.c lock.c-20070220022425-m1wibgjq7n5hahs6-7 lib/tdb/common/open.c open.c-20070220022425-m1wibgjq7n5hahs6-8 lib/tdb/common/tdb.c tdb.c-20070220022425-m1wibgjq7n5hahs6-9 lib/tdb/common/tdb_private.h tdb_private.h-20070220022425-m1wibgjq7n5hahs6-10 lib/tdb/common/transaction.c transaction.c-20070220022425-m1wibgjq7n5hahs6-11 lib/tdb/common/traverse.c traverse.c-20070220022425-m1wibgjq7n5hahs6-12 lib/tdb/config.mk config.mk-20070125040949-7t3f5zdl1q4z9hyv-63 lib/tdb/configure.ac configure.ac-20070125040949-7t3f5zdl1q4z9hyv-65 lib/tdb/include/tdb.h tdb.h-20070125040949-7t3f5zdl1q4z9hyv-101 lib/tdb/libtdb.m4 libtdb.m4-20070125040949-7t3f5zdl1q4z9hyv-69 lib/tdb/tools/tdbbackup.c tdbbackup.c-20070125040949-7t3f5zdl1q4z9hyv-105 lib/tdb/tools/tdbdump.ctdbdump.c-20070125040949-7t3f5zdl1q4z9hyv-106 lib/tdb/tools/tdbtool.ctdbtool.c-20070125040949-7t3f5zdl1q4z9hyv-108 lib/tdb/tools/tdbtorture.c tdbtorture.c-20070125040949-7t3f5zdl1q4z9hyv-109 lib/util/db_wrap.c db_wrap.c-20070125041102-mfc39bu6uof09lw6-1 lib/util/debug.c debug.c-20070417155854-2i3crb0irl716qft-1 lib/util/debug.h debug.h-20070417155854-2i3crb0irl716qft-2 packaging/RPM/ctdb.specctdb.spec-20070527204758-biuh7znabuwan3zn-3 packaging/RPM/makerpms.sh makerpms.sh-20070527204758-biuh7znabuwan3zn-4 server/ctdb_call.c ctdb_call.c-20061128065342-to93h6eejj5kon81-1 server/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 server/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1 server/ctdb_freeze.c ctdb_freeze.c-20070512051503-935zdtyuqknqnhmo-1
Rev 732: nicer onnode output in http://samba.org/~tridge/ctdb
revno: 732 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 14:31:13 +1100 message: nicer onnode output modified: config/ctdb.sysconfig ctdb.sysconfig-20070527204758-biuh7znabuwan3zn-7 config/events.d/50.samba samba-20070601105340-vlcvnp6euoj3zdwy-3 doc/ctdbd.1.xmlctdbd.1.xml-20070610004256-jh1qq0ws5zidbmbq-1 packaging/RPM/ctdb.specctdb.spec-20070527204758-biuh7znabuwan3zn-3 server/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 tools/ctdb_diagnostics ctdb_diagnostics-20070905041904-9d9r1qnt1j9qiwiz-1 tools/onnode.rsh onnode.rsh-20070530010004-83j66tszzvsimcn2-1 tools/onnode.ssh onnode.ssh-20070530010004-83j66tszzvsimcn2-3 Diff too large for email (368, the limit is 200).
Rev 825: remove for merge in http://samba.org/~tridge/ctdb
revno: 825 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: ronnie.merge timestamp: Mon 2008-01-07 13:41:08 +1100 message: remove for merge removed: tests/ctdb_randrec.c ctdb_randrec.c-2008010308-584sshdn57l9l64m-1 === removed file 'tests/ctdb_randrec.c' --- a/tests/ctdb_randrec.c 2008-01-03 04:46:17 + +++ b/tests/ctdb_randrec.c 1970-01-01 00:00:00 + @@ -1,137 +0,0 @@ -/* - create a lot of random records, both current records and deleted records - - Copyright (C) Andrew Tridgell 2008 - Ronnie sahlberg 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 3 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, see http://www.gnu.org/licenses/. -*/ - -#include includes.h -#include lib/events/events.h -#include system/filesys.h -#include popt.h -#include cmdline.h - -#include sys/time.h -#include time.h - -static int num_records = 10; -static int delete_pct = 75; -static int base_rec; - -static void store_records(struct ctdb_context *ctdb, struct event_context *ev) -{ - TDB_DATA key, data; - struct ctdb_db_context *ctdb_db; - TALLOC_CTX *tmp_ctx = talloc_new(ctdb); - int ret; - struct ctdb_record_handle *h; - uint32_t i=0; - - ctdb_db = ctdb_db_handle(ctdb, test.tdb); - - srandom(time(NULL) ^ getpid()); - - printf(working with %d records\n, num_records); - while (1) { - unsigned r = random() % num_records; - key.dptr = (uint8_t *)r; - key.dsize = sizeof(r); - - h = ctdb_fetch_lock(ctdb_db, tmp_ctx, key, data); - if (h == NULL) { - printf(Failed to fetch record '%s' on node %d\n, - (const char *)key.dptr, ctdb_get_pnn(ctdb)); - talloc_free(tmp_ctx); - return; - } - - if (random() % 100 delete_pct) { - data.dptr = NULL; - data.dsize = 0; - } else { - data.dptr = talloc_zero_size(h, data.dsize + sizeof(r)); - data.dsize += sizeof(r); - } - - ret = ctdb_record_store(h, data); - talloc_free(h); - if (ret != 0) { - printf(Failed to store record\n); - } - if (i % 1000 == 0) { - printf(%u\r, i); - fflush(stdout); - } - i++; - } - - talloc_free(tmp_ctx); -} - -/* - main program -*/ -int main(int argc, const char *argv[]) -{ - struct ctdb_context *ctdb; - struct ctdb_db_context *ctdb_db; - - struct poptOption popt_options[] = { - POPT_AUTOHELP - POPT_CTDB_CMDLINE - { num-records, 'r', POPT_ARG_INT, num_records, 0, num_records, integer }, - { base-rec, 'b', POPT_ARG_INT, base_rec, 0, base_rec, integer }, - POPT_TABLEEND - }; - int opt; - const char **extra_argv; - int extra_argc = 0; - poptContext pc; - struct event_context *ev; - - pc = poptGetContext(argv[0], argc, argv, popt_options, POPT_CONTEXT_KEEP_FIRST); - - while ((opt = poptGetNextOpt(pc)) != -1) { - switch (opt) { - default: - fprintf(stderr, Invalid option %s: %s\n, - poptBadOption(pc, 0), poptStrerror(opt)); - exit(1); - } - } - - /* setup the remaining options for the main program to use */ - extra_argv = poptGetArgs(pc); - if (extra_argv) { - extra_argv++; - while (extra_argv[extra_argc]) extra_argc++; - } - - ev = event_context_init(NULL); - - ctdb = ctdb_cmdline_client(ev); - - /* attach to a specific database */ - ctdb_db = ctdb_attach(ctdb, test.tdb, false); - if (!ctdb_db) { - printf(ctdb_attach failed - %s\n, ctdb_errstr(ctdb)); - exit(1); - } - - store_records(ctdb, ev); - - return 0; -}
svn commit: samba r26683 - in branches/SAMBA_4_0/source/torture/ldap: .
Author: abartlet Date: 2008-01-07 04:46:13 + (Mon, 07 Jan 2008) New Revision: 26683 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26683 Log: Add another testcase. I still don't know what's wrong here. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c Changeset: Modified: branches/SAMBA_4_0/source/torture/ldap/cldap.c === --- branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 03:15:39 UTC (rev 26682) +++ branches/SAMBA_4_0/source/torture/ldap/cldap.c 2008-01-07 04:46:13 UTC (rev 26683) @@ -80,6 +80,27 @@ CHECK_STATUS(status, NT_STATUS_OK); } + search.in.version = 0x2006; + status = cldap_netlogon(cldap, tctx, search); + CHECK_STATUS(status, NT_STATUS_OK); + + printf(Trying with User=NULL\n); + + search.in.user = NULL; + status = cldap_netlogon(cldap, tctx, search); + CHECK_STATUS(status, NT_STATUS_OK); + CHECK_STRING(search.out.netlogon.logon5.user_name, ); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC2); + + printf(Trying with User=Administrator\n); + + search.in.user = Administrator; + status = cldap_netlogon(cldap, tctx, search); + CHECK_STATUS(status, NT_STATUS_OK); + + CHECK_STRING(search.out.netlogon.logon5.user_name, search.in.user); + CHECK_VAL(search.out.netlogon.logon5.type, NETLOGON_RESPONSE_FROM_PDC_USER); + search.in.version = 6; status = cldap_netlogon(cldap, tctx, search); CHECK_STATUS(status, NT_STATUS_OK);
Rev 733: merge from ronnie in http://samba.org/~tridge/ctdb
revno: 733 revision-id:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge.stable timestamp: Mon 2008-01-07 16:17:22 +1100 message: merge from ronnie modified: include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 server/ctdb_recoverd.c recoverd.c-20070503213540-bvxuyd9jm1f7ig90-1 === modified file 'include/ctdb_private.h' --- a/include/ctdb_private.h2008-01-06 02:24:55 + +++ b/include/ctdb_private.h2008-01-07 05:17:22 + @@ -366,6 +366,7 @@ struct _trbt_tree_t *server_ids; const char *event_script_dir; const char *default_public_interface; + pid_t ctdbd_pid; pid_t recoverd_pid; bool done_startup; const char *node_ip; === modified file 'server/ctdb_recoverd.c' --- a/server/ctdb_recoverd.c2008-01-07 03:08:25 + +++ b/server/ctdb_recoverd.c2008-01-07 05:17:22 + @@ -1821,6 +1821,12 @@ /* we only check for recovery once every second */ ctdb_wait_timeout(ctdb, ctdb-tunable.recover_interval); + /* verify that the main daemon is still running */ + if (kill(ctdb-ctdbd_pid, 0) != 0) { + DEBUG(0,(CTDB daemon is no longer available. Shutting down recovery daemon\n)); + exit(-1); + } + if (rec-election_timeout) { /* an election is in progress */ goto again; @@ -2275,6 +2281,8 @@ return -1; } + ctdb-ctdbd_pid = getpid(); + ctdb-recoverd_pid = fork(); if (ctdb-recoverd_pid == -1) { return -1;
svn commit: samba r26684 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .
Author: abartlet Date: 2008-01-07 05:22:14 + (Mon, 07 Jan 2008) New Revision: 26684 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26684 Log: Trivial cleanup from Matthias Dieter Walln?\195?\182fer, from bug 5090 Andrew Bartlett Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c === --- branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c 2008-01-07 04:46:13 UTC (rev 26683) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_tdb/ldb_index.c 2008-01-07 05:22:14 UTC (rev 26684) @@ -886,7 +886,7 @@ msg-elements[idx].values[msg-elements[idx].num_values].data = discard_const_p(uint8_t, dn); msg-elements[idx].num_values++; - return 0; + return LDB_SUCCESS; } /*
svn commit: samba r26685 - in branches/SAMBA_4_0/source/torture/rpc: .
Author: abartlet Date: 2008-01-07 05:41:16 + (Mon, 07 Jan 2008) New Revision: 26685 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26685 Log: Fix bug 5137 by Mark Ridley. The RPC-ATSVC test is not tested, so was broken by 'ref' changes long ago. We need a working script to aim against windows. Andrew Bartlett Modified: branches/SAMBA_4_0/source/torture/rpc/atsvc.c Changeset: Modified: branches/SAMBA_4_0/source/torture/rpc/atsvc.c === --- branches/SAMBA_4_0/source/torture/rpc/atsvc.c 2008-01-07 05:22:14 UTC (rev 26684) +++ branches/SAMBA_4_0/source/torture/rpc/atsvc.c 2008-01-07 05:41:16 UTC (rev 26685) @@ -27,9 +27,14 @@ { NTSTATUS status; struct atsvc_JobGetInfo r; + struct atsvc_JobInfo *info = talloc(tctx, struct atsvc_JobInfo); + if (!info) { + return false; + } r.in.servername = dcerpc_server_name(p); r.in.job_id = job_id; + r.out.job_info = info; status = dcerpc_atsvc_JobGetInfo(p, tctx, r);
svn commit: samba r26686 - in branches/SAMBA_4_0/source/setup: .
Author: abartlet Date: 2008-01-07 05:50:04 + (Mon, 07 Jan 2008) New Revision: 26686 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26686 Log: Fix bug 5143 by Jason Tarbet. This prevented an easy cut-and-paste of the provision options used. Andrew Bartlett Modified: branches/SAMBA_4_0/source/setup/provision Changeset: Modified: branches/SAMBA_4_0/source/setup/provision === --- branches/SAMBA_4_0/source/setup/provision 2008-01-07 05:41:16 UTC (rev 26685) +++ branches/SAMBA_4_0/source/setup/provision 2008-01-07 05:50:04 UTC (rev 26686) @@ -182,7 +182,7 @@ message(--invocationid='%s' \\\n, subobj.INVOCATIONID); message(--adminpass='%s' --krbtgtpass='%s' \\\n, subobj.ADMINPASS, subobj.KRBTGTPASS); message(--machinepass='%s' --dnspass='%s' \\\n, subobj.MACHINEPASS, subobj.DNSPASS); - message(--root='%s' --nobody='%s' --nogroup-'%s' \\\n, subobj.ROOT, subobj.NOBODY, subobj.NOGROUP); + message(--root='%s' --nobody='%s' --nogroup='%s' \\\n, subobj.ROOT, subobj.NOBODY, subobj.NOGROUP); message(--wheel='%s' --users='%s' --server-role='%s' \\\n, subobj.WHEEL, subobj.USERS, subobj.SERVERROLE); if (ldapbackend) { message(--ldap-backend='%s' \\\n, subobj.LDAPBACKEND);