Re: [Samba] Whitespace in password
Nope, it doesn't work for me. The message says: plaintext password authentication failed error code was NT STATUS NO SUCH USER error message was no such user Could not authenticate user with plaintext challenge/response password authentication succeeded thought if I do wbinfo -u the user exists Moreover if I put wbinfo -a myuser%pass word instead of wbinfo -a myuser%pass\ word as sugested the error gets bigger and it also says: plaintext password authentication failed error code was NT STATUS NO SUCH USER error message was no such user Could not authenticate user with plaintext challenge/response password authenticacion failed error code was NT STATUS WRONG PASSWORD error code was wrong password Could not authenticate user with challenge/response Any ideas? -Mensaje original- De: Herb Lewis [mailto:hle...@panasas.com] Enviado el: viernes, 19 de agosto de 2011 19:00 Para: Rodriguez Nuño, Claudia CC: samba@lists.samba.org Asunto: Re: [Samba] Whitespace in password try wbinfo -a myuser%pass\ word Rodriguez Nuño, Claudia wrote: Hi I am sorry if this has been asked before but after searching I haven't been able to find an answer. I have samba installed on a Centos machine and joined a windows active directory. Everything works fine in general except for users who have a whitespace in their password. For example if I have a user called myuser whose password is pass word when I do wbinfo -a myuser%pass word it gives me errors. How can I fix it and make users with passwords with whitespace get to authenticate to the shares? Is it possible at all? Thanks in advance -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Whitespace in password
On Mon, 2011-08-22 at 08:31 +0200, Rodriguez Nuño, Claudia wrote: Nope, it doesn't work for me. The message says: plaintext password authentication failed error code was NT STATUS NO SUCH USER error message was no such user Could not authenticate user with plaintext challenge/response password authentication succeeded thought if I do wbinfo -u the user exists Moreover if I put wbinfo -a myuser%pass word instead of wbinfo -a myuser%pass\ word as sugested the error gets bigger and it also says: plaintext password authentication failed error code was NT STATUS NO SUCH USER error message was no such user Could not authenticate user with plaintext challenge/response password authenticacion failed error code was NT STATUS WRONG PASSWORD error code was wrong password Could not authenticate user with challenge/response wbinfo -a is a diagnostic interface. Having space in an NTLM password will make not difference when connecting from CIFS clients. Andrew Bartlett -- Andrew Bartlett abart...@samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] 3.6.0: smbclient can't access a NT4 share
On Sun, Aug 14, 2011 at 10:30:51AM +0200, Marc Muehlfeld wrote: Am 13.08.2011 09:47, schrieb TAKAHASHI Motonobu: I can access to Windows NT Workstation 4.0 SP6a like: $ /usr/bin/smbclient -p 139 //wnt4ws/admin$ -U administrator Volker Lendecke already gave me the -p 139 workaround, too. I just haven't find out yet, if it's possible to tell amanda to use it (we use amanda for backup and amanda uses smbclient to backup windows shares). If you can, please try https://attachments.samba.org/attachment.cgi?id=6798 It fixes a related problem for me. Thanks, Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] mount.cifs with sec=ntlmv2 fails (mount error(22): Invalid argument)
Hello, everyone, I'm trying to mount a CIFS share served by Samba using mount.cifs with NTLMv2 authentication. According to 'man mount.cifs' the option sec=ntlmv2 should be supported, but it keeps giving me mount error(22): Invalid argument. The Samba server enforces the use of NTLMv2. When allowing for NTLMv1 on both sides everything works just fine. The client runs kernel 2.6.37.6-0.7-desktop (fully patched openSUSE-11.4) with the CIFS kernel module version 1.68. mount.cifs identifies as version: 4.6. Mounting on the client side it looks like this: --- snip --- # mount.cifs //abctest.box/abclaufwerk /mnt/mnt/ --verbose -o domain=ABCTEST,user=abc,pass=secrect,sec=ntlmv2 mount.cifs kernel mount options: ip=10.9.0.103,unc=\\abctest.box\abclaufwerk,sec=ntlmv2,ver=1,user=abc,domain=ABCTEST,pass= mount error(22): Invalid argument Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) --- snap --- CIFS debugging on the client is enabled: --- snip --- # cat /proc/fs/cifs/cifsFYI 1 --- snap --- Which yields the following lines in syslog (for the full log see attachment) --- snip --- Aug 22 17:47:34 client kernel: [28966.056081] /usr/src/packages/BUILD/kernel-desktop-2.6.37.6/linux-2.6.37/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x80f3fd TimeAdjust: -7200 Aug 22 17:47:34 client kernel: [28966.056088] /usr/src/packages/BUILD/kernel-desktop-2.6.37.6/linux-2.6.37/fs/cifs/sess.c: sess setup type 2 --- snap --- sess setup type 2 seems to indicate that NTLMv2 is used. The server is running a fully patched openSUSE 11.3 with kernel 2.6.34.8-0.2-default and Samba 3.5.4. Both lanman auth and ntlm auth are disabled, which should force the use of NTLMv2 according to 'man smb.conf': --- snip --- server # testparm 2 /dev/null | egrep 'ntlm|lan' ntlm auth = No server # --- snap --- The server's corresponding log entries are also attached. Like said above, when I allow for the use of NTLMv1 on both sides (ntlm auth = Yes on the server and no sec=ntlmv2 on the client) everything works just fine. When I enforce NTLMv2 on the server and don't specify sec=ntlmv2 with mount.cifs I get mount error(13): Permission denied and syslog on the client shows that NTLMv1 is tried (sess setup type 1). So is there anything wrong with my setup? Should NTLMv2 be working between Samba and mount.cifs? If it should, why isn't it in this particular setup? Any hints will be greatly appreciated. TIA -- Till -- Dipl.-Inform. Till Dörges doer...@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbHSachsenstr. 5, D-20097 HH USt-IdNr.: DE263765024 Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges Jürgen Sander Axel Theilmann -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] samba 3.6.0: cannot delete files on shares
Second try via NNTP: ;-) After updating samba to the new version 3.6.0 on my Linux systems at home and at work, I found the problem that I could not delete files on my shares. This did not occur on the home system, but only on the work system, so I looked for differences between the two. I found that the usage of non-encrypted passwords triggers the problem. I use this on my work system, because I want/need also classical plaintext AFS authentication there. There seems to be something general wrong with the access rights. On one system the windows client doesn't show the security tab in file properties at all, on the other system the security information is shown, but cannot be changed. It looks also as if samba changes something permanently in its internal configuration/data files. After I encountered the problem it stayed there even after downgrading to my last 3.5.x version. I had to delete all files under logfile-dir/locks first to return to the normal behaviour again. Jochen Roderburg RRZK University of Cologne Robert-Koch-Str. 10Tel.: +49-221/478-7024 D-50931 Koeln E-Mail: roderb...@uni-koeln.de Germany -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 on CentOS6 make quicktest failed
On 8/10/2011 5:33 AM, Michael Wood wrote: Hi On 3 August 2011 15:30, Konstantin Pobudzey5836...@gmail.com wrote: Hello all I followed samba4 how to ( CentOS6 minimum install ) #working fro me ./configure.developer make #failed for me [root@dcmsc samba-4.0.0alpha16]# make quicktest WAF_MAKE=1 ./buildtools/bin/waf test --quick 'test' finished successfully (0.000s) Waf: Entering directory `/root/download/samba-4.0.0alpha16/bin' [ 111/3389] Generating VERSION Waf: Leaving directory `/root/download/samba-4.0.0alpha16/bin' 'build' finished successfully (5.131s) test: running (/usr/bin/perl /root/download/samba-4.0.0alpha16/selftest/selftest.pl --target=samba --prefix=./st --srcdir=/root/download/samba-4.0.0alpha16 --exclude=./st/skip --testlist=/usr/bin/python /root/download/samba-4.0.0alpha16/source3/selftest/tests.py| --testlist=/usr/bin/python /root/download/samba-4.0.0alpha16/source4/selftest/tests.py| --binary-mapping=nmblookup3:nmblookup3,smbclient3:smbclient3,smbtorture4:smbtorture,ntlm_auth3:ntlm_auth3 --exclude=./st/slow --quick --include=./st/quick --socket-wrapper touch ./st/st_done) | /usr/bin/python -u /root/download/samba-4.0.0alpha16/selftest/filter-subunit --expected-failures=./st/knownfail | tee ./st/subunit | /usr/bin/python -u /root/download/samba-4.0.0alpha16/selftest/format-subunit --prefix=./st --immediate You don't have Time::Hires installed ! SOCKET_WRAPPER_DIR=/root/download/samba-4.0.0alpha16/st/w [2011/08/03 16:17:44, 0] ../lib/util/debug.c:572(reopen_logs_internal) Unable to open new log file '/usr/local/samba/var/log.smbd': No such file or directory Can't locate Test/More.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1. Can't locate Test/More.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1. Unknown parameter encountered: announce as Ignoring unknown parameter announce as Version 4.0.0alpha16 OPTIONS --configfile=$SMB_CONF_PATH --maximum-runtime=$SELFTEST_MAXTIME --target=samba4 --basedir=$SELFTEST_TMPDIR --option=torture:progress=no --format=subunit --option=torture:quick=yes WARNING: allowing empty subunit output from ldb.base skipping pidl.cutil (Test::More not available) skipping pidl.dump (Test::More not available) skipping pidl.header (Test::More not available) skipping pidl.ndr (Test::More not available) skipping pidl.ndr_align (Test::More not available) skipping pidl.ndr_alloc (Test::More not available) skipping pidl.ndr_array (Test::More not available) skipping pidl.ndr_compat (Test::More not available) skipping pidl.ndr_deprecations (Test::More not available) skipping pidl.ndr_fullptr (Test::More not available) skipping pidl.ndr_refptr (Test::More not available) skipping pidl.ndr_represent (Test::More not available) skipping pidl.ndr_simple (Test::More not available) skipping pidl.ndr_string (Test::More not available) skipping pidl.ndr_tagtype (Test::More not available) skipping pidl.parse_idl (Test::More not available) skipping pidl.samba-ndr (Test::More not available) skipping pidl.samba3-cli (Test::More not available) skipping pidl.samba3-srv (Test::More not available) skipping pidl.tdr (Test::More not available) skipping pidl.test_util (Test::More not available) skipping pidl.typelist (Test::More not available) skipping pidl.util (Test::More not available) skipping pidl.wireshark-conf (Test::More not available) skipping pidl.wireshark-ndr (Test::More not available) WARNING: allowing empty subunit output from samba4.urgent_replication.python(dc) WARNING: allowing empty subunit output from samba4.blackbox.samba3dump WARNING: allowing empty subunit output from samba4.blackbox.upgrade PROVISIONING S3DC...CREATE TEST ENVIRONMENT IN './st/s3dc'...DONE STARTING NMBD...DONE STARTING WINBINDD...DONE STARTING SMBD...DONE delaying for nbt name registration querying __SAMBA__ on 127.0.0.2 127.0.0.2 __SAMBA__00 127.0.0.2 __SAMBA__00 querying __SAMBA__ on 127.255.255.255 127.0.0.2 __SAMBA__00 querying LOCALS3DC2 on 127.0.0.2 127.0.0.2 LOCALS3DC200 127.0.0.2 LOCALS3DC200 wait for smbd Domain=[SAMBA-TEST] OS=[Unix] Server=[Samba 4.0.0alpha16] Sharename Type Comment - --- tmp Disk tmpguestDisk guestonly Disk forceuser Disk forcegroup Disk ro-tmp Disk msdfs-share Disk hideunread Disk tmpcase Disk hideunwrite Disk print1 Printer print2 Printer print3 Printer lp Printer print$ Disk IPC$IPC IPC Service (Samba 4.0.0alpha16) Server Comment ----
Re: [Samba] Samba Share Access denied on Solaris
Good day How do one access a samba share which does not require a login name and password. You only have to type the name of the server and the share name. Which modifications can I make on the smb.conf file. Your help will be appreciated. Regards Dee -Original Message- From: Moila December Sent: 27 July 2011 02:25 PM To: samba@lists.samba.org Cc: 'Colb, Andrew' Subject: RE: [Samba] Samba Share Access denied on Solaris Hi The error was solved by adding the following two lines in the smb.conf file recommended by my colleague. wide links = yes unix extensions = no Regards, Dee -Original Message- From: Colb, Andrew [mailto:a...@ici.org] Sent: 22 July 2011 03:10 PM To: Moila December; samba@lists.samba.org Subject: RE: [Samba] Samba Share Access denied on Solaris If the credentials are managed by AD and the Samba share remained joined to the domain throughout the Solaris reinstall/upgrade process, a good start is to kill smbd, take the Samba server out of the AD domain (new to Samba 3.5.5 is net leave command; or delete the Samba server entry directly within AD), refresh AD, then rejoin the Samba server to the domain and restart smbd. This will provide a clean relationship between new Samba and the domain as a starting point. Andy Colb Investment Company Institute -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Moila December Sent: Tuesday, July 19, 2011 6:18 AM To: samba@lists.samba.org Subject: [Samba] Samba Share Access denied on Solaris Hi I have reinstalled the Solaris 10 server with update 9 and now runs samba 3.5.5. I can log into the share but cannot open it. It says permissions denied . I modified the permissions on OS but still face the same error. Any kind of help will be appreciated. Kind Regards Dee DISCLAIMER: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the system manager/sender. Any unauthorized use, alteration or dissemination is prohibited. The Department of Water Affairs and Forestry further accepts no liability whatsoever for any loss, whether it be direct, indirect or consequential, arising from this e-mail, nor for any consequence of its use or storage. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba DISCLAIMER: This message and any attachments are confidential and intended solely for the addressee. If you have received this message in error, please notify the system manager/sender. Any unauthorized use, alteration or dissemination is prohibited. The Department of Water Affairs and Forestry further accepts no liability whatsoever for any loss, whether it be direct, indirect or consequential, arising from this e-mail, nor for any consequence of its use or storage. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba 4 Trust relationship with Windows 2008 Active Directory
Hi, I am trying to setup Samba 4 AD in our environment. I want to create the trust relationship with samba 4 AD and windows 2008 AD which is already running in our environment. While creating the trust it failed with the following error The target system doesn't support Netlogon trust password verification. Can you please help out on sorting the issue. Thanks Sathya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] 3.5.4-0.70.el5_6.1 logon problems with Windows 7
Hi, We see this message when the machine still does not have an IP address and can't find the domain controller on the network.(Are you on DHCP?) By the way, we use same samba version and still have issues time to time with the trust relationship during the user logon. Since nobody have idea what can cause the issue, samba 3.5.9 looks like an option. Regards, Ivan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] samba
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 on CentOS6 make quicktest failed
Same here, I tried Ubuntu 11.04 and all my quicktests failed so I tried CentOS 6 and same thing. I am installing Debian 6 now thinking that Ubuntu 11.04's python is too new so, I am thinking that there is some sort of bug. On Wed, Aug 10, 2011 at 10:32 AM, John Doe jd...@yahoo.com wrote: From: Michael Wood esiot...@gmail.com I don't know what package Test::More is in. It there a search engine for RHEL/CentOS packages like http://packages.debian.org? Google Test:More centos and first answer is http://pkgs.org/package/perl%28Test::More%29 Then you find it seems to be in perl-Test-Simple. # rpm -qpl perl-Test-Simple-0.92-115.el6.x86_64.rpm ... /usr/share/man/man3/Test::More.3pm.gz ... /usr/share/perl5/Test/More.pm ... JD -- Live free, live Linux! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] ntconfig.pol for samba3.5.6+openldap+Win7
Hi all, All clients are Win 7. How can I transmit rules defined in gpedit for users (for example forbid execution of regedit) to the Default User roaming profile? Is it done with a ntconfig.pol ? If yes, how can I make it ? Thanks This message was sent using IMP, the Internet Messaging Program. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba Cluster mit High Performance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hallo SambaML, in the next weeks I want to setup a high perormance Cluster(2-Nodes) with Samba on Linux. Now I have to decide which Clusterfilesystem is the best one for this project, gfs2, ocfs, glusterfs. If someone has experience with this, pleas give me an answer. At the second: is it the best way to setup a active-active Cluster with ctdb ? Best regards M. Wandel m-wan...@versanet.de -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOSNi4AAoJEL/EwdcvY5PErgYH/RDSzboXKEQHdnI/x9mGkpjY QPUkP+i9t7k0mDSR1THPoXJXUNyBataYtPxIxBXAhZSU0QnKJAKP3cdSEmeDw5rh dIFORWEGcXw7qiAGlfUTr8DPOAF+bmxwFrxvelztaEG+f3bQ6mgc5aPZGtsHL7Dh lrveFcBfsCPyV8tt1F9dYED59plFNpyHnXvimbvcDFHg9VxDjmS5CKVwlU3s9Zxq MkTjvjB1BJmhmAwcyZrqySQbSNkB4px2G9GuMrAItgIJE0F4fuo6cx7tlT/EewG0 7vGB9bIDzCzQlkbaHjoJriNPZteCXRPQMOXXmfwfvYR82xON8HR09Joou5fqY9A= =uNRs -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Failed join operations
Ok here are the files. On Tue, Aug 16, 2011 at 3:13 PM, Volker Lendecke volker.lende...@sernet.de wrote: On Tue, Aug 16, 2011 at 02:52:49PM +0800, John Huong wrote: I'm running a PDC on Samba 3.60. Just freshly upgraded it from Samba 3.028a with the purpose of supporting Windows 7. However though all the existing users and computers are running fine, I'm stumped trying to join a new Windows 7 machine to it. I have applied the DomainCompatibility registry fix. When I try to join a Windows 7 workstation I will get this message : The join operation was not successful. This could be because an existing computer account having the name NOTREALNAME was previously created using a different set of credentials. Use a different computer name, or contact your administrator to remove any stale conflicting account. Access is denied. Please send a full debug level 10 log of smbd during this attempt together with a network trace and your smb.conf file, even if the data is large. See http://wiki.samba.org/index.php/Client_specific_Log and http://wiki.samba.org/index.php/Capture_Packets. Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Fedora 14, Samba and connection problems - passwords
I have just replaced an old FC9 server with a new FC14 server as the old one died. Before it died I was having trouble authenticating connections to it. Now I have the new server running I'm still suffering the same problem. Setting up a user and setting the password gives no errors, but then connections fail complaining about the password. It is very much a virgin vanilla setup. All I have done is config the network and Samba. I even disabled selinux in case that was the problem. I've tried connecting from Win-XP clients which are the computers that need access. I've also tried connecting from my linux laptop and the server itself. Can someone please have a quick look and see what I've missed / done wrong. Googling has come up with loads of hits, but nothing I can follow to get a fix. Gary [root@zeppo samba]# smbclient //zeppo/gary -U gary Enter gary's password: Domain=[MOTORPARK] OS=[Unix] Server=[Samba 3.5.11-79.fc14] Server not using user level security and no password supplied. tree connect failed: NT_STATUS_WRONG_PASSWORD [root@zeppo samba]# [root@dcomp5 ~]# smbclient //zeppo/gary Enter root's password: Domain=[MOTORPARK] OS=[Unix] Server=[Samba 3.5.11-79.fc14] Server not using user level security and no password supplied. tree connect failed: NT_STATUS_WRONG_PASSWORD [root@dcomp5 ~]# Setting the password: [root@zeppo samba]# smbpasswd -D 10 gary Netbios name list:- my_netbios_names[0]=ZEPPO Attempting to register passdb backend ldapsam Successfully added passdb backend 'ldapsam' Attempting to register passdb backend ldapsam_compat Successfully added passdb backend 'ldapsam_compat' Attempting to register passdb backend NDS_ldapsam Successfully added passdb backend 'NDS_ldapsam' Attempting to register passdb backend NDS_ldapsam_compat Successfully added passdb backend 'NDS_ldapsam_compat' Attempting to register passdb backend smbpasswd Successfully added passdb backend 'smbpasswd' Attempting to register passdb backend tdbsam Successfully added passdb backend 'tdbsam' Attempting to register passdb backend wbc_sam Successfully added passdb backend 'wbc_sam' Attempting to find a passdb backend to match tdbsam (tdbsam) Found pdb backend tdbsam pdb backend tdbsam has a valid init New SMB password: Retype new SMB password: tdbsam_open: successfully opened /var/lib/samba/private/passdb.tdb pdb_set_username: setting username gary, was pdb_set_domain: setting domain ZEPPO, was pdb_set_nt_username: setting nt username , was pdb_set_full_name: setting full name Gary Stainburn, was Home server: zeppo Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE Substituting charset 'UTF-8' for LOCALE
Re: [Samba] window, samba and ldap passwords
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 16-08-2011 08:40, L.P.H. van Belle wrote: Hai, on your master, in smb.conf change these settings. ( im also running debian with pdc/bdc ldap master and multiple slaves through syncrepl ) passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* remove : unix password sync = Yes and try again. I would like to avoid using smbldap-tools, did you manage to get it working without it? Kind regards, - -- Felipe Augusto van de Wiel felipe.w...@complexopequenoprincipe.org.br Tecnologia da Informação (TI) - Complexo Pequeno Príncipe http://www.pequenoprincipe.org.br/T: +55 41 3310 1747 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJOTuicAAoJECCPPxLgxLxPhKEP/0kGEtDJ3Wwv2ZL2mWR5YAaV I8ma78RBcEn+Tix88bK7lPsLwi+ZVGuyWlzIuQZYDyqxr3LhQYutv4sIFdDKi3OK wHg0ud4vQi8AGlnaeJAZEsvvFmJFCYdgCZWiU27zn1l/6NAA1Uvl/8OhADcOsE9u jkklocHOG5C7t48a1eAb2RKiprWBkdM4YrDjhPXIaHe3jgL9LeEJ1jdMe9AbVp3L bYxiSwCSjLg66URPUbf26eSTsVkz4ZUL8LOR04aCIYnXG14cT6zx8SzcPJfZtL+p wl1xygrVJzdl/rdmLjW5V+yqB/cac+zFhs3fVciHaWDlZtQ9ABIw+4e0MXuIbkwM F5h/N9BTNX8PwccuADwwLXPgOOW+dE/zCiW6b0MjxP8aFlA5A9hgaPaaKDFBFN3/ fm4ti61bKjpZX8Ii538KRX7OHeszkKT/yXogGBxLn7TRrrr4oYccg9Wtm48DGQfh 5AbmBUOPzgROYhZpJDxMYBcPKtTKgUCoH+jpJJT9Tr6p1gaEduKDhl8aD1nTYYlc 1BS9Z3CWwOqcIdzPAdJKGm28FGBR+Khuo6Behm1YwK+PQRdW7zkqgxXS+Ra/3itI r/zwAGiKKGksiv06N2UVq+xQ7PNw9pO+9Q9BKCewSsTd9mmwCrtEoOwxQ90zCI6a Baks02kCfpM2SRYW9df/ =orz1 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] help.. please.. help!!!
hi , sorry if I bother you ,but I need your help urgently I am installing ubuntu with samba as PDC... but I cant make it could you give me some manual or any documentation about this... I already follow the documentation but when im trying to join a winxp or win7... They can not join to the domain. something about SRV error .. please, i really need your help best regards. carlos from - Colombia -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 3fc2bc3 s3-net: Added documentation for net_rpc_conf functions via 3f3b0c0 docs: Added documentation for net rpc conf. via 33de7eb s3-test: Added net conf tests to tests.py via 2c11d8f s3-test: Added new testsuites for test net [rpc] conf via 94db542 s3-test: added samba3.blackbox.net.rpc.registry.roundtrip testsuite via ed233db s3-test: Enhanced the net registry roundtrip test script via 57b7fb7 s3-net: Implemented net rpc conf import command via a00851f s3-net: Added net rpc conf import command to net rpc conf via 66583da s3-net: Implemented net rpc conf addshare command via 16b4637 s3-net: Added net rpc conf addshare command to net rpc conf via 7ee8a49 s3-net: Implemented net rpc conf setincludes command via f986297 s3-net: Added net rpc conf setincludes command to net rpc conf via 0c7f1d3 s3-net: Implemented net rpc conf setparm command via ffe98b5 s3-net: Added net rpc conf setparm command to net rpc conf via 1a3b88c s3-net: Implemented net rpc conf delparm command via 689edf8 s3-net: Added net rpc conf delparm command to net rpc conf via f370965 s3-net: Refactored part of rpc_conf_delincludes_internal via 4b3e2ad s3-net: Created function net_rpc_conf_del_value via 704d7d0 s3-net: Implemented net rpc conf delincludes command via a974f01 s3-net: Added net rpc conf delincludes command to net rpc conf via 8d335a3 s3-net: Implemented net rpc conf getincludes command via b52bfc1 s3-net: Added net rpc conf getincludes command to net rpc conf via 5a36306 s3-net: Implemented net rpc conf getparm command via 8e2ee72 s3-net: Added net rpc conf getparm command to net rpc conf via 7de814c s3-net: Implemented net rpc conf delshare command via 4728cf6 s3-net: Added net rpc conf delshare command to net rpc conf via f94c8e3 s3-net: Implemented net rpc conf drop command via 01e80f8 s3-net: Added net rpc conf drop command to net rpc conf via 5f8ec78 s3-net: Implemented net rpc conf showshare command via 2db3696 s3-net: Added net rpc conf showshare command to net rpc conf via ed0c5f5 s3-net: Implemented net rpc conf listshares command. via 1ca6e99 s3-net: Added net rpc conf listshares command to net rpc conf via 8efd30c s3-net: rpc_conf_list now uses the wrapper rpc_conf_open_conf via f16d092 s3-net: Added rpc_conf_open_conf function via 08be91b s3-net: Added the net rpc conf list command. via 283da12 s3-net: Added the command rpc conf to the net binary. via b46655b s3-net: Fixed whitespace errors from 43c0863 set passdb backend in Samba4 make test environments too http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 3fc2bc34a54870ad698153746190dff72be3dd8d Author: Vicentiu Ciorbaru cvicen...@gmail.com Date: Sun Aug 21 19:58:01 2011 +0300 s3-net: Added documentation for net_rpc_conf functions Added comments to most functions of net rpc conf for easier understanding of the code. Signed-off-by: Michael Adam ob...@samba.org Autobuild-User: Michael Adam ob...@samba.org Autobuild-Date: Mon Aug 22 17:08:15 CEST 2011 on sn-devel-104 commit 3f3b0c04df0696e525ce132c5a01cfa25a86a27a Author: Vicentiu Ciorbaru cvicen...@gmail.com Date: Sun Aug 21 17:42:33 2011 +0300 docs: Added documentation for net rpc conf. Changed the manual page for net to also show the posibility of remote configuration of a Samba server via net rpc conf. Signed-off-by: Michael Adam ob...@samba.org commit 33de7ebcfcc6c6580f597d1d1b0005b4db924dbe Author: Vicentiu Ciorbaru cvicen...@gmail.com Date: Wed Aug 17 17:58:59 2011 +0300 s3-test: Added net conf tests to tests.py The tests are added as blackbox tests and they can be called with the wildcard source3.blackbox.net.*.conf with either 'local' or 'rpc' instead of '*' . Signed-off-by: Michael Adam ob...@samba.org commit 2c11d8f177bf6ae828b098644a4903e6e4bc1876 Author: Vicentiu Ciorbaru cvicen...@gmail.com Date: Thu Aug 11 12:50:47 2011 +0300 s3-test: Added new testsuites for test net [rpc] conf The script tests all commands present in the net conf tool. It is also possible to provide a fourth command line parameter 'rpc' in order to run the tests with the use of rpc. Signed-off-by: Michael Adam ob...@samba.org commit 94db542f60c6c03a6764a15503c5bd4f1d291ad9 Author: Vicentiu Ciorbaru cvicen...@gmail.com Date: Wed Aug 10 12:05:50 2011 +0300 s3-test: added samba3.blackbox.net.rpc.registry.roundtrip testsuite The testsuite makes use of the rpc mode from the registry roundtrip script to test net rpc conf / net rpc registry
[SCM] CTDB repository - branch master updated - ctdb-1.10-418-ge255590
The branch, master has been updated via e25559087c9752502580875f7e33f3c416c05f84 (commit) via 04c3d9c7c9ffa8bb95b0bf1513fd79f6c1096a2f (commit) via bb8f68f0256c43fe0671fe45023d1c88e340ad96 (commit) via 77ae553249ef1e1d467d792ac033f2aaa4e337e6 (commit) via 5a5ed2a43b76bec69494b6cdc6451527f5c472e5 (commit) via 06433d20a43d41f05b96a9dda6dc5931539feaa3 (commit) via 955f67a02026b157440d2ae87ead193773331e75 (commit) via fa6564c24429e084be728dbe6eea1dec13e58709 (commit) via 4bceba374be82e76ba5d9d923172e85e9365b990 (commit) via 883b9b185dce03a6bf233fbf2cfabad9883519e5 (commit) via e0f93459e05eef33024096654b4aaf1eb3c6d7c4 (commit) via 683caa7bbf45d5b6791e53e2f3ee6d0ac3b08f28 (commit) from 4bfdfdae4f8ab23f14bc6ab4c06b66c07714ec17 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit e25559087c9752502580875f7e33f3c416c05f84 Author: Volker Lendecke v...@samba.org Date: Mon Aug 22 16:40:58 2011 +0200 Fix a const warning Signed-off-by: Michael Adam ob...@samba.org commit 04c3d9c7c9ffa8bb95b0bf1513fd79f6c1096a2f Author: Volker Lendecke v...@samba.org Date: Mon Aug 22 16:39:32 2011 +0200 Remove an unused variable Signed-off-by: Michael Adam ob...@samba.org commit bb8f68f0256c43fe0671fe45023d1c88e340ad96 Author: Volker Lendecke v...@samba.org Date: Fri Aug 19 17:05:36 2011 +0200 libctdb: unpack_reply_control does not need the ctdb_connection parameter Signed-off-by: Michael Adam ob...@samba.org commit 77ae553249ef1e1d467d792ac033f2aaa4e337e6 Author: Volker Lendecke v...@samba.org Date: Fri Aug 19 17:05:36 2011 +0200 libctdb: unpack_reply_call does not need the ctdb_connection parameter Signed-off-by: Michael Adam ob...@samba.org commit 5a5ed2a43b76bec69494b6cdc6451527f5c472e5 Author: Volker Lendecke v...@samba.org Date: Fri Aug 19 17:05:36 2011 +0200 libctdb: ctdb_request_free does not need the ctdb_connection parameter Signed-off-by: Michael Adam ob...@samba.org commit 06433d20a43d41f05b96a9dda6dc5931539feaa3 Author: Volker Lendecke v...@samba.org Date: Fri Aug 19 16:36:20 2011 +0200 libctdb: Make sure ctdb_request-ctdb is filled correctly Signed-off-by: Michael Adam ob...@samba.org commit 955f67a02026b157440d2ae87ead193773331e75 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 14:47:09 2011 +0200 libctdb: Ensure 0-termination of sun_path Rusty, please check! Signed-off-by: Michael Adam ob...@samba.org commit fa6564c24429e084be728dbe6eea1dec13e58709 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 13:59:48 2011 +0200 libctdb: Fix a few format warnings Signed-off-by: Michael Adam ob...@samba.org commit 4bceba374be82e76ba5d9d923172e85e9365b990 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 13:57:58 2011 +0200 libctdb: Add license header to messages.c Rusty, please check! Signed-off-by: Michael Adam ob...@samba.org commit 883b9b185dce03a6bf233fbf2cfabad9883519e5 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 13:37:23 2011 +0200 libctdb: Reorder attachdb No code change, this is for easier reading the sequence of what happens Signed-off-by: Michael Adam ob...@samba.org commit e0f93459e05eef33024096654b4aaf1eb3c6d7c4 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 13:55:24 2011 +0200 libctdb: Reorder set_message_handler No code change, this is for better readability Signed-off-by: Michael Adam ob...@samba.org commit 683caa7bbf45d5b6791e53e2f3ee6d0ac3b08f28 Author: Volker Lendecke v...@samba.org Date: Thu Aug 18 13:54:36 2011 +0200 libctdb: Correct 4bfdfda, stddef.h is needed by libctdb_private.h Signed-off-by: Michael Adam ob...@samba.org --- Summary of changes: common/ctdb_ltdb.c|2 - include/ctdb.h|2 +- libctdb/control.c |8 +- libctdb/ctdb.c| 237 - libctdb/libctdb_private.h |7 +- libctdb/messages.c| 90 +++--- libctdb/sync.c| 14 ++-- libctdb/tst.c | 10 +- server/ctdb_takeover.c|2 +- 9 files changed, 203 insertions(+), 169 deletions(-) Changeset truncated at 500 lines: diff --git a/common/ctdb_ltdb.c b/common/ctdb_ltdb.c index 3ee7fe8..0dc8711 100644 --- a/common/ctdb_ltdb.c +++ b/common/ctdb_ltdb.c @@ -206,8 +206,6 @@ int ctdb_ltdb_unlock(struct ctdb_db_context *ctdb_db, TDB_DATA key) */ int ctdb_ltdb_delete(struct ctdb_db_context *ctdb_db, TDB_DATA key) { - struct ctdb_context *ctdb = ctdb_db-ctdb; - if (ctdb_db-persistent != 0) { DEBUG(DEBUG_ERR,(Trying to delete emty record in persistent
[SCM] Samba Website Repository - branch master updated
The branch, master has been updated via e74f8af Make this news look like the 3.6 announcement from 86a766e Make the photos from sentence more simple http://gitweb.samba.org/?p=samba-web.git;a=shortlog;h=master - Log - commit e74f8afbe54d2549539f599abbbe254a50f2b2f4 Author: Lars Müller l...@samba.org Date: Mon Aug 22 20:18:53 2011 +0200 Make this news look like the 3.6 announcement --- Summary of changes: news/symlink_attack.html | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) Changeset truncated at 500 lines: diff --git a/news/symlink_attack.html b/news/symlink_attack.html index abe71fb..4b27b6d 100644 --- a/news/symlink_attack.html +++ b/news/symlink_attack.html @@ -3,8 +3,9 @@ !--#include virtual=/samba/header_columns.html -- -h45 February 2010/h4 -p class=headlineClaimed Zero Day exploit in Samba/p +h2Claimed Zero Day exploit in Samba/h2 + +pFebruary 5th 2010/p pA user named kcopedarookie posted what they claim to be a video of a @@ -17,17 +18,17 @@ in Samba/a on youtube yesterday./p pThe issue is actually a default insecure configuration in Samba./p -h5Quick FAQ: What do I do !/h5 +h3Quick FAQ: What do I do !/h3 pSet:/p pre wide links = no /pre +p/p pin the [global] section of your smb.conf and restart smbd to eliminate this problem./p -p/p -h5Longer FAQ: The real issue/h5 +h3Longer FAQ: The real issue/h3 pThe problem comes from a combination of two features in Samba, each of which on their own are useful to Administrators, but in combination @@ -47,12 +48,14 @@ inside an exported share which SMB/CIFS clients will follow./p guest ok = yes /pre +p/p pThe administrator could add a symlink:/p pre $ ln -s /etc/passwd /tmp/passwd /pre +p/p pand SMB/CIFS clients would then see a file called passwd within the [tmp] share that could be read and would allow clients to read /etc/passwd./p -- Samba Website Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 5007ad3 s3: Slightly simplify serverid_exists from 3fc2bc3 s3-net: Added documentation for net_rpc_conf functions http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 5007ad30265caa01d973c1964118a779c6ee68ef Author: Volker Lendecke v...@samba.org Date: Mon Aug 22 10:21:09 2011 +0200 s3: Slightly simplify serverid_exists procid_is_me() works fine in the clustering case as well Autobuild-User: Jeremy Allison j...@samba.org Autobuild-Date: Mon Aug 22 21:28:13 CEST 2011 on sn-devel-104 --- Summary of changes: source3/lib/serverid.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/lib/serverid.c b/source3/lib/serverid.c index d567066..7e56301 100644 --- a/source3/lib/serverid.c +++ b/source3/lib/serverid.c @@ -236,7 +236,7 @@ bool serverid_exists(const struct server_id *id) struct serverid_key key; TDB_DATA tdbkey; - if (!lp_clustering() procid_is_me(id)) { + if (procid_is_me(id)) { return true; } -- Samba Shared Repository
[SCM] CTDB repository - branch 1.2 updated - ctdb-1.9.1-476-ge73bcd3
The branch, 1.2 has been updated via e73bcd36a477dfab5e0555fb3585d35bbab162f1 (commit) via 5aa5a22a797d3bd312dd35b2bf8fbc98e45edf22 (commit) via bafe7b665755356ea2be2d2980cc8ca14c34d099 (commit) via 536ce3ead42e1b519888003b311d4eb2a61a8daa (commit) from d84c171a9ca18f9fe1f71a3fd329e77a012a1481 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=1.2 - Log - commit e73bcd36a477dfab5e0555fb3585d35bbab162f1 Author: Martin Schwenke mar...@meltin.net Date: Fri Aug 19 14:20:58 2011 +1000 Eventscripts - ctdb_check_tcp_ports() bug fix. Signed-off-by: Martin Schwenke mar...@meltin.net commit 5aa5a22a797d3bd312dd35b2bf8fbc98e45edf22 Author: Martin Schwenke mar...@meltin.net Date: Fri Aug 19 13:55:55 2011 +1000 Eventscripts - fix debugging buglet in ctdb_check_tcp_ports_ctdb() Signed-off-by: Martin Schwenke mar...@meltin.net commit bafe7b665755356ea2be2d2980cc8ca14c34d099 Author: Martin Schwenke mar...@meltin.net Date: Wed Aug 17 14:02:45 2011 +1000 Eventscripts - new default TCP port checker using ctdb checktcpport New function ctdb_check_tcp_ports_ctdb(). This should be fast... and is now the default checker. If it fails in an unexpected way we fall back to the nmap and netstat checkers. Signed-off-by: Martin Schwenke mar...@meltin.net commit 536ce3ead42e1b519888003b311d4eb2a61a8daa Author: Martin Schwenke mar...@meltin.net Date: Wed Aug 17 12:12:20 2011 +1000 Eventscripts - generalise TCP port checking plus new nmap-based checker Split the netstat-specific parts of ctdb_check_tcp_ports() into new function ctdb_check_tcp_ports_netstat(). Implement new ctdb_check_tcp_ports_nmap() function that uses nmap -PS to check if the desired ports are listening. ctdb_check_ctdb_ports() now uses new configuration variable CTDB_TCP_PORT_CHECKERS to decide which port checkers to try. Default value is currently nmap netstat. If nmap is not found then this will fall back to netstat. This indicates that either nmap should be installed or the default value of CTDB_TCP_PORT_CHECKERS should be changed (in a configuration file) to avoid trying to use nmap. Signed-off-by: Martin Schwenke mar...@meltin.net --- Summary of changes: config/functions | 137 -- 1 files changed, 123 insertions(+), 14 deletions(-) Changeset truncated at 500 lines: diff --git a/config/functions b/config/functions index 1f50e70..8d2e48c 100755 --- a/config/functions +++ b/config/functions @@ -210,10 +210,61 @@ ctdb_check_tcp_init () ctdb_check_tcp_ports() { -_ctdb_check_tcp_common +if [ -z $1 ] ; then + echo INTERNAL ERROR: ctdb_check_tcp_ports - no ports specified + exit 1 +fi + +# Set default value for CTDB_TCP_PORT_CHECKS if unset. +# If any of these defaults are unsupported then this variable can +# be overridden in /etc/sysconfig/ctdb or via a file in +# /etc/ctdb/rc.local.d/. +: ${CTDB_TCP_PORT_CHECKERS:=ctdb nmap netstat} + +for _c in $CTDB_TCP_PORT_CHECKERS ; do + ctdb_check_tcp_ports_$_c $@ + case $? in + 0) + _ctdb_check_tcp_common + rm -f $_ctdb_service_started_file + return 0 + ;; + 1) + _ctdb_check_tcp_common + if [ ! -f $_ctdb_service_started_file ] ; then + echo ERROR: $service_name tcp port $_p is not responding + cat EOF +$ctdb_check_tcp_ports_debug +EOF + else + echo INFO: $service_name tcp port $_p is not responding + fi + return 1 + ;; + 127) + : # Not implemented + ;; + *) + + esac +done + +echo INTERNAL ERROR: ctdb_check_ports - no working checkers in CTDB_TCP_PORT_CHECKERS=\$CTDB_TCP_PORT_CHECKERS\ + +return 127 +} + +ctdb_check_tcp_ports_netstat () +{ _cmd='netstat -l -t -n' -_ns=$($_cmd) +_ns=$($_cmd 21) +if [ $? -eq 127 ] ; then + # netstat probably not installed - unlikely? + ctdb_check_tcp_ports_debug=$_ns + return 127 +fi + for _p ; do # process each function argument (port) for _a in '0\.0\.0\.0' '::' ; do _pat=[[:space:]]${_a}:${_p}[[:space:]]+[^[:space:]]+[[:space:]]+LISTEN @@ -223,21 +274,79 @@ ctdb_check_tcp_ports() fi done - # We didn't match the port, so flag an error, print some debug - if [ ! -f $_ctdb_service_started_file ] ; then - cat EOF -ERROR: $service_name tcp port $_p is not responding -$_cmd shows this output: -$_ns -EOF - else - echo INFO: $service_name tcp port
[SCM] CTDB repository - branch master-readonly-records created - ctdb-1.10-447-g01314c2
The branch, master-readonly-records has been created at 01314c2cb3a480917d6a632b83c39f0a48bba0e7 (commit) - Log - commit 01314c2cb3a480917d6a632b83c39f0a48bba0e7 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 10:41:52 2011 +1000 ReadOnly: Check the readonly flag instead of whether the tdb pointer is NULL or not commit a47ae3c2c81c62989bc99455459069149c853bbd Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 10:37:20 2011 +1000 ReadOnly: add description of readonly records commit 7af21f058d1f6bfdd38ca603e7a19d1bb7ba Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Aug 17 16:14:57 2011 +1000 ReadOnly: clear out the tracking record once a revoke is completed commit 1b7d42c3425e39dd2a1c4460e8a01fb1ea4a513c Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Thu Jul 21 15:59:37 2011 +1000 ReadOnly: When the client wants a readwrite lock but the local node is the dmaster and also have delegations active we must send a CALL to the local daemon to trigger it to revoke the delegations commit 6d5d79367f7d04e2a9a6ad5d8be70d609b764629 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Thu Jul 21 15:58:56 2011 +1000 ReadOnly: Change the update_record test tool to use the new fetchlock routine that can do either normal or readonly fetchlock commit 72a6e77fe56a4a6d11b1d02fa049b6dd347ac0f1 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:47:15 2011 +1000 ReadOnly: Add a test tool that requests a readonly delegation in a loop commit 29c77c249d0454057ce28003e018e126c7c01513 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:43:55 2011 +1000 ReadOnly: Add a test tool to fetch a record, requesting a readonly delegation and lock the record once commit 6fccc902bce21fa6ff13ed08ee3341bbf8be39f2 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:37:37 2011 +1000 ReadOnly: Add clientside code to fetch readonly records commit 8551420fb331dd2a897f4619278a981fcefb96e8 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:31:44 2011 +1000 ReadOnly: Add a ctdb_ltdb_fetch_readonly() helper function commit e7cbf5b5d03cc26a73a92066a651f8eab73624b8 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:17:29 2011 +1000 ReadOnly: Add handlign of readonly requests readwrite requests, delegations and revoking of delegation to the processing loop for CALL requests coming in from a local client via domain socket commit 78f2c2ea70e6270cec59db7c3f174a511bf608a9 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 15:13:47 2011 +1000 ReadOnly: Add processing for ReadOnly delegation requests and revoke requests to the processing loop for CALL packets we receive from different nodes. This implements the ReadOnly and ReadWrite request processing, delegation and revoking of delegations for all requests coming in across the network from a remote node. commit 530a78aa05910beeca0867c4dbe226d4ce73f946 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 14:25:29 2011 +1000 ReadOnly: Once recovery has finished, make sure to free all revoke child processes and trigger the destructors for all deferred calls to re-queue the original packets to the input packet processing function commit 2a4e9e69850d64dd8aef695f587ebe04393a688f Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 14:23:05 2011 +1000 ReadOnly: When releasing all deferred calls that blocked during revoke of all previous delegations, add a 1 second grace/delay for any new readonly delegation requests so that the read-write fetch-lock porcess has a chance to make progress commit a3f54a556e97170eedf43708d58dd32446ca5840 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 14:21:04 2011 +1000 ReadOnly: Add a new flag to call request packet to indicate that the client wants a readonly delegation commit 7d575ee92c95bc4aab78a33bc1aac7ff0811ab3a Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 10:27:31 2011 +1000 ReadOnly: Add a function to start a revoke of all delegations for a record. This triggers a child process to be created to perform the actual potentially blocking calls that are required. commit cc6f78efcfa3b8caeffbd68018e6dfbf81488dce Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Wed Jul 20 13:49:17 2011 +1000 ReadOnly: Add functions to register CALLs to a context used to handle deferal of processing of CALL commands. Once the contexts are freed, the deferred calls are re-issued to the input packet processing functions again. This is needed when/if a CALL can not currently be processed by the main engine due to the record being locked down for revoking of all delegations. The data is passed through several layers of callbacks, and
[SCM] CTDB repository - branch master updated - ctdb-1.10-419-g8d89bfd
The branch, master has been updated via 8d89bfdfd1f55dfeb22890b8bb0f08f31d1fa91a (commit) from e25559087c9752502580875f7e33f3c416c05f84 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit 8d89bfdfd1f55dfeb22890b8bb0f08f31d1fa91a Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 12:43:16 2011 +1000 LibCTDB: add commands where an application can query how many commands are active and we have not yet received a reply to. Applications may use this command to query if it is safe to stop the event system and sleep or whether it should first wait for all activity to ctdb daemons to cease first. --- Summary of changes: include/ctdb.h | 39 +++ libctdb/ctdb.c | 29 + 2 files changed, 68 insertions(+), 0 deletions(-) Changeset truncated at 500 lines: diff --git a/include/ctdb.h b/include/ctdb.h index fad3233..ae62a17 100644 --- a/include/ctdb.h +++ b/include/ctdb.h @@ -116,6 +116,45 @@ void ctdb_disconnect(struct ctdb_connection *ctdb); ***/ /** + * ctdb_num_active - get the number of active commands + * @ctdb: the ctdb_connection from ctdb_connect. + * + * This command can be used to find the number of active commands we have + * issued. An active command is a command we have queued, or sent + * to the ctdb daemon but which we have not yet received a reply to. + * + * See Also: + * ctdb_num_in_flight(), ctdb_num_out_queue() + */ +int ctdb_num_active(struct ctdb_connection *ctdb); + +/** + * ctdb_num_in_flight - get the number of commands in flight. + * @ctdb: the ctdb_connection from ctdb_connect. + * + * This command can be used to find the number of commands we have + * sent to the ctdb daemon to which we have not yet received/processed + * the reply. + * + * See Also: + * ctdb_num_out_queue(), ctdb_num_active() + */ +int ctdb_num_in_flight(struct ctdb_connection *ctdb); + +/** + * ctdb_num_out_queue - get the number of commands in the out queue + * @ctdb: the ctdb_connection from ctdb_connect. + * + * This command can be used to find the number of commands we have + * queued for delivery to the ctdb daemon but have not yet been + * written to the domain socket. + * + * See Also: + * ctdb_num_in_flight(), ctdb_num_active() + */ +int ctdb_num_out_queue(struct ctdb_connection *ctdb); + +/** * ctdb_get_fd - get the filedescriptor to select/poll on * @ctdb: the ctdb_connection from ctdb_connect. * diff --git a/libctdb/ctdb.c b/libctdb/ctdb.c index e407910..d51f4a1 100644 --- a/libctdb/ctdb.c +++ b/libctdb/ctdb.c @@ -1133,3 +1133,32 @@ bool ctdb_traverse_async(struct ctdb_db *ctdb_db, return true; } + +int ctdb_num_out_queue(struct ctdb_connection *ctdb) +{ + struct ctdb_request *req; + int i; + + for (i = 0, req = ctdb-outq; req; req = req-next, i++) + ; + + return i; +} + +int ctdb_num_in_flight(struct ctdb_connection *ctdb) +{ + struct ctdb_request *req; + int i; + + for (i = 0, req = ctdb-doneq; req; req = req-next, i++) + ; + + return i; +} + +int ctdb_num_active(struct ctdb_connection *ctdb) +{ + return ctdb_num_out_queue(ctdb) ++ ctdb_num_in_flight(ctdb); +} + -- CTDB repository
[SCM] CTDB repository - branch master-readonly-records updated - ctdb-1.10-449-g231f16b
The branch, master-readonly-records has been updated via 231f16b3e0c9c44fc85c95bde7951ccfab50af91 (commit) via 0893fa0f3257f50d54896ffa78ec12ee11e8c6d2 (commit) from 01314c2cb3a480917d6a632b83c39f0a48bba0e7 (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master-readonly-records - Log - commit 231f16b3e0c9c44fc85c95bde7951ccfab50af91 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 15:13:40 2011 +1000 LibCTDB : change the ctdb_fetch_lock_once test tool to use libctdb instead of the old client commit 0893fa0f3257f50d54896ffa78ec12ee11e8c6d2 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 15:00:27 2011 +1000 LibCTDB : add support for getrecmode --- Summary of changes: Makefile.in |4 +- include/ctdb.h | 50 ++ libctdb/control.c| 28 libctdb/sync.c | 17 +++ tests/src/ctdb_fetch_lock_once.c | 86 -- 5 files changed, 152 insertions(+), 33 deletions(-) Changeset truncated at 500 lines: diff --git a/Makefile.in b/Makefile.in index e6421f8..80b0a02 100755 --- a/Makefile.in +++ b/Makefile.in @@ -169,9 +169,9 @@ tests/bin/ctdb_fetch_one: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_one.o @echo Linking $@ @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) -tests/bin/ctdb_fetch_lock_once: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_lock_once.o +tests/bin/ctdb_fetch_lock_once: libctdb/libctdb.a tests/src/ctdb_fetch_lock_once.o @echo Linking $@ - @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) + @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o libctdb/libctdb.a -ltdb $(LIB_FLAGS) tests/bin/ctdb_fetch_readonly_once: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_readonly_once.o @echo Linking $@ diff --git a/include/ctdb.h b/include/ctdb.h index fad3233..484902f 100644 --- a/include/ctdb.h +++ b/include/ctdb.h @@ -552,6 +552,35 @@ bool ctdb_getrecmaster_recv(struct ctdb_connection *ctdb, uint32_t *recmaster); /** + * ctdb_getrecmode_send - read the recovery mode of a node + * @ctdb: the ctdb_connection from ctdb_connect. + * @destnode: the destination node (see below) + * @callback: the callback when ctdb replies to our message (typesafe) + * @cbdata: the argument to callback() + * + * There are several special values for destnode, detailed in + * ctdb_protocol.h, particularly CTDB_CURRENT_NODE which means the + * local ctdbd. + */ +struct ctdb_request * +ctdb_getrecmode_send(struct ctdb_connection *ctdb, +uint32_t destnode, +ctdb_callback_t callback, void *cbdata); + +/** + * ctdb_getrecmode_recv - read an ctdb_getrecmode reply from ctdbd + * @ctdb: the ctdb_connection from ctdb_connect. + * @req: the completed request. + * @recmode: a pointer to the recmode to fill in + * + * This returns false if something went wrong, or otherwise fills in + * recmode. + */ +bool ctdb_getrecmode_recv(struct ctdb_connection *ctdb, + struct ctdb_request *handle, + uint32_t *recmode); + +/** * ctdb_cancel - cancel an uncompleted request * @ctdb: the ctdb_connection from ctdb_connect. * @req: the uncompleted request. @@ -669,6 +698,23 @@ bool ctdb_getrecmaster(struct ctdb_connection *ctdb, /** + * ctdb_getrecmode - read the recovery mode of a node (synchronous) + * @ctdb: the ctdb_connection from ctdb_connect. + * @destnode: the destination node (see below) + * @recmode: a pointer to the recmode to fill in + * + * There are several special values for destnode, detailed in + * ctdb_protocol.h, particularly CTDB_CURRENT_NODE which means the + * local ctdbd. + * + * Returns true and fills in *recmode on success. + */ +bool ctdb_getrecmode(struct ctdb_connection *ctdb, +uint32_t destnode, +uint32_t *recmode); + + +/** * ctdb_getnodemap - read the nodemap from a node (synchronous) * @ctdb: the ctdb_connection from ctdb_connect. * @destnode: the destination node (see below) @@ -775,6 +821,10 @@ void ctdb_free_publicips(struct ctdb_all_public_ips *ips); ctdb_getrecmaster_send((ctdb), (destnode), \ ctdb_sendcb((cb), (cbdata)), (cbdata)) +#define ctdb_getrecmode_send(ctdb, destnode, cb, cbdata) \ + ctdb_getrecmode_send((ctdb), (destnode),\ + ctdb_sendcb((cb), (cbdata)), (cbdata)) + #define ctdb_getnodemap_send(ctdb, destnode, cb, cbdata) \ ctdb_getnodemap_send((ctdb), (destnode),\
[SCM] CTDB repository - branch master updated - ctdb-1.10-421-gcd10807
The branch, master has been updated via cd1080726d7787b335ab4bfb64a7991237ab92f5 (commit) via b663f286ea8edd64c0405a1ab45b6ef1da501bf5 (commit) from 8d89bfdfd1f55dfeb22890b8bb0f08f31d1fa91a (commit) http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master - Log - commit cd1080726d7787b335ab4bfb64a7991237ab92f5 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 15:13:40 2011 +1000 LibCTDB : change the ctdb_fetch_lock_once test tool to use libctdb instead of the old client commit b663f286ea8edd64c0405a1ab45b6ef1da501bf5 Author: Ronnie Sahlberg ronniesahlb...@gmail.com Date: Tue Aug 23 15:00:27 2011 +1000 LibCTDB : add support for getrecmode --- Summary of changes: Makefile.in |4 +- include/ctdb.h | 50 ++ libctdb/control.c| 28 libctdb/sync.c | 17 +++ tests/src/ctdb_fetch_lock_once.c | 86 -- 5 files changed, 152 insertions(+), 33 deletions(-) Changeset truncated at 500 lines: diff --git a/Makefile.in b/Makefile.in index 0cce22e..02e1d0a 100755 --- a/Makefile.in +++ b/Makefile.in @@ -167,9 +167,9 @@ tests/bin/ctdb_fetch_one: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_one.o @echo Linking $@ @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) -tests/bin/ctdb_fetch_lock_once: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_lock_once.o +tests/bin/ctdb_fetch_lock_once: libctdb/libctdb.a tests/src/ctdb_fetch_lock_once.o @echo Linking $@ - @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS) + @$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o libctdb/libctdb.a -ltdb $(LIB_FLAGS) tests/bin/ctdb_store: $(CTDB_CLIENT_OBJ) tests/src/ctdb_store.o @echo Linking $@ diff --git a/include/ctdb.h b/include/ctdb.h index ae62a17..4cdbc0f 100644 --- a/include/ctdb.h +++ b/include/ctdb.h @@ -591,6 +591,35 @@ bool ctdb_getrecmaster_recv(struct ctdb_connection *ctdb, uint32_t *recmaster); /** + * ctdb_getrecmode_send - read the recovery mode of a node + * @ctdb: the ctdb_connection from ctdb_connect. + * @destnode: the destination node (see below) + * @callback: the callback when ctdb replies to our message (typesafe) + * @cbdata: the argument to callback() + * + * There are several special values for destnode, detailed in + * ctdb_protocol.h, particularly CTDB_CURRENT_NODE which means the + * local ctdbd. + */ +struct ctdb_request * +ctdb_getrecmode_send(struct ctdb_connection *ctdb, +uint32_t destnode, +ctdb_callback_t callback, void *cbdata); + +/** + * ctdb_getrecmode_recv - read an ctdb_getrecmode reply from ctdbd + * @ctdb: the ctdb_connection from ctdb_connect. + * @req: the completed request. + * @recmode: a pointer to the recmode to fill in + * + * This returns false if something went wrong, or otherwise fills in + * recmode. + */ +bool ctdb_getrecmode_recv(struct ctdb_connection *ctdb, + struct ctdb_request *handle, + uint32_t *recmode); + +/** * ctdb_cancel - cancel an uncompleted request * @ctdb: the ctdb_connection from ctdb_connect. * @req: the uncompleted request. @@ -708,6 +737,23 @@ bool ctdb_getrecmaster(struct ctdb_connection *ctdb, /** + * ctdb_getrecmode - read the recovery mode of a node (synchronous) + * @ctdb: the ctdb_connection from ctdb_connect. + * @destnode: the destination node (see below) + * @recmode: a pointer to the recmode to fill in + * + * There are several special values for destnode, detailed in + * ctdb_protocol.h, particularly CTDB_CURRENT_NODE which means the + * local ctdbd. + * + * Returns true and fills in *recmode on success. + */ +bool ctdb_getrecmode(struct ctdb_connection *ctdb, +uint32_t destnode, +uint32_t *recmode); + + +/** * ctdb_getnodemap - read the nodemap from a node (synchronous) * @ctdb: the ctdb_connection from ctdb_connect. * @destnode: the destination node (see below) @@ -814,6 +860,10 @@ void ctdb_free_publicips(struct ctdb_all_public_ips *ips); ctdb_getrecmaster_send((ctdb), (destnode), \ ctdb_sendcb((cb), (cbdata)), (cbdata)) +#define ctdb_getrecmode_send(ctdb, destnode, cb, cbdata) \ + ctdb_getrecmode_send((ctdb), (destnode),\ + ctdb_sendcb((cb), (cbdata)), (cbdata)) + #define ctdb_getnodemap_send(ctdb, destnode, cb, cbdata) \ ctdb_getnodemap_send((ctdb), (destnode),\ ctdb_sendcb((cb), (cbdata)), (cbdata)) diff --git