[Samba] Error Beta
Hello list, I have Samba4.0.0beta2-GIT-6440720, yesterday I run git pull for update my samba-master, the task was succeful, I read the step for update and everything work god, when i run smclient --version say me samba4 betta3, but but I found a great problem, my client windows xp, ubuntu, all do not loging to domain, I come back the version of beta 4 to beta 2 and everything is ok. I ask there is some problem with beta3??? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba4 AD Server auth. with Win2k8R2 Server
Hello, I want to set up a Samba 4 AD server that authenticates username/password against Windows 2008 R2 Server. The users of the Samba domain will be logging to machines in Samba domain but their credentials would be passed to the Windows AD server for authentication (in a similar fashion as Samba file server authenticates against Windows AD server). In other words, I want Samba AD server to be AD server for computer accounts but act as a pass-through authentication server for users logins. As for users permissions etc it is irrelevant where those reside. I.e., I would not mind having one (Windows only) or two (Samba and Windows servers) sets of users accounts; as long as the user authentication is done by the Windows server, my requirements are met. The above would be the primary preference; if that is not possible, alternative solution would be syncing usernames/passwords between Samba and Windows servers and Samba domain users authenticating against Samba server. Hope the question is clear enough. Thanks in advance. Alex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] [Announce] Samba 3.6.6 Available for Download
Your body hears everything your mind says. Naomi Judd === Release Announcements = This is is the latest stable release of Samba 3.6. Major enhancements in Samba 3.6.6 include: o Fix possible memory leaks in the Samba master process (bug #8970). o Fix uninitialized memory read in talloc_free(). o Fix joining of XP Pro workstations to 3.6 DCs (bug #8373). Changes since 3.6.5: o Michael Adam ob...@samba.org * BUG 8738: SMB2 server will not release unused shares. * BUG 8749: Sign non guest sessions in SessionSetup. * BUG 8921: Fix race writing registry values. o Jeremy Allison j...@samba.org * BUG 8373: Fix joining of XP Pro workstations to 3.6 DCs. * BUG 8627: Fix crash bug in dns_create_probe when dns_create_update fails. * BUG 8723: Add pthread-based aio VFS module. * BUG 8784: When calculating the share security mask, take priviliges into account for the connecting user. * BUG 8811: sd_has_inheritable_components segfaults on an SD that se_access_check accepts. * BUG 8837: Fix crash in smbd when deleting directory and veto files are enabled. * BUG 8857: Setting traverse rights fails to enable directory traversal when acl_xattr in use. * BUG 8882: Broken processing of %U with vfs_full_audit when force user is set. * BUG 8897: Make winbind_krb5_locator not only returning one IP address. * BUG 8910: resolve_ads() code can return zero addresses and miss valid DC IP addresses. * BUG 8922: smbclient's tarmode insists on listing excluded directories. * BUG 8953: Winbind can hang as nbt_getdc() has no timeout. * BUG 8957: Typo in pam_winbindd code MUST fix. * BUG 8970: Fix possible memory leaks in the Samba master process. * BUG 8971: cleanup_timeout_fn() is called too often, on exiting when an smbd is idle. * BUG 8972: Directory group write permission bit is set if unix extensions are enabled. o Christian Ambach a...@samba.org * BUG 8406: Fix a return code check in Winbind. * BUG 8807: Fix crash in dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups. o Andrew Bartlett abart...@samba.org * BUG 8599: Only use SamLogonEx when we can get unencrypted session keys. * BUG 8727: Fix smbclients with posix large reads. * BUG 8943: Slow but responsive DC can lock up Winbind for 10 minutes at a time. o Björn Baumbach b...@sernet.de * BUG 7564: Fix default name resolve order in the manpage. * BUG 8554, 8612, 8748: Add new printers to registry. * BUG 8789: Remove whitespace in example samba.ldif. o Alexander Bokovoy a...@samba.org * BUG 8988: Avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute(). o Alejandro Escanero Blanco aescan...@gmail.com * BUG 8798: The primary rid should be in the groups rid array. o Ira Cooper sa...@ira.wakeful.net * BUG 8729: Fix getpass regressions on Solaris/Illumos. * BUG 8743: Fix configure.developer builds on Solaris. * BUG 8910: Fix bad bugfix for bug #8910. * BUG 8952: Fix negative SID-uid/gid cache handling. * BUG 8995: Use fsp_persistent_id() as persistent_file_id part for SMB2. o David Disseldorp dd...@samba.org * BUG 8762: Fix crash in printer_list_set_printer(). o Olaf Flebbe o.fle...@science-computing.de * BUG 8859: Fix assertion in reg_parse. o Björn Jacke b...@sernet.de * BUG 8732: Fix compile of krb5 locator on Solaris. * BUG 8869: Remove outdated netscape ds 5 schema file. * BUG 8978: Remove dependency on automake for 'make everything'. o Steve Langasek steve.langa...@ubuntu.com * BUG 8920: Fix null dereference in pdb_interface. o Volker Lendecke v...@samba.org * Fix uninitialized memory read in talloc_free(). * BUG 8567: Fix segfault in dom_sid_compare. * BUG 8733: Delete streams on directories (streams_depot). * BUG 8760: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY. * BUG 8836: Fix segfaults on smbcontrol close-share in aio_fork. * BUG 8861: Fix a segfault with debug level 3 on Solaris. * BUG 8904: Fix Winbind crash triggered by 'wbinfo --lookup-sids '. * BUG 8998: Notify code can miss a ChDir. o Stefan Metzmacher me...@samba.org * BUG 8139: Ignore SMBecho errors (the server may not support it). * BUG 8527: db_ctdb_traverse fails to traverse records created within the current transaction. * BUG 8311: Winzip occasionally can not read files out of an open winzip dialog. * BUG 8739: Fill the sids array of the info in wbcAuthUserInfo_to_netr_SamInfo3(). * BUG 8749: Sign non guest sessions in SessionSetup. * BUG 8995: Use fsp_persistent_id() as persistent_file_id part for SMB2. o
[Samba] Samba4 DC replication
Hi We have just added a second DC to our existing domain. Replication is working fine. We have setup the second DC with bind DLZ and that too is working fine (except that the DNS partition is not replicated). So, we now have two DC's and so also two DNS servers. Question, Do I now have to go to every client and add the new IP for the new DNS? Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba4 Can we use two file-servers?
Hi We've just added a second DC to our domain, both DCs are Samba4 DC1 is also the s3fs file server. If that goes down then so does the file-server. IOW, we can still authenticate via DC2 but we cannot do any work! What are my options here? Is it possible to sync the files to DC2 and use that in case of failure? Or maybe add a third box running smbd? Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] dc locator/site awareness, and samba-winbind-krb5-locator
Apologies, have I put this in the wrong place? Is this perhaps something I need to ask the technical list? Dan Johnson From: samba-boun...@lists.samba.org [samba-boun...@lists.samba.org] On Behalf Of Dan Johnson [d...@djjconsulting.com] Sent: 21 June 2012 12:42 To: samba@lists.samba.org Subject: [Samba] dc locator/site awareness, and samba-winbind-krb5-locator Hi all A couple of questions for you on domain integration: Firstly, can someone please explain to me where/how a samba device's site info is cached? I see from a trace that when winbind starts it goes through the usual process that a windows device does (DNS query for non site-specific SRV, LDAP query/response with site name, DNS query for site-specific SRV). -How is the site info cached? -How can the cache be refreshed? -Is it possible to manually set a site (like configuring the SiteName registry entry on a windows box) Secondly, I installed the samba-winbind-krb5-locator plugin (on Fedora), how can I tell this is actually working? It no longer queries DNS for the _kerberos or _kpasswd SRV records (cf windows client) so I am assuming it is working ok. However before I did the domain join, it was still doing default Kerberos behaviour (i.e. looking for _kerberos and_kerberos-master, with no site info requested). I couldn't see anything in the man pages for winbind. I am an AD person not a UNIX person so thanks in advance for any insights/top tips from samba gurus :) Dan Johnson -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 4 provisioning error on Ubuntu 12.04
On 25/06/12 13:12, Denis Cardon wrote: Hi Rowland, Well, after a bit of thought and downloading the kernel source from Ubuntu, I am answering my own question. I came across the same issue last week. Actually the newest kernel (wheezy/ ubuntu 12.04), the /proc/mounts does not show options that are setup by default in tune2fs (see the Default mount options below) [root@debian ~]# tune2fs -l /dev/xvda1 tune2fs 1.42.2 (9-Apr-2012) Filesystem volume name: none Last mounted on: / Filesystem UUID: 571f5042-f210-45a1-9385-e5caf2f86e8b Filesystem magic number: 0xEF53 Filesystem revision #:1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options:user_xattr acl If you want to have the acl flag displayed in /proc/mounts (and /etc/mtab which now finally symlinks to /proc/mounts), you have to remove the Default mount options with the command below and add the acl option in /etc/fstab : tune2fs -o ^acl /dev/xvda1 Cheers, Denis This is from the source file for the kernel that Ubuntu 12.04 uses (3.2.0-25) It comes from Documentation/filesystems/ext4.txt nouser_xattr Disables Extended User Attributes. If you have extended attribute support enabled in the kernel configuration (CONFIG_EXT4_FS_XATTR), extended attribute support is enabled by default on mount. See the attr(5) manual page and http://acl.bestbits.at/ for more information about extended attributes. noacl This option disables POSIX Access Control List support. If ACL support is enabled in the kernel configuration (CONFIG_EXT4_FS_POSIX_ACL), ACL is enabled by default on mount. See the acl(5) manual page and http://acl.bestbits.at/ for more information about acl. If I run: cat /boot/config-3.2.0-25-generic | grep CONFIG_EXT4 I get: CONFIG_EXT4_FS=y CONFIG_EXT4_FS_XATTR=y CONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y # CONFIG_EXT4_DEBUG is not set I would suggest that, as I thought, you do not have to add anything to /etc/fstab to get acl's, in fact you have to add something to turn them off. Rowland I always wondered how you found out what the defaults mount options were, could never find out via google, probably never asked just the right question ;-) But now I know, thanks Denis. Anyway, this just confirms what I said, on Ubuntu 12.04 you do not have to touch /etc/fstab to compile and install Samba4. Rowland -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Error Beta
Hello list, I have Samba4.0.0beta2-GIT-6440720, yesterday I run git pull for update my samba-master, the task was succeful, I read the step for update and everything work god, when i run smclient --version say me samba4 betta3, but but I found a great problem, my client windows xp, ubuntu, all do not loging to domain, I come back the version of beta 4 to beta 2 and everything is ok. I ask there is some problem with beta3? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 DC replication
On 26/06/2012 08:56, steve wrote: Hi We have just added a second DC to our existing domain. Replication is working fine. We have setup the second DC with bind DLZ and that too is working fine (except that the DNS partition is not replicated). So, we now have two DC's and so also two DNS servers. Question, Do I now have to go to every client and add the new IP for the new DNS? Cheers, Steve Just add the extra address to 'option domain-name-servers' in your dhcpd.conf file (comma separated list), unless of course all your clients are statically assigned. -- Any question is easy if you know the answer! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 Can we use two file-servers?
On 26/06/2012 09:04, steve wrote: Hi We've just added a second DC to our domain, both DCs are Samba4 DC1 is also the s3fs file server. If that goes down then so does the file-server. IOW, we can still authenticate via DC2 but we cannot do any work! What are my options here? Is it possible to sync the files to DC2 and use that in case of failure? Or maybe add a third box running smbd? Cheers, Steve It depends on your needs. For me, I use a couple of arm plugs as PDC BDC for authentiaction and dns etc and file serve files from elsewhere, also plugs. Where ever you serve files from, if that box goes down you lose your data/file serving capability. You can use (software or hardware) raid to provide redundancy for the disks and/or a complete backup device for full HA. -- Any question is easy if you know the answer! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 DC replication
On 26/06/12 11:45, Mike Howard wrote: On 26/06/2012 08:56, steve wrote: Hi We have just added a second DC to our existing domain. Replication is working fine. We have setup the second DC with bind DLZ and that too is working fine (except that the DNS partition is not replicated). So, we now have two DC's and so also two DNS servers. Question, Do I now have to go to every client and add the new IP for the new DNS? Cheers, Steve Just add the extra address to 'option domain-name-servers' in your dhcpd.conf file (comma separated list), unless of course all your clients are statically assigned. Thanks Mike Yes, I see. Our Linux clients are static and our windows boxes take their IP from a cheepo adsl router. I can't find an option inside the router to do that so it looks like the time has come to install a proper DHCP server. Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 Can we use two file-servers?
On 26/06/12 11:54, Mike Howard wrote: On 26/06/2012 09:04, steve wrote: Hi We've just added a second DC to our domain, both DCs are Samba4 DC1 is also the s3fs file server. If that goes down then so does the file-server. IOW, we can still authenticate via DC2 but we cannot do any work! What are my options here? Is it possible to sync the files to DC2 and use that in case of failure? Or maybe add a third box running smbd? Cheers, Steve It depends on your needs. For me, I use a couple of arm plugs as PDC BDC for authentiaction and dns etc and file serve files from elsewhere, also plugs. Where ever you serve files from, if that box goes down you lose your data/file serving capability. You can use (software or hardware) raid to provide redundancy for the disks and/or a complete backup device for full HA. Hi Mike Sorry, my English is over 30 years old! Can you give me a one liner on plugs and HA in a S4 context? We'd like to have a spare box with a backup of the data to substitute the DC/fileserver. What do you think about the possibility of syncing the data over to the secondary DC along with a copy of smb.conf and using that when the primary DC/fileserver goes down. Would the clients know to use the new fileserver: thinking about Kerberos here. Cheers Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba4 Can we use two file-servers?
To have your data high available put it on a replicating GLUSTER vol (glusterfs-as many Fileservers as you want). Or replicate it with drbd master master (if 2 DCs are the limitation) Good Luck Daniel --- EDV Daniel Müller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 Tübingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: muel...@tropenklinik.de Internet: www.tropenklinik.de --- -Ursprüngliche Nachricht- Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im Auftrag von steve Gesendet: Dienstag, 26. Juni 2012 12:23 An: samba@lists.samba.org Betreff: Re: [Samba] Samba4 Can we use two file-servers? On 26/06/12 11:54, Mike Howard wrote: On 26/06/2012 09:04, steve wrote: Hi We've just added a second DC to our domain, both DCs are Samba4 DC1 is also the s3fs file server. If that goes down then so does the file-server. IOW, we can still authenticate via DC2 but we cannot do any work! What are my options here? Is it possible to sync the files to DC2 and use that in case of failure? Or maybe add a third box running smbd? Cheers, Steve It depends on your needs. For me, I use a couple of arm plugs as PDC BDC for authentiaction and dns etc and file serve files from elsewhere, also plugs. Where ever you serve files from, if that box goes down you lose your data/file serving capability. You can use (software or hardware) raid to provide redundancy for the disks and/or a complete backup device for full HA. Hi Mike Sorry, my English is over 30 years old! Can you give me a one liner on plugs and HA in a S4 context? We'd like to have a spare box with a backup of the data to substitute the DC/fileserver. What do you think about the possibility of syncing the data over to the secondary DC along with a copy of smb.conf and using that when the primary DC/fileserver goes down. Would the clients know to use the new fileserver: thinking about Kerberos here. Cheers Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/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 Can we use two file-servers?
On 26/06/2012 11:22, steve wrote: On 26/06/12 11:54, Mike Howard wrote: On 26/06/2012 09:04, steve wrote: Hi We've just added a second DC to our domain, both DCs are Samba4 DC1 is also the s3fs file server. If that goes down then so does the file-server. IOW, we can still authenticate via DC2 but we cannot do any work! What are my options here? Is it possible to sync the files to DC2 and use that in case of failure? Or maybe add a third box running smbd? Cheers, Steve It depends on your needs. For me, I use a couple of arm plugs as PDC BDC for authentiaction and dns etc and file serve files from elsewhere, also plugs. Where ever you serve files from, if that box goes down you lose your data/file serving capability. You can use (software or hardware) raid to provide redundancy for the disks and/or a complete backup device for full HA. Hi Mike Sorry, my English is over 30 years old! Can you give me a one liner on plugs and HA in a S4 context? We'd like to have a spare box with a backup of the data to substitute the DC/fileserver. What do you think about the possibility of syncing the data over to the secondary DC along with a copy of smb.conf and using that when the primary DC/fileserver goes down. Would the clients know to use the new fileserver: thinking about Kerberos here. Cheers Steve Sorry, by plug I meant Sheevaplug/Dreamplug/Guruplug which arem compact, low power arm devices. HA is High Availability, put (over) simply, the provision of backup devices/components in case of failure. Daniel mentioned in another reply, you can use GlusterFS (NAS type approach) to aggregate your data (you still need somewhere to aggregate it to though) or replication if your restricted to the two DCs, though I've never tried that approach. In either case the switch (of where data is accessed) should be automated from a client perspective. Cheers, -- Any question is easy if you know the answer! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] freebsd - duplicate folders but one is not accessible
Hello List, I got called by a colleague last Friday to take a look at samba on an existing unix box, which turned out to be freebsd. Somehow I have managed to make it past a decade of computing without seeing freebsd. while it is different, it is not significantly so... This box was built by a gentleman who is not longer with the company that owns it. As best as I can tell, the windows workstations on the network create a new job, which in turn triggers something on the freebsd box. That something in turn creates a folder structure in the samba share (on the same box) and populates the folders with certain files. Then, the workstations launch an application which is supposed to let them open one of the files that gets placed in the automatically created folder structure. The problem is that when they try to open that file from the workstation application, they get an error that looks like a memory access violation. If I do a cp -Ra to replicate the folder, the windows application can open the file from the replicated folder. I can in fact copy the folder to the same directory in the same share, a different directory in the same share, a different share on the same box, or a different share on a different computer, the application on the workstations can open the file without error. So it seems there is something about the originally created folder structure that is causing the windows application to error out. I have compared the replicated directory in every detail I could think of to the original one. Both paths are well under 200 characters, so I don't think it is a path length problem. They both have the same owner/group, permissions, size, etc Windows shows no permissions on either the original or the replicated directory. The only difference I can find between the replicated directory and the original is that the windows application won't open the file if it is in the original directory. I have also checked the smb.conf file, the only thing I see in there that I haven't used before is some kind of recycle-bin setup, but based on the path configured for that, it should have nothing to do with what is happening in this one share. Everything points to a permissions issue, and all of my googling agrees. But none of my investigating brings up even one bit of evidence to support the hypothesis. Does anyone have any suggestions about what might be going on here? If you are still reading, thank you for taking the time :) -- Bob Miller 867-334-7117 / 867-633-3760 http://computerisms.ca b...@computerisms.ca Network, Internet, Server, and Open Source Solutions -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] rebind interface configuration in samba
Hi, I have a virtual IP which migrate from one server to another depending the server status. I have a problem with this behaviour and samba. When the IP migrates to another server, in the first server samba is stopped. When the IP is going to come back to the first server, samba is started and after that the IP come back. The problem is: Samba (smbd) doesn't bind the IP because it is configured after samba start. Is there a way to make samba rebind the interfaces of service to get the migrated IP after samba starting Regards, Moses. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] rebind interface configuration in samba
I do this in centos with ucarp. When the 1st service goes down the virt IP changes to the second and ucarp restarts samba with virt IP. Good Luck Daniel --- EDV Daniel Müller Leitung EDV Tropenklinik Paul-Lechler-Krankenhaus Paul-Lechler-Str. 24 72076 Tübingen Tel.: 07071/206-463, Fax: 07071/206-499 eMail: muel...@tropenklinik.de Internet: www.tropenklinik.de --- -Ursprüngliche Nachricht- Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im Auftrag von Moisés Barba Pérez Gesendet: Dienstag, 26. Juni 2012 14:02 An: samba@lists.samba.org Betreff: [Samba] rebind interface configuration in samba Hi, I have a virtual IP which migrate from one server to another depending the server status. I have a problem with this behaviour and samba. When the IP migrates to another server, in the first server samba is stopped. When the IP is going to come back to the first server, samba is started and after that the IP come back. The problem is: Samba (smbd) doesn't bind the IP because it is configured after samba start. Is there a way to make samba rebind the interfaces of service to get the migrated IP after samba starting Regards, Moses. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] unable to log on to Samba shares remotely
Dear, I have a working Samba 3.5.6 running on one of my servers onto which (existing) users can successfully log on. Recently, I needed to add some projects and some users but I cannot succeed in letting these new users access the shares. The smb.conf file is very small and I had only 4 users until now. In the following smb.conf, projA_dirs is only accessed by user1, while projB_dirs is the new project I need to add and this one will be accessed by user2 user1 is accessing projA_dirs since years without any problem, user2 is the one I fail to add. Contents of smb.conf: [global] workgroup = TECH_GRP server string = Samba %v on (%h) log level = 3 log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No ldap ssl = no hosts allow = 192.168.5., 192.168.4., 192.168.3., 192.168.100. [all_dirs] comment = All directories on Server1 path = / read only = No [projA_dirs] comment = All ProjectA directories on Server1 path = /disk/projA/prod read only = No [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No The initial samba setup was a migration from a Samba 2 server which used the smbpasswd file. In order to convert this into a tdbsam, I used the command pdbedit -i smbpasswd -e tdbsam at the time I set up the server. As written earlier in this mail, this never caused any problems. Now that I need user2 to access projB_dirs, I did the following: - Add projB_dirs to the smb.conf file - Ran pdbedit -a user2 and provided the password After having added the share and the user I could access the new share with the new user when working directly on the Samba server (server1). However, when I try to connect from another Samba 3.5.6 server or from a Windows XP PC I get respectively a session setup failed: NT_STATUS_LOGON_FAILURE or System error 1326 has occurred. Logon failure: unknown user name or bad password. error message. (there is no firewall blocking any ports between the servers or between the PC and server1) The output of pdbedit does not show any major differences for the two users to me: # ../bin/pdbedit -v -u user1 Unix username:user1 NT username: Account Flags:[UX ] User SID: S-1-5-21-1956562905-4024769754-4182693708-1500 Primary Group SID:S-1-5-21-1956562905-4024769754-4182693708-513 Full Name:user1 server1 Home Directory: \\server1\user1 HomeDir Drive: Logon Script: Profile Path: \\server1\user1\profile Domain: SERVER1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set:Tue, 26 Jun 2012 13:38:36 CEST Password can change: Tue, 26 Jun 2012 13:38:36 CEST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FF # ../bin/pdbedit -v -u user2 Unix username:user2 NT username: Account Flags:[UX ] User SID: S-1-5-21-1956562905-4024769754-4182693708-1004 Primary Group SID:S-1-5-21-1956562905-4024769754-4182693708-513 Full Name:user2 server1 Home Directory: \\server1\user2 HomeDir Drive: Logon Script: Profile Path: \\server1\user2\profile Domain: SERVER1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set:Tue, 19 Jun 2012 17:20:33 CEST Password can change: Tue, 19 Jun 2012 17:20:33 CEST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FF. Logging in with debug level 10 using smbclient from the other server gives me: ... got smb length of 35 size=35 smb_com=0x73 smb_rcls=109 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51203 smb_tid=0 smb_pid=12023 smb_uid=100 smb_mid=3 smt_wct=0 smb_bcc=0 Because I only had issues with the new users I added, I checked what would happen if I would remove user1 using pdbedit -x and then recreate that user using pdbedit -a. From that moment on I was also no longer able to log on with user1 remotely. As I thought there might be a problem inside the database I shut down smbd and nmbd, removed passdb.tdb and secrets.tdb, and restarted the daemons. This resulted in the two tdb files to be recreated after which I added user1 and user2 again using pdbedit -a. Again, I could only access the shares using either of these users directly from server1 but not from any of the other servers. Then I shut down the daemons again, restored the initial tdb files and restarted the daemons. With the initial tdb files back in place, I can login again remotely using user1 but not with user2 (even after I added the account again). Repeating my test
[Samba] multiple ldap branches
All: I have a samba server running on centos 6. samba version 3.5.10 I would like to authenticate against my ldap sever (openldap 2.3.43 on centos 5.8). I have this set up just fine on some of the samba servers that I am running. I am trying to bring a new samba server online that points to users on different branches of my ldap server. So, something like ou=People,ou=internal,dc=chem,dc=wisc,dc=edu ou=People,ou=external,dc=chem,dc=wisc,dc=edu What is the method for setting up the samba to point to both these branches for authentication? Thanks much alan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba 4 provisioning error on Ubuntu 12.04
Hi Rowland, Well, after a bit of thought and downloading the kernel source from Ubuntu, I am answering my own question. I came across the same issue last week. Actually the newest kernel (wheezy/ ubuntu 12.04), the /proc/mounts does not show options that are setup by default in tune2fs (see the Default mount options below) [root@debian ~]# tune2fs -l /dev/xvda1 tune2fs 1.42.2 (9-Apr-2012) Filesystem volume name: none Last mounted on: / Filesystem UUID: 571f5042-f210-45a1-9385-e5caf2f86e8b Filesystem magic number: 0xEF53 Filesystem revision #:1 (dynamic) Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Filesystem flags: signed_directory_hash Default mount options:user_xattr acl If you want to have the acl flag displayed in /proc/mounts (and /etc/mtab which now finally symlinks to /proc/mounts), you have to remove the Default mount options with the command below and add the acl option in /etc/fstab : tune2fs -o ^acl /dev/xvda1 Cheers, Denis This is from the source file for the kernel that Ubuntu 12.04 uses (3.2.0-25) It comes from Documentation/filesystems/ext4.txt nouser_xattr Disables Extended User Attributes. If you have extended attribute support enabled in the kernel configuration (CONFIG_EXT4_FS_XATTR), extended attribute support is enabled by default on mount. See the attr(5) manual page and http://acl.bestbits.at/ for more information about extended attributes. noacl This option disables POSIX Access Control List support. If ACL support is enabled in the kernel configuration (CONFIG_EXT4_FS_POSIX_ACL), ACL is enabled by default on mount. See the acl(5) manual page and http://acl.bestbits.at/ for more information about acl. If I run: cat /boot/config-3.2.0-25-generic | grep CONFIG_EXT4 I get: CONFIG_EXT4_FS=y CONFIG_EXT4_FS_XATTR=y CONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y # CONFIG_EXT4_DEBUG is not set I would suggest that, as I thought, you do not have to add anything to /etc/fstab to get acl's, in fact you have to add something to turn them off. Rowland -- Denis Cardon Tranquil IT Systems 44 bvd des pas enchantés 44230 Saint Sébastien sur Loire tel : +33 (0) 2.40.97.57.57 http://www.tranquil-it-systems.fr -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] home share disconnected / delayed write failure
Hello everybody, we have an annoying problem with our samba server randomly disconnecting the home shares. Our Application Data folders as well as Desktop are redirected to directories in the user's home folder outside .profiledata to avoid the copying during logon /logoff. From time to time clients get an error message Delayed Write Failed claiming a write error regarding the thunderbird or firefox profile. At the same time all Desktop symbols are disappearing. The issue can be worked around by logging out and in again. From wireshark network captures we can see the server sending an STATUS_INVALID_HANDLE is in response to a QUERY_FILE_INFO on the problem file. The setup: - OS Solaris11 / x86 - Samba 3.5.10 - some The server was recently updated from OpenSolaris running Samba 3.4.x any suggestions are really appreciated Thx Carsten Output from testparm is here: [global] dos charset = CP850 unix charset = CP850 display charset = LOCALE workgroup = MPI realm = netbios name = TUX netbios aliases = netbios scope = server string = Samba Fileserver interfaces = bind interfaces only = No security = USER auth methods = encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes map to guest = Never null passwords = No obey pam restrictions = No password server = * smb passwd file = /etc/samba/private/smbpasswd private dir = /etc/samba/private passdb backend = tdbsam:/etc/samba/private/passdb.tdb algorithmic rid base = 1000 root directory = guest account = nobody enable privileges = Yes pam password change = No passwd program = /opt/admin/passwd_global.sh %u passwd chat = *New\sPassword:* %n\n *Re-enter\snew\sPassword:* %n\n passwd chat debug = No passwd chat timeout = 2 check password script = /opt/admin/crackcheck -d /usr/local/share/cracklib/pw_dict username map = password level = 0 username level = 0 unix password sync = Yes restrict anonymous = 0 lanman auth = Yes ntlm auth = Yes client NTLMv2 auth = No client lanman auth = Yes client plaintext auth = Yes client use spnego principal = No preload modules = dedicated keytab file = kerberos method = default map untrusted to domain = Yes log level = 1 syslog = 1 syslog only = No log file = /var/log/samba/log.%m max log size = 1000 debug timestamp = Yes debug prefix timestamp = No debug hires timestamp = Yes debug pid = No debug uid = No debug class = No enable core files = Yes smb ports = 139 445 large readwrite = Yes max protocol = NT1 min protocol = CORE min receivefile size = 0 read raw = Yes write raw = Yes disable netbios = No reset on zero vc = No acl compatibility = auto defer sharing violations = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts hosts wins bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = Yes unix extensions = Yes use spnego = Yes client signing = No server signing = No client use spnego = Yes client ldap sasl wrapping = plain enable asu support = No svcctl list = deadtime = 60 getwd cache = Yes keepalive = 300 lpq cache time = 30 max smbd processes = 0 paranoid server security = Yes max disk size = 0 max open files = 32808 socket options = TCP_NODELAY use mmap = Yes hostname lookups = No name cache timeout = 660 ctdbd socket = cluster addresses = clustering = No ctdb timeout = 0 load printers = Yes printcap cache time = 750 printcap name = cups server = cups encrypt = No cups connection timeout = 30 iprint server = disable spoolss = No addport command = enumports command = addprinter command = deleteprinter command = show add printer wizard = Yes os2 driver map = mangling method = hash2 mangle prefix = 1 max stat cache size = 256 stat cache = Yes machine password timeout = 604800 add user script = rename user script = delete user script = add group script =
Re: [Samba] unable to log on to Samba shares remotely
When you say remotely you mean from another computer. Or do you mean from another subnet? If you recreated both samba accounts, and the two accounts behave differently, then the problem may be in the underlying unix account. Are the unix accounts defined in /etc/passwd? I also find it interesting that the two users do NOT have user SID's that are sequential (or at least in a closer range.) Are you using idmap to allocate Can you run #wbinfo -n user1 #wbinfo -n user2 This will show the user sids of the users # wbinfo -s sid_of_user_one # wbinfo -s sid_of_user_two The name-to-sid and sid-to-name assignment should match up. Also try the following #id user1 # id YOURDOMAIN\user1 (if you are using winbind) #id user2 # id YOURDOMAIN\user2 On 06/26/12 08:25, Claesen Dirk wrote: Dear, I have a working Samba 3.5.6 running on one of my servers onto which (existing) users can successfully log on. Recently, I needed to add some projects and some users but I cannot succeed in letting these new users access the shares. The smb.conf file is very small and I had only 4 users until now. In the following smb.conf, projA_dirs is only accessed by user1, while projB_dirs is the new project I need to add and this one will be accessed by user2 user1 is accessing projA_dirs since years without any problem, user2 is the one I fail to add. Contents of smb.conf: [global] workgroup = TECH_GRP server string = Samba %v on (%h) log level = 3 log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No ldap ssl = no hosts allow = 192.168.5., 192.168.4., 192.168.3., 192.168.100. [all_dirs] comment = All directories on Server1 path = / read only = No [projA_dirs] comment = All ProjectA directories on Server1 path = /disk/projA/prod read only = No [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No The initial samba setup was a migration from a Samba 2 server which used the smbpasswd file. In order to convert this into a tdbsam, I used the command pdbedit -i smbpasswd -e tdbsam at the time I set up the server. As written earlier in this mail, this never caused any problems. Now that I need user2 to access projB_dirs, I did the following: - Add projB_dirs to the smb.conf file - Ran pdbedit -a user2 and provided the password After having added the share and the user I could access the new share with the new user when working directly on the Samba server (server1). However, when I try to connect from another Samba 3.5.6 server or from a Windows XP PC I get respectively a session setup failed: NT_STATUS_LOGON_FAILURE or System error 1326 has occurred. Logon failure: unknown user name or bad password. error message. (there is no firewall blocking any ports between the servers or between the PC and server1) The output of pdbedit does not show any major differences for the two users to me: # ../bin/pdbedit -v -u user1 Unix username:user1 NT username: Account Flags:[UX ] User SID: S-1-5-21-1956562905-4024769754-4182693708-1500 Primary Group SID:S-1-5-21-1956562905-4024769754-4182693708-513 Full Name:user1 server1 Home Directory: \\server1\user1 HomeDir Drive: Logon Script: Profile Path: \\server1\user1\profile Domain: SERVER1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set:Tue, 26 Jun 2012 13:38:36 CEST Password can change: Tue, 26 Jun 2012 13:38:36 CEST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FF # ../bin/pdbedit -v -u user2 Unix username:user2 NT username: Account Flags:[UX ] User SID: S-1-5-21-1956562905-4024769754-4182693708-1004 Primary Group SID:S-1-5-21-1956562905-4024769754-4182693708-513 Full Name:user2 server1 Home Directory: \\server1\user2 HomeDir Drive: Logon Script: Profile Path: \\server1\user2\profile Domain: SERVER1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set:Tue, 19 Jun 2012 17:20:33 CEST Password can change: Tue, 19 Jun 2012 17:20:33 CEST Password must change: never Last bad password : 0 Bad password count : 0 Logon hours : FF. Logging in with debug level 10 using smbclient from the other server gives me: ... got smb length of 35 size=35 smb_com=0x73 smb_rcls=109 smb_reh=0 smb_err=49152 smb_flg=136 smb_flg2=51203 smb_tid=0
Re: [Samba] unable to log on to Samba shares remotely
Thanks for the quick reply! The server from which I tried to connect remotely is located within the same subnet. The Windows PC is in another subnet. All users exist since years in the /etc/passwd file. The four users that were using the shares successfully in the past have UID 200, 230, 250 and 300. (user1 is one of these users) The two users I need to add have UID 350 and 400. (user2 is one of these) Each of these users is in a different Unix group. User1 for which I included the output of pdbedit has UID 250, user2 has UID 350. I cannot run wbinfo for these users as I'm not using winbind. Pdbedit returns SIDs 1400, 1460, 1500 and 1600 for the old Samba users and 1004 and 1005 for the two users I tried to add. I also ran the id command for the users but that gave the same UID as the ones I extracted directly from the passwd file. Is there anything else I can check? Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Gaiseric Vandal Sent: 26 June 2012 15:59 To: samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely When you say remotely you mean from another computer. Or do you mean from another subnet? If you recreated both samba accounts, and the two accounts behave differently, then the problem may be in the underlying unix account. Are the unix accounts defined in /etc/passwd? I also find it interesting that the two users do NOT have user SID's that are sequential (or at least in a closer range.) Are you using idmap to allocate Can you run #wbinfo -n user1 #wbinfo -n user2 This will show the user sids of the users # wbinfo -s sid_of_user_one # wbinfo -s sid_of_user_two The name-to-sid and sid-to-name assignment should match up. Also try the following #id user1 # id YOURDOMAIN\user1 (if you are using winbind) #id user2 # id YOURDOMAIN\user2 On 06/26/12 08:25, Claesen Dirk wrote: Dear, I have a working Samba 3.5.6 running on one of my servers onto which (existing) users can successfully log on. Recently, I needed to add some projects and some users but I cannot succeed in letting these new users access the shares. The smb.conf file is very small and I had only 4 users until now. In the following smb.conf, projA_dirs is only accessed by user1, while projB_dirs is the new project I need to add and this one will be accessed by user2 user1 is accessing projA_dirs since years without any problem, user2 is the one I fail to add. Contents of smb.conf: [global] workgroup = TECH_GRP server string = Samba %v on (%h) log level = 3 log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No ldap ssl = no hosts allow = 192.168.5., 192.168.4., 192.168.3., 192.168.100. [all_dirs] comment = All directories on Server1 path = / read only = No [projA_dirs] comment = All ProjectA directories on Server1 path = /disk/projA/prod read only = No [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No The initial samba setup was a migration from a Samba 2 server which used the smbpasswd file. In order to convert this into a tdbsam, I used the command pdbedit -i smbpasswd -e tdbsam at the time I set up the server. As written earlier in this mail, this never caused any problems. Now that I need user2 to access projB_dirs, I did the following: - Add projB_dirs to the smb.conf file - Ran pdbedit -a user2 and provided the password After having added the share and the user I could access the new share with the new user when working directly on the Samba server (server1). However, when I try to connect from another Samba 3.5.6 server or from a Windows XP PC I get respectively a session setup failed: NT_STATUS_LOGON_FAILURE or System error 1326 has occurred. Logon failure: unknown user name or bad password. error message. (there is no firewall blocking any ports between the servers or between the PC and server1) The output of pdbedit does not show any major differences for the two users to me: # ../bin/pdbedit -v -u user1 Unix username:user1 NT username: Account Flags:[UX ] User SID: S-1-5-21-1956562905-4024769754-4182693708-1500 Primary Group SID:S-1-5-21-1956562905-4024769754-4182693708-513 Full Name:user1 server1 Home Directory: \\server1\user1 HomeDir Drive: Logon Script: Profile Path: \\server1\user1\profile Domain: SERVER1 Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: never Kickoff time: never Password last set:Tue, 26 Jun 2012 13:38:36 CEST Password can change: Tue, 26 Jun 2012 13:38:36 CEST Password must
Re: [Samba] unable to log on to Samba shares remotely
Some additional information, should this be helpful. Our servers are all on subnet 192.168.5 and are running Solaris 10, Windows PCs are on 192.168.3. I didn't use any kind of mapping when creating the accounts. All I used was pdbedit -a without any other parameter specified. The global section of the smb.conf I included contains all lines that are entered. Security = USER is therefore what we use. Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Claesen Dirk Sent: 26 June 2012 16:19 To: gaiseric.van...@gmail.com; samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely Thanks for the quick reply! The server from which I tried to connect remotely is located within the same subnet. The Windows PC is in another subnet. All users exist since years in the /etc/passwd file. The four users that were using the shares successfully in the past have UID 200, 230, 250 and 300. (user1 is one of these users) The two users I need to add have UID 350 and 400. (user2 is one of these) Each of these users is in a different Unix group. User1 for which I included the output of pdbedit has UID 250, user2 has UID 350. I cannot run wbinfo for these users as I'm not using winbind. Pdbedit returns SIDs 1400, 1460, 1500 and 1600 for the old Samba users and 1004 and 1005 for the two users I tried to add. I also ran the id command for the users but that gave the same UID as the ones I extracted directly from the passwd file. Is there anything else I can check? Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Gaiseric Vandal Sent: 26 June 2012 15:59 To: samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely When you say remotely you mean from another computer. Or do you mean from another subnet? If you recreated both samba accounts, and the two accounts behave differently, then the problem may be in the underlying unix account. Are the unix accounts defined in /etc/passwd? I also find it interesting that the two users do NOT have user SID's that are sequential (or at least in a closer range.) Are you using idmap to allocate Can you run #wbinfo -n user1 #wbinfo -n user2 This will show the user sids of the users # wbinfo -s sid_of_user_one # wbinfo -s sid_of_user_two The name-to-sid and sid-to-name assignment should match up. Also try the following #id user1 # id YOURDOMAIN\user1 (if you are using winbind) #id user2 # id YOURDOMAIN\user2 On 06/26/12 08:25, Claesen Dirk wrote: Dear, I have a working Samba 3.5.6 running on one of my servers onto which (existing) users can successfully log on. Recently, I needed to add some projects and some users but I cannot succeed in letting these new users access the shares. The smb.conf file is very small and I had only 4 users until now. In the following smb.conf, projA_dirs is only accessed by user1, while projB_dirs is the new project I need to add and this one will be accessed by user2 user1 is accessing projA_dirs since years without any problem, user2 is the one I fail to add. Contents of smb.conf: [global] workgroup = TECH_GRP server string = Samba %v on (%h) log level = 3 log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No ldap ssl = no hosts allow = 192.168.5., 192.168.4., 192.168.3., 192.168.100. [all_dirs] comment = All directories on Server1 path = / read only = No [projA_dirs] comment = All ProjectA directories on Server1 path = /disk/projA/prod read only = No [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No The initial samba setup was a migration from a Samba 2 server which used the smbpasswd file. In order to convert this into a tdbsam, I used the command pdbedit -i smbpasswd -e tdbsam at the time I set up the server. As written earlier in this mail, this never caused any problems. Now that I need user2 to access projB_dirs, I did the following: - Add projB_dirs to the smb.conf file - Ran pdbedit -a user2 and provided the password After having added the share and the user I could access the new share with the new user when working directly on the Samba server (server1). However, when I try to connect from another Samba 3.5.6 server or from a Windows XP PC I get respectively a session setup failed: NT_STATUS_LOGON_FAILURE or System error 1326 has occurred. Logon failure: unknown user name or bad password. error message. (there is no firewall blocking any ports between the servers or between the PC and server1) The output of pdbedit does not show any major differences for
Re: [Samba] unable to log on to Samba shares remotely
I did some extra tests and cleared the password of user2. (I ran smbpasswd user2 and clicked twice on enter without entering any password.) In addition I allowed guests to log in on the new share [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No guest ok = Yes After these two changes I can log in with user2 on projB_dirs either locally or remotely from the second server, but not from the Windows XP PC. (Perhaps net use cannot pass an empty password?) For me this implies the connection is basically working but could it be different encryption techniques for the password are used on the remote client and my Samba server? Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Claesen Dirk Sent: 26 June 2012 17:04 To: gaiseric.van...@gmail.com; samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely Some additional information, should this be helpful. Our servers are all on subnet 192.168.5 and are running Solaris 10, Windows PCs are on 192.168.3. I didn't use any kind of mapping when creating the accounts. All I used was pdbedit -a without any other parameter specified. The global section of the smb.conf I included contains all lines that are entered. Security = USER is therefore what we use. Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Claesen Dirk Sent: 26 June 2012 16:19 To: gaiseric.van...@gmail.com; samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely Thanks for the quick reply! The server from which I tried to connect remotely is located within the same subnet. The Windows PC is in another subnet. All users exist since years in the /etc/passwd file. The four users that were using the shares successfully in the past have UID 200, 230, 250 and 300. (user1 is one of these users) The two users I need to add have UID 350 and 400. (user2 is one of these) Each of these users is in a different Unix group. User1 for which I included the output of pdbedit has UID 250, user2 has UID 350. I cannot run wbinfo for these users as I'm not using winbind. Pdbedit returns SIDs 1400, 1460, 1500 and 1600 for the old Samba users and 1004 and 1005 for the two users I tried to add. I also ran the id command for the users but that gave the same UID as the ones I extracted directly from the passwd file. Is there anything else I can check? Kind regards, Dirk Claesen -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Gaiseric Vandal Sent: 26 June 2012 15:59 To: samba@lists.samba.org Subject: Re: [Samba] unable to log on to Samba shares remotely When you say remotely you mean from another computer. Or do you mean from another subnet? If you recreated both samba accounts, and the two accounts behave differently, then the problem may be in the underlying unix account. Are the unix accounts defined in /etc/passwd? I also find it interesting that the two users do NOT have user SID's that are sequential (or at least in a closer range.) Are you using idmap to allocate Can you run #wbinfo -n user1 #wbinfo -n user2 This will show the user sids of the users # wbinfo -s sid_of_user_one # wbinfo -s sid_of_user_two The name-to-sid and sid-to-name assignment should match up. Also try the following #id user1 # id YOURDOMAIN\user1 (if you are using winbind) #id user2 # id YOURDOMAIN\user2 On 06/26/12 08:25, Claesen Dirk wrote: Dear, I have a working Samba 3.5.6 running on one of my servers onto which (existing) users can successfully log on. Recently, I needed to add some projects and some users but I cannot succeed in letting these new users access the shares. The smb.conf file is very small and I had only 4 users until now. In the following smb.conf, projA_dirs is only accessed by user1, while projB_dirs is the new project I need to add and this one will be accessed by user2 user1 is accessing projA_dirs since years without any problem, user2 is the one I fail to add. Contents of smb.conf: [global] workgroup = TECH_GRP server string = Samba %v on (%h) log level = 3 log file = /usr/local/samba/var/log.%m max log size = 50 dns proxy = No ldap ssl = no hosts allow = 192.168.5., 192.168.4., 192.168.3., 192.168.100. [all_dirs] comment = All directories on Server1 path = / read only = No [projA_dirs] comment = All ProjectA directories on Server1 path = /disk/projA/prod read only = No [projB_dirs] comment = All ProjectB directories on Server1 path = /disk/projB/prod read only = No
[Samba] Trying to update samba
I have a server running samba-3.0.9-1.3E.10. And I'm trying to update that so I can now add windows 7 pcs to my network. The server is a Dell Poweredge 2850 running Red Hat Enterprise Linux EX release 3 (taroon update 8). It's also running Webmin version 1.580. I wanted to download the update as an .rmp thinking it would be easier and I would be able to run it from my webmin command line. I went to http://rpmfind.net/linux/rpm2html/search.php?query=samba to the .rmp. I wasn't sure which one to try so I tried a few. I would like to stay away fedora if possible. I ran the rmp from my command shell using rpm -U command. That ended up giving me the error error: Failed dependencies: libacl.so.1(ACL_1.0) is needed by samba-3.6.3-34.12.1 libattr.so.1(ATTR_1.0) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.11) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.3.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.5) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.6) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.8) is needed by samba-3.6.3-34.12.1 libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by samba-3.6.3-34.12.1 libk5crypto.so.3(k5crypto_3_MIT) is needed by samba-3.6.3-34.12.1 libkrb5.so.3(krb5_3_MIT) is needed by samba-3.6.3-34.12.1 liblber-2.4.so.2 is needed by samba-3.6.3-34.12.1 libldap-2.4.so.2 is needed by samba-3.6.3-34.12.1 libnscd.so.1 is needed by samba-3.6.3-34.12.1 libnscd.so.1(LIBNSCD_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_EXTENSION_1.0) is needed by samba-3.6.3-34.12.1 libpopt.so.0(LIBPOPT_0) is needed by samba-3.6.3-34.12.1 libtalloc.so.2 is needed by samba-3.6.3-34.12.1 libtdb.so.1 is needed by samba-3.6.3-34.12.1 libwbclient.so.0 is needed by samba-3.6.3-34.12.1 samba-client = 3.6.3 is needed by samba-3.6.3-34.12.1 rpmlib(PayloadIsLzma) = 4.4.6-1 is needed by samba-3.6.3-34.12.1 Then I tried rpm -U --nodeps. The new error message I received was error: unpacking of archive failed: cpio: Bad magic I'm not really familiar with this os so any help would greatly be appreciated. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Fwd: Trying to update samba
Typically, RPM's from RedHat or Fedora are pretty dependent on glibc and other system libraries. Newer version of RedHat will have newer versions of glibc, so the official packages are often not compatible with older versions. Sernet may have precompiled RPM's that may be useful. http://sernet.de/en/samba/samba-3/ If not you will probably need to compile from source. Or move to a newer version of RHEL. Original Message Subject:[Samba] Trying to update samba Date: Tue, 26 Jun 2012 10:45:55 -0500 (CDT) From: j...@brewtoncityschools.org To: samba@lists.samba.org I have a server running samba-3.0.9-1.3E.10. And I'm trying to update that so I can now add windows 7 pcs to my network. The server is a Dell Poweredge 2850 running Red Hat Enterprise Linux EX release 3 (taroon update 8). It's also running Webmin version 1.580. I wanted to download the update as an .rmp thinking it would be easier and I would be able to run it from my webmin command line. I went to http://rpmfind.net/linux/rpm2html/search.php?query=samba to the .rmp. I wasn't sure which one to try so I tried a few. I would like to stay away fedora if possible. I ran the rmp from my command shell using rpm -U command. That ended up giving me the error error: Failed dependencies: libacl.so.1(ACL_1.0) is needed by samba-3.6.3-34.12.1 libattr.so.1(ATTR_1.0) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.11) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.3.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.5) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.6) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.8) is needed by samba-3.6.3-34.12.1 libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by samba-3.6.3-34.12.1 libk5crypto.so.3(k5crypto_3_MIT) is needed by samba-3.6.3-34.12.1 libkrb5.so.3(krb5_3_MIT) is needed by samba-3.6.3-34.12.1 liblber-2.4.so.2 is needed by samba-3.6.3-34.12.1 libldap-2.4.so.2 is needed by samba-3.6.3-34.12.1 libnscd.so.1 is needed by samba-3.6.3-34.12.1 libnscd.so.1(LIBNSCD_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_EXTENSION_1.0) is needed by samba-3.6.3-34.12.1 libpopt.so.0(LIBPOPT_0) is needed by samba-3.6.3-34.12.1 libtalloc.so.2 is needed by samba-3.6.3-34.12.1 libtdb.so.1 is needed by samba-3.6.3-34.12.1 libwbclient.so.0 is needed by samba-3.6.3-34.12.1 samba-client = 3.6.3 is needed by samba-3.6.3-34.12.1 rpmlib(PayloadIsLzma) = 4.4.6-1 is needed by samba-3.6.3-34.12.1 Then I tried rpm -U --nodeps. The new error message I received was error: unpacking of archive failed: cpio: Bad magic I'm not really familiar with this os so any help would greatly be appreciated. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Fwd: Trying to update samba
If you don't want to spend money on RHEL, you can always look at CentOS (which is a clone of RHEL) or Fedora. I don't now if you can do an upgrade installation from RHEL to CentOS or Fedora. I think not. But since either OS will support the ext3 file system used by RHEL, you should be able to backup your configuration files, install RHEL or Fedora while preserving your data partitions. Nt. I found out the hard way that Fedora does NOT necessarily support the same firmware raid drivers as RHEL. Make sure you have backup of your data just in case. On 06/26/12 13:01, j...@brewtoncityschools.org wrote: Thanks I'll check and see what a newer version of RHEL is going to cost me. I was thinking that was the problem. I'll also look into Sernet. Thanks again Typically, RPM's from RedHat or Fedora are pretty dependent on glibc and other system libraries. Newer version of RedHat will have newer versions of glibc, so the official packages are often not compatible with older versions. Sernet may have precompiled RPM's that may be useful. http://sernet.de/en/samba/samba-3/ If not you will probably need to compile from source. Or move to a newer version of RHEL. Original Message Subject: [Samba] Trying to update samba Date:Tue, 26 Jun 2012 10:45:55 -0500 (CDT) From:j...@brewtoncityschools.org To: samba@lists.samba.org I have a server running samba-3.0.9-1.3E.10. And I'm trying to update that so I can now add windows 7 pcs to my network. The server is a Dell Poweredge 2850 running Red Hat Enterprise Linux EX release 3 (taroon update 8). It's also running Webmin version 1.580. I wanted to download the update as an .rmp thinking it would be easier and I would be able to run it from my webmin command line. I went to http://rpmfind.net/linux/rpm2html/search.php?query=samba to the .rmp. I wasn't sure which one to try so I tried a few. I would like to stay away fedora if possible. I ran the rmp from my command shell using rpm -U command. That ended up giving me the error error: Failed dependencies: libacl.so.1(ACL_1.0) is needed by samba-3.6.3-34.12.1 libattr.so.1(ATTR_1.0) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.11) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.3.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.4) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.5) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.6) is needed by samba-3.6.3-34.12.1 libc.so.6(GLIBC_2.8) is needed by samba-3.6.3-34.12.1 libgssapi_krb5.so.2(gssapi_krb5_2_MIT) is needed by samba-3.6.3-34.12.1 libk5crypto.so.3(k5crypto_3_MIT) is needed by samba-3.6.3-34.12.1 libkrb5.so.3(krb5_3_MIT) is needed by samba-3.6.3-34.12.1 liblber-2.4.so.2 is needed by samba-3.6.3-34.12.1 libldap-2.4.so.2 is needed by samba-3.6.3-34.12.1 libnscd.so.1 is needed by samba-3.6.3-34.12.1 libnscd.so.1(LIBNSCD_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_1.0) is needed by samba-3.6.3-34.12.1 libpam.so.0(LIBPAM_EXTENSION_1.0) is needed by samba-3.6.3-34.12.1 libpopt.so.0(LIBPOPT_0) is needed by samba-3.6.3-34.12.1 libtalloc.so.2 is needed by samba-3.6.3-34.12.1 libtdb.so.1 is needed by samba-3.6.3-34.12.1 libwbclient.so.0 is needed by samba-3.6.3-34.12.1 samba-client = 3.6.3 is needed by samba-3.6.3-34.12.1 rpmlib(PayloadIsLzma) = 4.4.6-1 is needed by samba-3.6.3-34.12.1 Then I tried rpm -U --nodeps. The new error message I received was error: unpacking of archive failed: cpio: Bad magic I'm not really familiar with this os so any help would greatly be appreciated. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Fwd: Trying to update samba
Hi! On 06/26/2012 06:40 PM, Gaiseric Vandal wrote: Sernet may have precompiled RPM's that may be useful. http://sernet.de/en/samba/samba-3/ We stopped building packages for RHEL3. So you'll not get updates anymore. But there is still a more or less recent version of samba 3.5 for rhel3: http://ftp.sernet.de/pub/samba/old/rhel/3/i386/3.5.14-44/ But you will need to install all needed dependencies for these packages. Best regards Björn -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Trying to update samba
j...@brewtoncityschools.org wrote: I have a server running samba-3.0.9-1.3E.10. And I'm trying to update that so I can now add windows 7 pcs to my network. The server is a Dell Poweredge 2850 running Red Hat Enterprise Linux EX release 3 (taroon update 8). It's also running Webmin version 1.580. I wanted to download the update as an .rmp thinking it would be easier and I would be able to run it from my webmin command line. I went to http://rpmfind.net/linux/rpm2html/search.php?query=samba to the .rmp. I wasn't sure which one to try so I tried a few. I would like to stay away fedora if possible. I ran the rmp from my command shell using rpm -U command. That ended up giving me the error You need to update to a more recent release of RHEL than 3.8. Even the RHEL 4 series has now had support discontinued. RHEL 5 or 6 (or CentOS) will support a PowerEdge 2850 out the box. Trying to find some RPM to install or even compiling from source on an ancient version of RHEL that will have a whole bunch of other vulnerabilities is extremely unwise to say the very least. JAB. -- Jonathan A. Buzzard Email: jonathan (at) buzzard.me.uk Fife, United Kingdom. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Can create files from share but only delete as root
Fellow List Members: After upgrading our server to RHEL 6 from RHEL 5, I discovered that our linux clients could create files on the share but not delete them unless they first switch to root (su -). This is very odd to me since the share in question is mounted with the non-root user's credentials. The fstab entry is as follows: //192.168.1.2/officefiles /mnt/officefiles cifs username=joe,password=fakepwd 0 0 Now, the version of samba on the server is 3.5.10 and on the client is 3.5.4. I can't upgrade the client w/o difficulty since it is an expired distribution (OpenSuSE 11.3). The smb conf forces full permissions on files and directories. Here is the share: [officefiles] force create mode = 777 create mode = 777 path = /cool/officefiles force directory mode = 777 directory mode = 777 And, the mount owner also belongs to the cool_users group on the server: drwxrwxr-x 25 jimcool_users 4096 Jun 26 14:26 officefiles Notice, there is no sticky bit on the directory. Now, if I add the user option after installing setuid on /bin/mount and /sbin/mount.cifs, I can mount the share as joe and delete files to my heart's content. So, I am wondering if this is by design so that if I want the user to be able to delete from the share, they need to not only have linux and samba permissions but also be the user that mounts the share. If this is not the design, PLEASE tell me what I am missing. Here is the global section of the smb.conf for good measure: [global] log file = /var/log/samba/%m.log load printers = yes idmap gid = 16777216-33554431 socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192 username map = /etc/samba/smbusers winbind use default domain = no template shell = /bin/false dns proxy = no oplocks = no cups options = raw netbios name = cool-server delete readonly = yes writeable = yes server string = Samba Server password server = None idmap uid = 16777216-33554431 workgroup = COOL os level = 20 printcap name = /etc/printcap create mode = 775 short preserve case = no max log size = 50 directory mode = 775 Thanks. -- David J. Rericha Project Manager Open Software Solutions, LLC -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Error building samba-4.0.0beta2 on Solaris 10 update 9
Hello, When attempting to build samba-4.0.0beta2 on Solaris 10 update 9, the following error is produced: [ 530/3371] Compiling lib/tdb/test/external-agent.c ../lib/tdb/test/external-agent.c:7:17: error: err.h: No such file or directory Waf: Leaving directory `/usr/local/src/samba-4.0.0beta2/bin' Build failed: - task failed (err #1): {task: cc external-agent.c - external-agent_17.o} *** Error code 1 make: Fatal error: Command failed for target `all' I've seen some postings regarding something similar on samba-technical, but they seemed to imply the issue had been fixed. What have I missed? ./configure --prefix=/opt/samba -- Tom. -- Tom Crummey, Infrastructure Manager, EMAIL: t...@ee.ucl.ac.uk Dept. of Electronic and Electrical Engineering, University College London, Roberts Building, TEL: +44 (0)20 7679 3898 Torrington Place, FAX: +44 (0)20 7388 9325 London, UK, WC1E 7JE. -- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Winbind AD nested group issues
Dear fellow samba users, I have a weird issue. I’ve installed winbind 3.6.5 from the debian backports archive and joined is to an AD. Wbinfo –u is ginving me all domain users. Wbinfo –r is giving me the groups a user is members of but here comes the weird thing. Of some users it gives all Groups including nestedm but some are only returning 1 group. Hereby some info from winbindd.log debug level 10: [2012/06/25 14:53:03.203496, 6] winbindd/winbindd.c:792(new_connection) accepted socket 25 [2012/06/25 14:53:03.203726, 10] winbindd/winbindd.c:642(process_request) process_request: request fn INTERFACE_VERSION [2012/06/25 14:53:03.203830, 3] winbindd/winbindd_misc.c:384(winbindd_interface_version) [13843]: request interface version [2012/06/25 14:53:03.203931, 10] winbindd/winbindd.c:738(winbind_client_response_written) winbind_client_response_written[13843:INTERFACE_VERSION]: delivered response to client [2012/06/25 14:53:03.204102, 10] winbindd/winbindd.c:642(process_request) process_request: request fn WINBINDD_PRIV_PIPE_DIR [2012/06/25 14:53:03.204181, 3] winbindd/winbindd_misc.c:417(winbindd_priv_pipe_dir) [13843]: request location of privileged pipe [2012/06/25 14:53:03.204287, 10] winbindd/winbindd.c:738(winbind_client_response_written) winbind_client_response_written[13843:WINBINDD_PRIV_PIPE_DIR]: delivered response to client [2012/06/25 14:53:03.204470, 6] winbindd/winbindd.c:792(new_connection) accepted socket 32 [2012/06/25 14:53:03.204606, 6] winbindd/winbindd.c:840(winbind_client_request_read) closing socket 25, client exited [2012/06/25 14:53:03.204760, 10] winbindd/winbindd.c:615(process_request) process_request: Handling async request 13843:GETGROUPS [2012/06/25 14:53:03.204845, 3] winbindd/winbindd_getgroups.c:61(winbindd_getgroups_send) getgroups lars [2012/06/25 14:53:03.204928, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupName: struct wbint_LookupName in: struct wbint_LookupName domain : * domain : 'SKYNET' name : * name : 'LARS' flags: 0x0008 (8) [2012/06/25 14:53:03.205243, 10] winbindd/winbindd_cache.c:4894(wcache_fetch_ndr) Entry has wrong sequence number: 131268 [2012/06/25 14:53:03.213909, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupName: struct wbint_LookupName out: struct wbint_LookupName type : * type : SID_NAME_USER (1) sid : * sid : S-1-5-21-3711188520-3956494374-1303323322-1125 result : NT_STATUS_OK [2012/06/25 14:53:03.214189, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupUserGroups: struct wbint_LookupUserGroups in: struct wbint_LookupUserGroups sid : * sid : S-1-5-21-3711188520-3956494374-1303323322-1125 [2012/06/25 14:53:03.214387, 10] winbindd/winbindd_cache.c:4894(wcache_fetch_ndr) Entry has wrong sequence number: 131268 [2012/06/25 14:53:03.221577, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupUserGroups: struct wbint_LookupUserGroups out: struct wbint_LookupUserGroups sids : * sids: struct wbint_SidArray num_sids : 0x0001 (1) sids: ARRAY(1) sids : S-1-5-21-3711188520-3956494374-1303323322-513 result : NT_STATUS_OK [2012/06/25 14:53:03.221888, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupUserAliases: struct wbint_LookupUserAliases in: struct wbint_LookupUserAliases sids : * sids: struct wbint_SidArray num_sids : 0x0002 (2) sids: ARRAY(2) sids : S-1-5-21-3711188520-3956494374-1303323322-1125 sids : S-1-5-21-3711188520-3956494374-1303323322-513 [2012/06/25 14:53:03.234275, 1] ../librpc/ndr/ndr.c:284(ndr_print_function_debug) wbint_LookupUserAliases: struct wbint_LookupUserAliases out: struct wbint_LookupUserAliases rids : * rids: struct wbint_RidArray num_rids : 0x (0) rids: ARRAY(0) result : NT_STATUS_OK [2012/06/25 14:53:03.234549, 1]
[Samba] winbind AD nested group issues
smime.p7s Description: S/MIME cryptographic signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] DNS issue.
Hi All; Can any one help me, i am facing DNS related issue. this is my configuration. Centos 6.2 32bit OS samba4beta3 bind-9.8.3-P1 First i configure samba4 as a domain controller. then i configure other machine as a Additional domain controller, with samba4. but when i run this command it give errors. /usr/local/samba/bin/samba-tool drs showrepl Default-First-Site-Name\PDC DSA Options: 0x0001 DSA object GUID: 56003cd3-d15b-4825-915f-37b9e2952f2a DSA invocationId: ec8a9ed7-ce1a-449e-8321-97c715375445 INBOUND NEIGHBORS DC=DomainDnsZones,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:51:47 2012 IST failed, result 2 (WERR_BADFILE) 216 consecutive failure(s). Last success @ NTTIME(0) DC=ForestDnsZones,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:51:47 2012 IST failed, result 2 (WERR_BADFILE) 216 consecutive failure(s). Last success @ NTTIME(0) DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:51:47 2012 IST failed, result 2 (WERR_BADFILE) 216 consecutive failure(s). Last success @ NTTIME(0) CN=Schema,CN=Configuration,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:51:48 2012 IST failed, result 2 (WERR_BADFILE) 216 consecutive failure(s). Last success @ NTTIME(0) CN=Configuration,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:51:48 2012 IST failed, result 2 (WERR_BADFILE) 216 consecutive failure(s). Last success @ NTTIME(0) OUTBOUND NEIGHBORS DC=DomainDnsZones,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:54:11 2012 IST failed, result 2 (WERR_BADFILE) 4 consecutive failure(s). Last success @ NTTIME(0) DC=ForestDnsZones,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:54:12 2012 IST failed, result 2 (WERR_BADFILE) 4 consecutive failure(s). Last success @ NTTIME(0) DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:54:12 2012 IST failed, result 2 (WERR_BADFILE) 4 consecutive failure(s). Last success @ NTTIME(0) CN=Schema,CN=Configuration,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:54:12 2012 IST failed, result 2 (WERR_BADFILE) 4 consecutive failure(s). Last success @ NTTIME(0) CN=Configuration,DC=abc,DC=com Default-First-Site-Name\BDC via RPC DSA object GUID: adf1d7c5-4e92-400f-9bfb-17986c6d20a2 Last attempt @ Wed Jun 27 08:54:12 2012 IST failed, result 2 (WERR_BADFILE) 4 consecutive failure(s). Last success @ NTTIME(0) KCC CONNECTION OBJECTS Connection -- Connection name: 251b24ae-5b5c-454a-834a-c2b3d7dc3f6f Enabled: TRUE Server DNS name : pdc.abc.com Server DN name : CN=NTDS Settings,CN=BDC,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=abc,DC=com TransportType: RPC options: 0x0001 Warning: No NC replicated for Connection! but when i add its numeric id in DNS _msdcs.abc.com with additional domain controller name it works but after, this i getting new error please help me to resolved this issue. /source4/dsdb/dns/dns_update.c:294: Failed DNS update - NT_STATUS_NOT_SAME_DEVICE this error show in additional domain controller log file... Regards Pradeep Pal -- Thanks Regards Pradeep Pal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Announce] Samba 3.6.6 Available for Download
Your body hears everything your mind says. Naomi Judd === Release Announcements = This is is the latest stable release of Samba 3.6. Major enhancements in Samba 3.6.6 include: o Fix possible memory leaks in the Samba master process (bug #8970). o Fix uninitialized memory read in talloc_free(). o Fix joining of XP Pro workstations to 3.6 DCs (bug #8373). Changes since 3.6.5: o Michael Adam ob...@samba.org * BUG 8738: SMB2 server will not release unused shares. * BUG 8749: Sign non guest sessions in SessionSetup. * BUG 8921: Fix race writing registry values. o Jeremy Allison j...@samba.org * BUG 8373: Fix joining of XP Pro workstations to 3.6 DCs. * BUG 8627: Fix crash bug in dns_create_probe when dns_create_update fails. * BUG 8723: Add pthread-based aio VFS module. * BUG 8784: When calculating the share security mask, take priviliges into account for the connecting user. * BUG 8811: sd_has_inheritable_components segfaults on an SD that se_access_check accepts. * BUG 8837: Fix crash in smbd when deleting directory and veto files are enabled. * BUG 8857: Setting traverse rights fails to enable directory traversal when acl_xattr in use. * BUG 8882: Broken processing of %U with vfs_full_audit when force user is set. * BUG 8897: Make winbind_krb5_locator not only returning one IP address. * BUG 8910: resolve_ads() code can return zero addresses and miss valid DC IP addresses. * BUG 8922: smbclient's tarmode insists on listing excluded directories. * BUG 8953: Winbind can hang as nbt_getdc() has no timeout. * BUG 8957: Typo in pam_winbindd code MUST fix. * BUG 8970: Fix possible memory leaks in the Samba master process. * BUG 8971: cleanup_timeout_fn() is called too often, on exiting when an smbd is idle. * BUG 8972: Directory group write permission bit is set if unix extensions are enabled. o Christian Ambach a...@samba.org * BUG 8406: Fix a return code check in Winbind. * BUG 8807: Fix crash in dcerpc_lsa_lookup_sids_noalloc() crashes when groups has more than 1000 groups. o Andrew Bartlett abart...@samba.org * BUG 8599: Only use SamLogonEx when we can get unencrypted session keys. * BUG 8727: Fix smbclients with posix large reads. * BUG 8943: Slow but responsive DC can lock up Winbind for 10 minutes at a time. o Björn Baumbach b...@sernet.de * BUG 7564: Fix default name resolve order in the manpage. * BUG 8554, 8612, 8748: Add new printers to registry. * BUG 8789: Remove whitespace in example samba.ldif. o Alexander Bokovoy a...@samba.org * BUG 8988: Avoid crash with MIT krb5 1.10.0 in gss_get_name_attribute(). o Alejandro Escanero Blanco aescan...@gmail.com * BUG 8798: The primary rid should be in the groups rid array. o Ira Cooper sa...@ira.wakeful.net * BUG 8729: Fix getpass regressions on Solaris/Illumos. * BUG 8743: Fix configure.developer builds on Solaris. * BUG 8910: Fix bad bugfix for bug #8910. * BUG 8952: Fix negative SID-uid/gid cache handling. * BUG 8995: Use fsp_persistent_id() as persistent_file_id part for SMB2. o David Disseldorp dd...@samba.org * BUG 8762: Fix crash in printer_list_set_printer(). o Olaf Flebbe o.fle...@science-computing.de * BUG 8859: Fix assertion in reg_parse. o Björn Jacke b...@sernet.de * BUG 8732: Fix compile of krb5 locator on Solaris. * BUG 8869: Remove outdated netscape ds 5 schema file. * BUG 8978: Remove dependency on automake for 'make everything'. o Steve Langasek steve.langa...@ubuntu.com * BUG 8920: Fix null dereference in pdb_interface. o Volker Lendecke v...@samba.org * Fix uninitialized memory read in talloc_free(). * BUG 8567: Fix segfault in dom_sid_compare. * BUG 8733: Delete streams on directories (streams_depot). * BUG 8760: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY. * BUG 8836: Fix segfaults on smbcontrol close-share in aio_fork. * BUG 8861: Fix a segfault with debug level 3 on Solaris. * BUG 8904: Fix Winbind crash triggered by 'wbinfo --lookup-sids '. * BUG 8998: Notify code can miss a ChDir. o Stefan Metzmacher me...@samba.org * BUG 8139: Ignore SMBecho errors (the server may not support it). * BUG 8527: db_ctdb_traverse fails to traverse records created within the current transaction. * BUG 8311: Winzip occasionally can not read files out of an open winzip dialog. * BUG 8739: Fill the sids array of the info in wbcAuthUserInfo_to_netr_SamInfo3(). * BUG 8749: Sign non guest sessions in SessionSetup. * BUG 8995: Use fsp_persistent_id() as persistent_file_id part for SMB2. o
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 66f59f0 tdb: finish weaning off err.h. from d1aeb2d s3:test_net_registry_check: eliminate local keyword in shell http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 66f59f040984bef5023fc844097b85bebee88f09 Author: Rusty Russell ru...@rustcorp.com.au Date: Tue Jun 26 15:18:52 2012 +0930 tdb: finish weaning off err.h. Commit 3c4263e7580143c69225729f5b67f09c00add2fd said it removed err.h from tdb, unfortuntely it didn't: tap-interface.h still included it. This finishes it properly! Reported-by:Stefan Metzmacher me...@samba.org Signed-off-by: Rusty Russell ru...@rustcorp.com.au Autobuild-User(master): Rusty Russell ru...@rustcorp.com.au Autobuild-Date(master): Tue Jun 26 10:22:03 CEST 2012 on sn-devel-104 --- Summary of changes: lib/tdb/test/external-agent.c | 12 lib/tdb/test/run-corrupt.c | 12 lib/tdb/test/run-die-during-transaction.c | 16 ++-- lib/tdb/test/run-nested-traverse.c |2 -- lib/tdb/test/run-open-during-transaction.c |2 -- lib/tdb/test/run-traverse-in-transaction.c |2 -- lib/tdb/test/tap-interface.h |5 ++--- 7 files changed, 28 insertions(+), 23 deletions(-) Changeset truncated at 500 lines: diff --git a/lib/tdb/test/external-agent.c b/lib/tdb/test/external-agent.c index 139de76..8140e70 100644 --- a/lib/tdb/test/external-agent.c +++ b/lib/tdb/test/external-agent.c @@ -108,12 +108,16 @@ struct agent *prepare_external_agent(void) int command[2], response[2]; char name[1+PATH_MAX]; - if (pipe(command) != 0 || pipe(response) != 0) - return NULL; + if (pipe(command) != 0 || pipe(response) != 0) { + fprintf(stderr, pipe failed: %s\n, strerror(errno)); + exit(1); + } pid = fork(); - if (pid 0) - return NULL; + if (pid 0) { + fprintf(stderr, fork failed: %s\n, strerror(errno)); + exit(1); + } if (pid != 0) { struct agent *agent = malloc(sizeof(*agent)); diff --git a/lib/tdb/test/run-corrupt.c b/lib/tdb/test/run-corrupt.c index 584f789..1a3c769 100644 --- a/lib/tdb/test/run-corrupt.c +++ b/lib/tdb/test/run-corrupt.c @@ -41,11 +41,15 @@ static void tdb_flip_bit(struct tdb_context *tdb, unsigned int bit) ((unsigned char *)tdb-map_ptr)[off] ^= mask; else { unsigned char c; - if (pread(tdb-fd, c, 1, off) != 1) - err(1, pread); + if (pread(tdb-fd, c, 1, off) != 1) { + fprintf(stderr, pread: %s\n, strerror(errno)); + exit(1); + } c ^= mask; - if (pwrite(tdb-fd, c, 1, off) != 1) - err(1, pwrite); + if (pwrite(tdb-fd, c, 1, off) != 1) { + fprintf(stderr, pwrite: %s\n, strerror(errno)); + exit(1); + } } } diff --git a/lib/tdb/test/run-die-during-transaction.c b/lib/tdb/test/run-die-during-transaction.c index 19c9dbe..6e3a70d 100644 --- a/lib/tdb/test/run-die-during-transaction.c +++ b/lib/tdb/test/run-die-during-transaction.c @@ -164,12 +164,18 @@ reset: key.dsize--; ret = external_agent_operation(agent, OPEN, TEST_DBNAME); - if (ret != SUCCESS) - errx(1, Agent failed to open: %s, agent_return_name(ret)); + if (ret != SUCCESS) { + fprintf(stderr, Agent failed to open: %s\n, + agent_return_name(ret)); + exit(1); + } ret = external_agent_operation(agent, FETCH, KEY_STRING); - if (ret != SUCCESS) - errx(1, Agent failed find key: %s, agent_return_name(ret)); + if (ret != SUCCESS) { + fprintf(stderr, Agent failed find key: %s\n, + agent_return_name(ret)); + exit(1); + } in_transaction = true; if (tdb_transaction_start(tdb) != 0) @@ -215,8 +221,6 @@ int main(int argc, char *argv[]) unlock_callback = maybe_die; agent = prepare_external_agent(); - if (!agent) - err(1, preparing agent); for (i = 0; i sizeof(ops)/sizeof(ops[0]); i++) { diag(Testing %s after death, operation_name(ops[i])); diff --git a/lib/tdb/test/run-nested-traverse.c b/lib/tdb/test/run-nested-traverse.c index 86f2913..37d57c0 100644 --- a/lib/tdb/test/run-nested-traverse.c +++ b/lib/tdb/test/run-nested-traverse.c @@ -62,8 +62,6 @@ int main(int argc, char *argv[]) plan_tests(17); agent = prepare_external_agent(); - if (!agent)
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 5df1fda s3: Restore async i/o with the native AIO interface via 93399c1 s3:smbXsrv_tcon: pass max_tcons explicitly for smbXsrv_tcon_table_init() via 9c36781 s3:smbXsrv_session: pass max_sessions explicitly for smbXsrv_session_table_init() from 66f59f0 tdb: finish weaning off err.h. http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 5df1fda0f5f775c0ccf23412b29b2fd8b013156e Author: Volker Lendecke v...@samba.org Date: Mon Jun 25 12:23:22 2012 +0200 s3: Restore async i/o with the native AIO interface eff3609 moved the async signal handler initialization to later in the process to enable aio_fork and aio_pthread on platforms without realtime signals. This commit broke the use of the native aio interface. aio_pending_size is initialized to 0, so aio.c will not allow async i/0 at all if modules do not set that variable correctly. Initialize to 100 right from the start. Signed-off-by: Stefan Metzmacher me...@samba.org Autobuild-User(master): Stefan Metzmacher me...@samba.org Autobuild-Date(master): Tue Jun 26 14:08:22 CEST 2012 on sn-devel-104 commit 93399c1ec309fd98eb78d10ba11a3a92d8217837 Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 08:13:59 2012 +0200 s3:smbXsrv_tcon: pass max_tcons explicitly for smbXsrv_tcon_table_init() metze commit 9c36781580bdaf47108c8775e2eff97b0a256e74 Author: Stefan Metzmacher me...@samba.org Date: Mon Jun 25 08:13:59 2012 +0200 s3:smbXsrv_session: pass max_sessions explicitly for smbXsrv_session_table_init() metze --- Summary of changes: source3/smbd/aio.c |3 --- source3/smbd/globals.c |2 +- source3/smbd/smbXsrv_session.c | 33 - source3/smbd/smbXsrv_tcon.c| 33 - 4 files changed, 49 insertions(+), 22 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 7ba0bdc..ec68b90 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -91,9 +91,6 @@ bool initialize_async_io_handler(void) DEBUG(10, (Failed to setup RT_SIGNAL_AIO handler\n)); return false; } - - /* tevent supports 100 signal with SA_SIGINFO */ - aio_pending_size = 100; return true; } diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 7c4ffec..87ecff7 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -28,7 +28,7 @@ #if defined(HAVE_AIO) struct aio_extra *aio_list_head = NULL; struct tevent_signal *aio_signal_event = NULL; -int aio_pending_size = 0; +int aio_pending_size = 100;/* tevent supports 100 signals SA_SIGINFO */ int outstanding_aio_calls = 0; #endif diff --git a/source3/smbd/smbXsrv_session.c b/source3/smbd/smbXsrv_session.c index 9ae078e..f31d85b 100644 --- a/source3/smbd/smbXsrv_session.c +++ b/source3/smbd/smbXsrv_session.c @@ -44,6 +44,7 @@ struct smbXsrv_session_table { struct db_context *db_ctx; uint32_t lowest_id; uint32_t highest_id; + uint32_t max_sessions; uint32_t num_sessions; } local; struct { @@ -161,12 +162,26 @@ static void smbXsrv_session_close_loop(struct tevent_req *subreq); static NTSTATUS smbXsrv_session_table_init(struct smbXsrv_connection *conn, uint32_t lowest_id, - uint32_t highest_id) + uint32_t highest_id, + uint32_t max_sessions) { struct smbXsrv_session_table *table; NTSTATUS status; struct tevent_req *subreq; int ret; + uint64_t max_range; + + if (lowest_id highest_id) { + return NT_STATUS_INTERNAL_ERROR; + } + + max_range = highest_id; + max_range -= lowest_id; + max_range += 1; + + if (max_sessions max_range) { + return NT_STATUS_INTERNAL_ERROR; + } table = talloc_zero(conn, struct smbXsrv_session_table); if (table == NULL) { @@ -180,6 +195,7 @@ static NTSTATUS smbXsrv_session_table_init(struct smbXsrv_connection *conn, } table-local.lowest_id = lowest_id; table-local.highest_id = highest_id; + table-local.max_sessions = max_sessions; status = smbXsrv_session_global_init(); if (!NT_STATUS_IS_OK(status)) { @@ -1064,7 +1080,6 @@ NTSTATUS smbXsrv_session_create(struct smbXsrv_connection *conn, struct smbXsrv_session **_session) { struct smbXsrv_session_table *table = conn-session_table; - uint32_t max_sessions =
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 290e7de s3-pdbtest: Fix pdbtest to compare the same fields via 43555d6 s4-samldb: do not talloc_steal() the elements of the original request via a7f26d5 s3-pdbtest: Report and handle errors in pdb-getsampwnam() via ff4d8fc s3-pdb_samba4: Allocate and free a talloc_stackframe() in pdb_samba4_replace_by_sam() from 5df1fda s3: Restore async i/o with the native AIO interface http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 290e7de47a43d921bcd08a1f459a3d6b8d129c99 Author: Andrew Bartlett abart...@samba.org Date: Tue Jun 26 21:06:25 2012 +1000 s3-pdbtest: Fix pdbtest to compare the same fields Autobuild-User(master): Andrew Bartlett abart...@samba.org Autobuild-Date(master): Tue Jun 26 16:09:28 CEST 2012 on sn-devel-104 commit 43555d6439460d2bafa54300221856142c83aa3f Author: Andrew Bartlett abart...@samba.org Date: Tue Jun 26 20:53:08 2012 +1000 s4-samldb: do not talloc_steal() the elements of the original request commit a7f26d5c6d441e1688382e5b9d3543f8a81dd74d Author: Andrew Bartlett abart...@samba.org Date: Tue Jun 26 20:52:07 2012 +1000 s3-pdbtest: Report and handle errors in pdb-getsampwnam() commit ff4d8fcd8d69e19608cc5b8bd65ca022d714c95a Author: Andrew Bartlett abart...@samba.org Date: Tue Jun 26 20:51:17 2012 +1000 s3-pdb_samba4: Allocate and free a talloc_stackframe() in pdb_samba4_replace_by_sam() --- Summary of changes: source3/passdb/pdb_samba4.c | 13 ++--- source3/torture/pdbtest.c | 10 ++ source4/dsdb/samdb/ldb_modules/samldb.c | 14 ++ 3 files changed, 26 insertions(+), 11 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/passdb/pdb_samba4.c b/source3/passdb/pdb_samba4.c index 22a5908..c94f29c 100644 --- a/source3/passdb/pdb_samba4.c +++ b/source3/passdb/pdb_samba4.c @@ -335,6 +335,7 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, struct ldb_dn *dn, struct samu *sam) { + TALLOC_CTX *frame = talloc_stackframe(); int ret = LDB_SUCCESS; const char *pw; struct ldb_message *msg; @@ -342,7 +343,7 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, uint32_t dsdb_flags = 0; /* TODO: All fields :-) */ - msg = ldb_msg_new(talloc_tos()); + msg = ldb_msg_new(frame); if (!msg) { return false; } @@ -350,11 +351,11 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, msg-dn = dn; /* build modify request */ - ret = ldb_build_mod_req(req, state-ldb, talloc_tos(), msg, NULL, NULL, + ret = ldb_build_mod_req(req, state-ldb, frame, msg, NULL, NULL, ldb_op_default_callback, NULL); if (ret != LDB_SUCCESS) { - talloc_free(msg); + talloc_free(frame); return ret; } @@ -371,6 +372,7 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, if (need_update(sam, PDB_PLAINTEXT_PW)) { struct ldb_val pw_utf16; if (pw == NULL) { + talloc_free(frame); return LDB_ERR_OPERATIONS_ERROR; } @@ -476,9 +478,11 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, uint32_t rid; NTSTATUS status = dom_sid_split_rid(NULL, sid, NULL, rid); if (!NT_STATUS_IS_OK(status)) { + talloc_free(frame); return LDB_ERR_OPERATIONS_ERROR; } if (!dom_sid_in_domain(samdb_domain_sid(state-ldb), sid)) { + talloc_free(frame); return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX; } ret |= samdb_msg_add_uint(state-ldb, msg, msg, primaryGroupID, rid); @@ -576,10 +580,12 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, */ if (ret != LDB_SUCCESS) { + talloc_free(frame); return LDB_ERR_OPERATIONS_ERROR; } if (msg-num_elements == 0) { + talloc_free(frame); /* Nothing to do, just return success */ return LDB_SUCCESS; } @@ -592,6 +598,7 @@ static int pdb_samba4_replace_by_sam(struct pdb_samba4_state *state, ldb_errstring(state-ldb))); } + talloc_free(frame); return ret; } diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index 1257eff..14e28e9 100644 --- a/source3/torture/pdbtest.c
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 98ec5e9 s3-torture: Use static printer for smbd spooler test via e01ef8a s3-printing: use euid for vlp job tracking via 1c2f154 s3-printing: fill print_generic sysjob id on job submission via c29773d s3-printing: pass lpq command to job_submit via 91cd9a4 s3-printing: remove unused print_job_fname() via 9a296ef s3-printing: pass a talloc ctx to unpack_pjob via 2f85c1f s3-printing: return talloced print jobs via e1ddf8f s3-printing: clean up print_job_pause/resume interface via 9707358 s3-printing: fix potential print db refcount leak via 1cd2433 s3-spoolss: remove duplicate . in smbd spooler path via 4e33424 s3-printing: remove print_parse_jobid() via fb2579e s3-printing: remove redundant variable set via 5eaa47c s3-printing: remove print_parse_jobid() calls from printing.c via dbca645 s3-printing: rename queue-job sysjob via a66618f s3-printing: remove print_parse_jobid() from print_cups.c via a2d880d s3-printing: store print jobid as part of struct printjob via 33f0890 torture: add test for smbd print job spooling from 290e7de s3-pdbtest: Fix pdbtest to compare the same fields http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 98ec5e95ca726c10c9e0f2c4f151308279c8bed5 Author: David Disseldorp dd...@samba.org Date: Fri Jun 22 18:49:50 2012 +0200 s3-torture: Use static printer for smbd spooler test Autobuild-User(master): David Disseldorp dd...@samba.org Autobuild-Date(master): Tue Jun 26 18:04:43 CEST 2012 on sn-devel-104 commit e01ef8a9bd36bda5b9a383585b74429a333f8567 Author: David Disseldorp dd...@samba.org Date: Thu Jun 21 15:49:55 2012 +0200 s3-printing: use euid for vlp job tracking vlp can be called by print_run_command as root with euids set appropriately, vlp should use this to track the job owner. commit 1c2f1543230b2a016b026e1f3a03a52f0d9d76d7 Author: David Disseldorp dd...@samba.org Date: Thu Feb 9 12:08:27 2012 +0100 s3-printing: fill print_generic sysjob id on job submission Change the generic print backend to fill the printing backend job identifier (sysjob) on submission of a new job. This is needed to ensure correct mapping of spoolss jobs and entries in the backend print queue. This and the last 13 commits attempt to address bug 8719. commit c29773d89036153a122f577ff9fb2a789e7f156f Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 18:47:11 2012 +0100 s3-printing: pass lpq command to job_submit Currently the generic print backend does not fill the printing backend job identifier (sysjob) on submission of a new job. The sysjob identifier is required to correctly map jobs in the printer queue to corresponding spoolss print jobs. Passing the lpq command to job_submit allows the generic print backend to check the printer queue for the new job following submission. This behaviour will come in a later commit. commit 91cd9a47974e0099d550c88ee646ee3b1f44df72 Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 17:03:06 2012 +0100 s3-printing: remove unused print_job_fname() commit 9a296efa9e98594e1dd435dfb91dae440ddf98aa Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 17:57:02 2012 +0100 s3-printing: pass a talloc ctx to unpack_pjob Rather than allocating the devicemode on a null context. commit 2f85c1fcf268e447303990e48b49b149020320d0 Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 16:55:40 2012 +0100 s3-printing: return talloced print jobs print_job_find() currently returns print jobs to callers via a statically allocated variable, this is particularly messy as the device mode is talloced under the static variable. This change adds or passes a talloc context to all callers, giving them ownership of the returned print job. commit e1ddf8f0e41643933c2aa58dc9421cbc7631e2e5 Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 15:01:15 2012 +0100 s3-printing: clean up print_job_pause/resume interface Currently both return a bool and sometimes set a werr pointer argument, always return werror instead. commit 97073589d03f8ea4b871c58cfc86603909568da2 Author: David Disseldorp dd...@samba.org Date: Wed Feb 8 13:45:40 2012 +0100 s3-printing: fix potential print db refcount leak commit 1cd2433e8d632f979811b136e0bf31f07d1c1da7 Author: David Disseldorp dd...@samba.org Date: Wed Feb 1 13:21:04 2012 +0100 s3-spoolss: remove duplicate . in smbd spooler path commit 4e33424581bcb33a32d7971f551a03d4087f75a0 Author: David Disseldorp dd...@samba.org Date: Mon Jan 30 17:35:28 2012 +0100 s3-printing: remove print_parse_jobid() With all callers fixed, it is now safe to remove. commit
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via a6c5376 Merge suggested fix from bug 7511 and enhance it via 8ee76b1 s3:test_registry_upgrade: make more portable and eliminate local keyword from 98ec5e9 s3-torture: Use static printer for smbd spooler test http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a6c5376b978bbe58a2a632764a721ba60317f8ad Author: Björn Jacke b...@sernet.de Date: Tue Jun 26 11:33:36 2012 +0200 Merge suggested fix from bug 7511 and enhance it Changes from Lars Müller and Olaf Flebbe: a) The location in the filesystem defaults to STATEDIR/usershare b) If undefined the default location is used; if set to zero (the default) user defined shares are ignored. Autobuild-User(master): Björn Jacke b...@sernet.de Autobuild-Date(master): Tue Jun 26 19:55:00 CEST 2012 on sn-devel-104 commit 8ee76b173baaca3fc392116622eb1bb7e584526b Author: Björn Jacke b...@sernet.de Date: Mon Jun 25 21:21:31 2012 +0200 s3:test_registry_upgrade: make more portable and eliminate local keyword prefer to use function syntax with (...) to make variables local --- Summary of changes: docs-xml/smbdotconf/misc/usersharepath.xml|5 ++--- source3/script/tests/test_registry_upgrade.sh | 12 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) Changeset truncated at 500 lines: diff --git a/docs-xml/smbdotconf/misc/usersharepath.xml b/docs-xml/smbdotconf/misc/usersharepath.xml index 9e0bfe5..cad64be 100644 --- a/docs-xml/smbdotconf/misc/usersharepath.xml +++ b/docs-xml/smbdotconf/misc/usersharepath.xml @@ -11,8 +11,7 @@ sticky bit must also be set, restricting rename and delete to owners of a file (in the same way the /tmp directory is usually configured). Members of the group owner of this directory are the users allowed to create - usershares. If this parameter is undefined then no user defined - shares are allowed. + usershares. /para para For example, a valid usershare directory might be /usr/local/samba/lib/usershares, @@ -29,5 +28,5 @@ /para /description -value type=defaultNULL/value +value type=defaultSTATEDIR/usershare/value with the compile time value of STATEDIR. /samba:parameter diff --git a/source3/script/tests/test_registry_upgrade.sh b/source3/script/tests/test_registry_upgrade.sh index 8e012bf..4e97153 100755 --- a/source3/script/tests/test_registry_upgrade.sh +++ b/source3/script/tests/test_registry_upgrade.sh @@ -31,11 +31,11 @@ REGPATH=HKLM\Software\Samba LOGDIR_PREFIX=registry_upgrade registry_check() -{ -local CHECKNO=$1 -local CHECKDIFF=$2 -local REGVER= -local ALLOWEDERR=INFO: version =|Check database:|overwrite registry format version 0 with 1|no INFO/version found +( +CHECKNO=$1 +CHECKDIFF=$2 +REGVER= +ALLOWEDERR=INFO: version =|Check database:|overwrite registry format version 0 with 1|no INFO/version found test x$CHECKNO = x0 { REGVER=--reg-version=1 @@ -71,7 +71,7 @@ registry_check() } return 0 -} +) registry_upgrade() { -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via ac4899e s3:net registry import: implement dry-run with --test via 3705119 s3:net registry import: add an assert via 8bf0850 s3:net registry import: reduce indentation via d5ab328 s3:net registry import: fix the return code when transaction commit fails via a3ed47a s3:net registry import: improve regdb_open/close layering via c55a6da s3:net registry import: untangle nested function calls via 20e5e8e s3:net registry import: reduce indentation and untangle assignment from check via f9ff84b s3:net registry import: move precheck-and-import code to its own function via e28b4b1 s3:net registry: fix violation of coding conventions via 0fb847b s3:net registry import: add option --precheck via e78d647 s3:registry: add function registry_value_cmp() via 69add7e s3:net registry import: check return values + codecleanup via cc052d0 s3:net registry: fix output of dwords with sign bit set via 55ce9e1 s3:registry: fix possible double free in import via 619f0c0 s3:registry: improve debug output in reg_parse via e10ea2b s3:registry: add functions to conveniently create registry_values via 35eccd0 s3:registry: silence net_deletekey_recursive via fb706c7 s3:registry: make reg_delete_path() delete the path recursively. via 353f614 s3:registry: compile reg_create_path() reg_delete_path() from a6c5376 Merge suggested fix from bug 7511 and enhance it http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit ac4899eaa1d1b998959aa694f6cac5c2c425ecfc Author: Michael Adam ob...@samba.org Date: Tue Jun 26 15:35:32 2012 +0200 s3:net registry import: implement dry-run with --test Pair-Programmed-With: Gregor Beck gb...@sernet.de Autobuild-User(master): Michael Adam ob...@samba.org Autobuild-Date(master): Tue Jun 26 21:43:49 CEST 2012 on sn-devel-104 commit 3705119bb06123068cb8f3780342fd4e6e501b08 Author: Michael Adam ob...@samba.org Date: Tue Jun 26 15:13:28 2012 +0200 s3:net registry import: add an assert Pair-Programmed-With: Gergor Beck gb...@sernet.de commit 8bf08505c1483d0d3a49f703edbed2d31eea6f1f Author: Michael Adam ob...@samba.org Date: Tue Jun 26 15:12:28 2012 +0200 s3:net registry import: reduce indentation Pair-Programmed-With: Gregor Beck gb...@sernet.de commit d5ab3282e454a4581f77250e54ba11761a9c2a63 Author: Michael Adam ob...@samba.org Date: Tue Jun 26 15:11:22 2012 +0200 s3:net registry import: fix the return code when transaction commit fails Pair-Programmed-With: Gregor Beck gb...@sernet.de commit a3ed47a09bfaf3bf100547a4d97e9d8573382a3d Author: Michael Adam ob...@samba.org Date: Tue Jun 26 15:02:41 2012 +0200 s3:net registry import: improve regdb_open/close layering Pair-Programmed-With: Gregor Beck gb...@sernet.de commit c55a6dae655716539edd3e4dd8b4d61e22f1858e Author: Michael Adam ob...@samba.org Date: Tue Jun 26 13:37:46 2012 +0200 s3:net registry import: untangle nested function calls commit 20e5e8ef266709378b239f0338a3ecb2d175e5a4 Author: Michael Adam ob...@samba.org Date: Tue Jun 26 13:32:40 2012 +0200 s3:net registry import: reduce indentation and untangle assignment from check in import_with_precheck_action(). commit f9ff84b0b45c66fd2c437228791e3bcf99255dad Author: Michael Adam ob...@samba.org Date: Tue Jun 26 13:29:50 2012 +0200 s3:net registry import: move precheck-and-import code to its own function This is the code that is executed in a registry transaction. The purpose of the refactoring is to be able to simplify and untangle the code structure in the sequel. commit e28b4b10a6d8cc13d7c8046a38d6c221915ff55b Author: Gregor Beck gb...@sernet.de Date: Wed Jun 13 14:32:55 2012 +0200 s3:net registry: fix violation of coding conventions Signed-off-by: Michael Adam ob...@samba.org commit 0fb847b7380cafffa75976de6cfe48b212eefc55 Author: Gregor Beck gb...@sernet.de Date: Fri May 4 13:51:01 2012 +0200 s3:net registry import: add option --precheck Signed-off-by: Michael Adam ob...@samba.org commit e78d647ebcdd353af3c270903b88d08ab5004a28 Author: Gregor Beck gb...@sernet.de Date: Mon May 7 15:43:27 2012 +0200 s3:registry: add function registry_value_cmp() Signed-off-by: Michael Adam ob...@samba.org commit 69add7e4fd64c0fc264414991e2d7b0edee09aed Author: Gregor Beck gb...@sernet.de Date: Fri May 4 09:35:37 2012 +0200 s3:net registry import: check return values + codecleanup Signed-off-by: Michael Adam ob...@samba.org commit cc052d0c7784a184b7d52ca08adc0bdf6d820420 Author: Gregor Beck gb...@sernet.de Date: Mon May 7 15:48:16 2012 +0200 s3:net registry: fix output of dwords with sign bit set Signed-off-by:
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via efa73ba s3:test_net_registry_check.sh: grep -E isn't portable, use egrep via 94afad2 tests: make test_ldb portable, eliminate local keyword from ac4899e s3:net registry import: implement dry-run with --test http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit efa73ba52aa8d7e2dada74c422d22508c3b5703e Author: Björn Jacke b...@sernet.de Date: Wed Jun 27 00:25:53 2012 +0200 s3:test_net_registry_check.sh: grep -E isn't portable, use egrep grep -E doesn't work on Solaris /usr/bin/grep e.g. Autobuild-User(master): Björn Jacke b...@sernet.de Autobuild-Date(master): Wed Jun 27 02:18:07 CEST 2012 on sn-devel-104 commit 94afad20b5177ef18a337a853fd033edd3b8b862 Author: Björn Jacke b...@sernet.de Date: Tue Jun 26 12:23:41 2012 +0200 tests: make test_ldb portable, eliminate local keyword this is BASH only, don't use it. --- Summary of changes: source3/script/tests/test_net_registry_check.sh |2 +- testprogs/blackbox/test_ldb.sh | 16 ++-- 2 files changed, 7 insertions(+), 11 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/script/tests/test_net_registry_check.sh b/source3/script/tests/test_net_registry_check.sh index ca8da76..4b2c542 100755 --- a/source3/script/tests/test_net_registry_check.sh +++ b/source3/script/tests/test_net_registry_check.sh @@ -30,7 +30,7 @@ failed=0 regcheck() { ALLOWEDERR=Check database:|INFO: version = - ERRSTR=$(${NETREG} check $REG $@ 21 | grep -E -v $ALLOWEDERR) + ERRSTR=$(${NETREG} check $REG $@ 21 | egrep -v $ALLOWEDERR) } # try to repair registry diff --git a/testprogs/blackbox/test_ldb.sh b/testprogs/blackbox/test_ldb.sh index 1609a95..f326672 100755 --- a/testprogs/blackbox/test_ldb.sh +++ b/testprogs/blackbox/test_ldb.sh @@ -121,15 +121,11 @@ echo Search Options Control Query test returned 0 items failed=`expr $failed + 1` fi -wellknown_object_test() { - local guid=$1 - local object=$2 - local basedns - local dn - local r - local c - local n - local failed=0 +wellknown_object_test() +( + guid=$1 + object=$2 + failed=0 basedns=WKGUID=${guid},${BASEDN} wkGuId=${guid},${BASEDN} for dn in ${basedns}; do @@ -151,7 +147,7 @@ wellknown_object_test() { done return $failed -} +) wellknown_object_test 22B70C67D56E4EFB91E9300FCA3DC1AA ForeignSecurityPrincipals st=$? -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via 082b906 s3-printing: fix broken print_job_get_name() return from efa73ba s3:test_net_registry_check.sh: grep -E isn't portable, use egrep http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 082b90674ac53d9ddea1c1e01443e6bf986528a9 Author: David Disseldorp dd...@samba.org Date: Wed Jun 27 01:23:57 2012 +0200 s3-printing: fix broken print_job_get_name() return Autobuild-User(master): David Disseldorp dd...@samba.org Autobuild-Date(master): Wed Jun 27 04:04:56 CEST 2012 on sn-devel-104 --- Summary of changes: source3/printing/printing.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 1e0d61d..b473c94 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -2027,7 +2027,8 @@ bool print_job_get_name(TALLOC_CTX *mem_ctx, const char *sharename, uint32_t job return false; } - return pjob-jobname; + *name = pjob-jobname; + return true; } -- Samba Shared Repository