Re: [Samba] Desperate plea for help with printer share

2013-04-03 Thread L . P . H . van Belle
Hai, 

But what do you want? how is it to be used. 
and what os are you running? 

Do you want to use windows drivers or the linux drivers? 

some checks, post them back. 
the output of. 
net -S PDC -U root%PASSWORD rpc rights list DOMAINNAME\Administrator ( of 
root if you dont have administrator ) 
you should see at least  SePrintOperatorPrivilege  
read http://lists.samba.org/archive/samba/2005-December/114817.html
Point 6 and the part just above point 6. 

and, whats the output of lpstat -a

this is 1 the my /etc/printcap entries.

 HP040|Hostname|Description Printer HP 040:\
 :lp=192.168.249.40%9100:\
 :rp=Hostname:\
 :sd=/var/spool/lpd/040:\
 :sh:

make sure the hostname resolves, else use ip. 
set this up with the cups wizard, for the windows spooler choose RAW queue. 

and the last thing, 
is in /etc/cups/cupsd.conf
this part,  ( the Allow from all part is what you need. ) 
Location /printers
 AuthType None
 Order Deny,Allow
 Deny From None
 Allow From All
/Location

 

Gr. 

Lois


-Oorspronkelijk bericht-
Van: marklap...@aol.com [mailto:samba-boun...@lists.samba.org] 
Namens Mark LaPierre
Verzonden: woensdag 3 april 2013 4:46
Aan: David Kuntadi; Mail List Samba
Onderwerp: Re: [Samba] Desperate plea for help with printer share

On 04/02/2013 09:38 PM, David Kuntadi wrote:



 On Sun, Mar 31, 2013 at 7:38 AM, Mark LaPierre marklap...@aol.com
 mailto:marklap...@aol.com wrote:
  
   Hey Y'all,
  
   I've been trying for months to get samba to share my 
printer with my
 wife's Win XP machine.  I've RTFM, and spent hours on google 
to no avail.
  

 If only to share to one computer, how about trying to use 
IPP printing
 instead?

 http://hostname:631/printers/printername

 So far for me it is the easiest way to share printer to windows.


 DK


Hey Dave,

Thank you for the interesting proposal.  If all I had share to the 
Windows machine was the printer I would consider doing that 
but as have 
to share some files too then Samba is probably my best solution.

I've received some help on my issue from others on this thread.  The 
Windows machine can now send print jobs to the shared printer but is 
still unable to status the print queue.  I'm getting closer.

-- 
 _
°v°
   /(_)\
^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/

-- 
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] Untrusted domains with security=ads

2013-04-03 Thread Deyan Stoykov

On 02.04.2013 г. 18:06 ч., Jonathan Buzzard wrote:

On Tue, 2013-04-02 at 16:28 +0300, Deyan Stoykov wrote:

Hello everyone,

Samba 3.6.9 on CentOS 6.4. With security = ads, winbind doesn't
authenticate requests that prepend a not-existent domain to the
username. Users that have logged into the domain authenticate
transparently to squid with NTLM (format is domain\username), but not
users that are logged in locally or into another domain with the same
username and password (format is something_else\username). This wasn't
the case with security = domain and a Samba 3 DC:

with security = ads:


See map untrusted to domain it defaults to no. The behaviour changed
in 3.4


I tried with and without map untrusted to domain - it doesn't make a 
difference. Playing with auth methods solves the problem for smbd, but 
not for winbind.


--
Deyan Stoykov, dstoy...@uni-ruse.bg
System administrator
Computing and Information Services Center
University of Ruse
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Samba Upgrade 3.0.33 to 3.6.13.

2013-04-03 Thread Rodney Green
Hello,

I'm attempting to upgrade a server from Samba 3.0.33 to Samba 3.6.13.
I'm testing the upgrade on a virtual machine with the same set up  and
data as the production server. My problem is that the SID to UID
mappings and permissions aren't carrying over to the new version.


Here's what I'm doing:

- Uninstall previous version RPMs (This is a CentOS 5.5 server)
- Install new 3.6.13 packages
- Run net rpc join to join the machine to our domain (haven't been
able to make anything work with ADS security.
- Reboot

After doing the above, I currently have to set permissions for the
shares so I can access them from Windows machines.

Please look at my configurations below. A point in the right direction
would be most welcome!

Current config (3.0.33):

[global]

workgroup = domain
server string = Samba

netbios name = fileserver


hosts allow = 127. 192.168.115.
encrypt passwords = yes

security = domain
passdb backend = tdbsam

password server = *
log level = 2
log file = /var/log/samba/samba.log.%m

winbind separator = +
idmap uid = 1-2
idmap gid = 1-2
---
New config (3.6.13):

[global]
netbios name = test-samba
security = domain
realm = domain1.domain.com
password server = domain-server
idmap config * : backend = tdb
idmap config * : range = 10001-2
idmap config domain : backend = rid
idmap config domain : range = 1-2
idmap config domain : base_rid = 0
workgroup = domain

winbind enum users = yes
winbind enum groups = yes
winbind refresh tickets = yes
template homedir = /shared/HOMEDIRS/%U
template shell = /bin/bash
client use spnego = yes
client ntlmv2 auth = yes
encrypt passwords = yes
winbind use default domain = yes
restrict anonymous = 2
passdb backend = tdbsam

log level = 2
log file = /var/log/samba/samba.log.%m
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Change SOA DNS servers

2013-04-03 Thread Sérgio Henrique
Hi,

It's possible to change samba servers SOA record while migrating from
samba4 dc to other samba4dc?

In windows dns i can successful transfer SOA but in samba4 at the moment i
was unable to perform this transfer to other


-- 
Best Regards,
Sérgio Machado
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Desperate plea for help with printer share

2013-04-03 Thread Gary Dale

On 01/04/13 07:55 PM, Mark LaPierre wrote:

On 03/30/2013 11:45 PM, Gary Dale wrote:

On 30/03/13 08:38 PM, Mark LaPierre wrote:

Hey Y'all,

I've been trying for months to get samba to share my printer with my
wife's Win XP machine.  I've RTFM, and spent hours on google to no 
avail.


I can't see the printer from Windows so I can't mount it up.  Nothing
appears in the logs.  The file shares work just fine.

It looks like I've got Samba 3.6.9 on this machine:

[mlapier@mushroom samba]$ rpm -qa | grep samba
samba-swat-3.6.9-151.el6.i686
samba-doc-3.6.9-151.el6.i686
samba-client-3.6.9-151.el6.i686
samba-winbind-clients-3.6.9-151.el6.i686
samba-3.6.9-151.el6.i686
samba-common-3.6.9-151.el6.i686
samba-winbind-devel-3.6.9-151.el6.i686
samba-winbind-krb5-locator-3.6.9-151.el6.i686
samba-domainjoin-gui-3.6.9-151.el6.i686
samba-winbind-3.6.9-151.el6.i686
samba4-libs-4.0.0-55.el6.rc4.i686
[mlapier@mushroom samba]$ name
CentOS release 6.4 (Final)
Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12
21:42:46 UTC 2013 i686 i686 i386 GNU/Linux
[mlapier@mushroom samba]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [pictures]
Processing section [budget]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
printcap name = cups
idmap config * : backend = tdb

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No

[pictures]
comment = Pictures
path = /home/pictures
read only = No
guest ok = Yes

[budget]
comment = Budget
path = /home/budget
valid users = nllapie, mlapier
read only = No
[mlapier@mushroom ~]$

Is there anything else I can share with you that will help you to
diagnose my problem?


Have you checked the CUPS printer sharing?



Sure enough.  The printer shared check box is checked so that's not 
the problem.




That's not good enough. Has the cups configuration been set to allow 
users to connect from the LAN?

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


[Samba] /var/samba/locks/smb_krb5/krb5.conf.DOM

2013-04-03 Thread Shaw, Kevin
All,

I am running Solaris 10 and Samba 3.6.6. We use intelligent DNS and have more 
than 10 ADs. In /etc/krb5/krb5.conf I configure kdc and admin_server to point 
to the IDNS server so any one of our functioning ADs can be used dynamically. 
I've noticed that /var/samba/locks/smb_krb5/krb5.conf.DOM get created when net 
ads join is run. I've also noticed that the kdc is set to an IP address and 
appears to be dynamic. Can someone tell me what/how this file is controlled and 
if there are smb.conf settings to manually control this file?

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


[Samba] Samba4 fails to work following upgrade - library version errors

2013-04-03 Thread Graeme Porter
Hello,

I was running Samba4 for a while on my Raspberry Pi (Raspbian distro, running 
3.6.11+ #371 PREEMPT armv6l kernel).  The version of Samba I was running was 
4.1.0pre1-GIT-fd8b258.

Last night I decided to try to upgrade to see if I could upgrade it without 
breaking it.


Note that the AD this Pi is the DC for doesn't have any physical clients as 
members; I was using a Virtual PC running WinXP and another running Ubuntu just 
to test it out - so technically there's no great loss if it did break - but I 
do want to start using the Pi as a DC for my physical Windows clients (my 
family's 3x computers - one Vista, one Win7, and one Win8), and I wanted to 
ensure I could upgrade it cleanly without loss of service first.


So I used git pull to download the latest changes, as described in the Samba4 
HOWTO guide.  The configure, make, and make install stages went without a hitch 
(although the little Pi doesn't exactly blast through the compile, so it took 
several long hours).  As a just-in-case, I even stopped Samba from running 
before I ran make install just in case the script couldn't overwrite a file 
that was in use.

So I tried to check which version this had upgraded to by running samba -V:

root@raspberrypi:/usr/local/samba4# samba -V
samba: /usr/local/samba/lib/private/libcliauth.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libprocess_model.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libsamdb-common.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required
 by samba)
samba: /usr/local/samba/lib/private/libsamba-modules.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libndr-samba4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/liberrors.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libservice.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libldbsamba.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libMESSAGING.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libntvfs.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

... huh.

I hoped that maybe it was just the version argument that stopped working - so I 
tried to start up the samba daemon (rather than using the service samba4 
start command I had used previously without fail, as this script suppresses 
command line output):

root@raspberrypi:/usr/local/samba4# samba
samba: /usr/local/samba/lib/private/libcliauth.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libprocess_model.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libsamdb-common.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba:
 /usr/local/samba/lib/private/libsamba-modules.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libndr-samba4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/liberrors.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libservice.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libldbsamba.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libMESSAGING.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libntvfs.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

... and a quick check of ps -A | grep samba confirms that it is indeed not 
running.

I checked that all of the above files actually do exist at the given paths:

root@raspberrypi:/usr/local/samba4# ls -al 
/usr/local/samba/lib/private/libcliauth.so
-rwxr-xr-x 1 

Re: [Samba] Samba4 fails to work following upgrade - library version errors

2013-04-03 Thread Ricky Nance
The last time you did ./configure, did you specify any arguments, if so,
you will need the same arguments on this install. Also, I typically start
'fresh' by issuing a git clean -x -f -d after git pull and before
./configure.

Ricky


On Wed, Apr 3, 2013 at 11:06 AM, Graeme Porter graeme.por...@yahoo.co.ukwrote:

 Hello,

 I was running Samba4 for a while on my Raspberry Pi (Raspbian distro,
 running 3.6.11+ #371 PREEMPT armv6l kernel).  The version of Samba I was
 running was 4.1.0pre1-GIT-fd8b258.

 Last night I decided to try to upgrade to see if I could upgrade it
 without breaking it.


 Note that the AD this Pi is the DC for doesn't have any physical clients
 as members; I was using a Virtual PC running WinXP and another running
 Ubuntu just to test it out - so technically there's no great loss if it did
 break - but I do want to start using the Pi as a DC for my physical Windows
 clients (my family's 3x computers - one Vista, one Win7, and one Win8), and
 I wanted to ensure I could upgrade it cleanly without loss of service first.


 So I used git pull to download the latest changes, as described in the
 Samba4 HOWTO guide.  The configure, make, and make install stages went
 without a hitch (although the little Pi doesn't exactly blast through the
 compile, so it took several long hours).  As a just-in-case, I even stopped
 Samba from running before I ran make install just in case the script
 couldn't overwrite a file that was in use.

 So I tried to check which version this had upgraded to by running samba -V:

 root@raspberrypi:/usr/local/samba4# samba -V
 samba: /usr/local/samba/lib/private/libcliauth.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libauth4.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libevents.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libcluster.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libprocess_model.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libsamdb-common.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required
  by samba)
 samba: /usr/local/samba/lib/private/libsamba-modules.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libndr-samba4.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/liberrors.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libservice.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libldbsamba.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libMESSAGING.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libntvfs.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

 ... huh.

 I hoped that maybe it was just the version argument that stopped working -
 so I tried to start up the samba daemon (rather than using the service
 samba4 start command I had used previously without fail, as this script
 suppresses command line output):

 root@raspberrypi:/usr/local/samba4# samba
 samba: /usr/local/samba/lib/private/libcliauth.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libauth4.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libevents.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libcluster.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libprocess_model.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libsamdb-common.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba:
  /usr/local/samba/lib/private/libsamba-modules.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libndr-samba4.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/liberrors.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libservice.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libldbsamba.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: /usr/local/samba/lib/private/libMESSAGING.so: version
 `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
 samba: 

[Samba] SaMBa 4 - migrate users

2013-04-03 Thread Celso Viana
Hi all,

Is it possible to create users and passwords from a domain samba3 a Samba4
domain? I do not want to migrate the domain using classicupgrade. I want to
create users and passwords old in the new domain.

-- 
Celso Vianna
BSD User: 51318
http://www.bsdcounter.org

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


Re: [Samba] Samba4 fails to work following upgrade - library version errors

2013-04-03 Thread Graeme Porter
Hi Ricky,

Thanks for replying.

The original build was just run with the arguments on the HOWTO:

    ./configure --enable-debug --enable-selftest

With the latest build, I thought I'd try adding Avahi on there as a means of 
announcing the Pi to domain members; as I understand it, Samba4 currently has 
no means of appearing under the Network Neighborhood, but previous versions 
did, and that Avahi is capable of providing that.  I'd forgotten about adding 
Avahi in until your reply, oops  :(


The same arguments I previously used were still part of the ./configure command 
I ran - i.e. I didn't remove either of them:

    ./configure --enable-avahi --enable-debug --enable-selftest

Could adding this have caused the problem?

Kind regards,
Graeme




 From: Ricky Nance ricky.na...@weaubleau.k12.mo.us
To: Graeme Porter graeme.por...@yahoo.co.uk 
Cc: samba@lists.samba.org samba@lists.samba.org 
Sent: Wednesday, 3 April 2013, 17:21
Subject: Re: [Samba] Samba4 fails to work following upgrade - library version 
errors
 

The last time you did ./configure, did you specify any arguments, if so, you 
will need the same arguments on this install. Also, I typically start 'fresh' 
by issuing a git clean -x -f -d after git pull and before ./configure. 

Ricky



On Wed, Apr 3, 2013 at 11:06 AM, Graeme Porter graeme.por...@yahoo.co.uk 
wrote:

Hello,

I was running Samba4 for a while on my Raspberry Pi (Raspbian distro, running 
3.6.11+ #371 PREEMPT armv6l kernel).  The version of Samba I was running was 
4.1.0pre1-GIT-fd8b258.

Last night I decided to try to upgrade to see if I could upgrade it without 
breaking it.


Note that the AD this Pi is the DC for doesn't have any physical clients as 
members; I was using a Virtual PC running WinXP and another running Ubuntu 
just to test it out - so technically there's no great loss if it did break - 
but I do want to start using the Pi as a DC for my physical Windows clients 
(my family's 3x computers - one Vista, one Win7, and one Win8), and I wanted 
to ensure I could upgrade it cleanly without loss of service first.


So I used git pull to download the latest changes, as described in the 
Samba4 HOWTO guide.  The configure, make, and make install stages went without 
a hitch (although the little Pi doesn't exactly blast through the compile, so 
it took several long hours).  As a just-in-case, I even stopped Samba from 
running before I ran make install just in case the script couldn't overwrite 
a file that was in use.

So I tried to check which version this had upgraded to by running samba -V:

root@raspberrypi:/usr/local/samba4# samba -V
samba: /usr/local/samba/lib/private/libcliauth.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libprocess_model.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libsamdb-common.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required
 by samba)
samba: /usr/local/samba/lib/private/libsamba-modules.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libndr-samba4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/liberrors.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libservice.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libldbsamba.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libMESSAGING.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libntvfs.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

... huh.

I hoped that maybe it was just the version argument that stopped working - so 
I tried to start up the samba daemon (rather than using the service samba4 
start command I had used previously without fail, as this script suppresses 
command line output):

root@raspberrypi:/usr/local/samba4# samba
samba: /usr/local/samba/lib/private/libcliauth.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version 
`SAMBA_4.1.0PRE1_GIT_FD8B258' not found 

[Samba] SaMBa 4 - password complexity

2013-04-03 Thread Celso Viana
Hi all,

I have installed the Samba 4, i execute the domain provision command, and
also have disabled the password complexity and decreases the minimum
password length to 3, then I joined a Windows Server 2008 as a DC for the
domain samba. After a few minutes the password complexity and minimum
values are reset to default. Anyone know why?

-- 
Celso Vianna
BSD User: 51318
http://www.bsdcounter.org

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


Re: [Samba] Samba Upgrade 3.0.33 to 3.6.13.

2013-04-03 Thread TAKAHASHI Motonobu
From: Rodney Green rodgr...@gmail.com
Date: Wed, 3 Apr 2013 08:27:57 -0400

 My problem is that the SID to UID
 mappings and permissions aren't carrying over to the new version.

(snip)

 Current config (3.0.33):
 
 [global]
 
 workgroup = domain

(snip)

 winbind separator = +
 idmap uid = 1-2
 idmap gid = 1-2
 ---
 New config (3.6.13):
 
 [global]
 netbios name = test-samba
 security = domain
 realm = domain1.domain.com
 password server = domain-server
 idmap config * : backend = tdb
 idmap config * : range = 10001-2
 idmap config domain : backend = rid
 idmap config domain : range = 1-2
 idmap config domain : base_rid = 0
 workgroup = domain
(snip)
 encrypt passwords = yes
 winbind use default domain = yes
 restrict anonymous = 2
 passdb backend = tdbsam

Because you use default idmap (tdb) in Samba 3.0.33 and use idmap_rid for
domain domain in Samba 3.6.13.

If you use same mappings, use same winbindd_idmap.tdb file or manually set
the mapping with using wbinfo command.

---
TAKAHASHI Motonobu mo...@monyo.com / @damemonyo 
   facebook.com/takahashi.motonobu

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


[Samba] decheck

2013-04-03 Thread sandy . napoles

Hello list, when I run ./samba-tool dbcheck --fixI have

-673721863-1998900342-1412008047-13555;CN=test\0ADEL:5606aaf6-3931-45c4-8f5e-f56ebf514564,CN=Deleted
Objects,DC=eccmg,DC=cupet,DC=cu
unable to find object for DN
CN=test\0ADEL:5606aaf6-3931-45c4-8f5e-f56ebf514564,CN=Deleted
Objects,DC=eccmg,DC=cupet,DC=cu - (No such Base DN:
CN=test\0ADEL:5606aaf6-3931-45c4-8f5e-f56ebf514564,CN=Deleted
Objects,DC=eccmg,DC=cupet,DC=cu)
Not removing dangling forward link

I do'not know that mean CN=test\0ADEL:5606aaf6-3931 and the user test was
deleted some month ago..
Somebody can help me

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


Re: [Samba] Recomendations for working with existing DNS setups

2013-04-03 Thread Chris Smith
On Mon, Apr 1, 2013 at 7:05 PM, Andrew Bartlett abart...@samba.org wrote:
 If I could change the subject somewhat, I am also not clear on how to
 configure SAMBA4 and the DNS server if my network has an existing DNS
 server on another machine and I don't really want to move it. The DNS
 server is a stock install of bind from the distro's repository:
 bind-9.8.2-0.17.rc1.el6_4.4.x86_64

 Samba must locally host it's own DNS domain, on the Samba 4.0 AD DC.

 You may wish to have your existing BIND instance forward the Samba 4.0
 subdomain to Samba using a zone type of 'forward'.

I've been wondering...
Do the Windows clients, if they aren't sharing anything, actually need
DNS resolution?
Could Samba just host the DNS for the SRV (and other special)
records as a subdomain and therefore have all queries go to another
DNS server which, for the special subdomain, forwards only those
requests to the Samba server?

Thanks,

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


Re: [Samba] Samba Upgrade 3.0.33 to 3.6.13.

2013-04-03 Thread Rodney Green
On Wed, Apr 3, 2013 at 1:34 PM, TAKAHASHI Motonobu mo...@monyo.com wrote:
 From: Rodney Green rodgr...@gmail.com
 Date: Wed, 3 Apr 2013 08:27:57 -0400

 My problem is that the SID to UID
 mappings and permissions aren't carrying over to the new version.

 (snip)

 Current config (3.0.33):

 [global]

 workgroup = domain

 (snip)

 winbind separator = +
 idmap uid = 1-2
 idmap gid = 1-2
 ---
 New config (3.6.13):

 [global]
 netbios name = test-samba
 security = domain
 realm = domain1.domain.com
 password server = domain-server
 idmap config * : backend = tdb
 idmap config * : range = 10001-2
 idmap config domain : backend = rid
 idmap config domain : range = 1-2
 idmap config domain : base_rid = 0
 workgroup = domain
 (snip)
 encrypt passwords = yes
 winbind use default domain = yes
 restrict anonymous = 2
 passdb backend = tdbsam

 Because you use default idmap (tdb) in Samba 3.0.33 and use idmap_rid for
 domain domain in Samba 3.6.13.

 If you use same mappings, use same winbindd_idmap.tdb file or manually set
 the mapping with using wbinfo command.

 ---
 TAKAHASHI Motonobu mo...@monyo.com / @damemonyo
facebook.com/takahashi.motonobu


Thanks, Takahashi. That's seems to have gotten things working
properly. I noticed that the tdb files for 3.0.33 are in the
/var/cache/samba directory. I copied winbindd_idmap.tdb from
/var/cache/samba to /var/lib/samba and the mappings problem was
corrected.

Do you think I should copy all of the tdb files from /var/cache/samba
to /var/lib/samba?

Thanks again,
Rodney
-- 
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 - migrate users

2013-04-03 Thread Andrew Bartlett
On Wed, 2013-04-03 at 13:37 -0300, Celso Viana wrote:
 Hi all,
 
 Is it possible to create users and passwords from a domain samba3 a Samba4
 domain? I do not want to migrate the domain using classicupgrade. I want to
 create users and passwords old in the new domain.

Why do you not wish to migrate?

I strongly encourage you to migrate.  This will not only preserve SIDs,
it will preserve passwords and everything else.  It is the best and only
tested way to bring the passwords and other critical details across. 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] Desperate plea for help with printer share

2013-04-03 Thread Mark LaPierre

On 04/03/2013 02:56 AM, L.P.H. van Belle wrote:


-Oorspronkelijk bericht-
Van: marklap...@aol.com [mailto:samba-boun...@lists.samba.org]
Namens Mark LaPierre
Verzonden: woensdag 3 april 2013 4:46
Aan: David Kuntadi; Mail List Samba
Onderwerp: Re: [Samba] Desperate plea for help with printer share

On 04/02/2013 09:38 PM, David Kuntadi wrote:




On Sun, Mar 31, 2013 at 7:38 AM, Mark LaPierre marklap...@aol.com
mailto:marklap...@aol.com wrote:
  
   Hey Y'all,
  
   I've been trying for months to get samba to share my

printer with my

wife's Win XP machine.  I've RTFM, and spent hours on google

to no avail.

  

If only to share to one computer, how about trying to use

IPP printing

instead?

http://hostname:631/printers/printername

So far for me it is the easiest way to share printer to windows.


DK



Hey Dave,

Thank you for the interesting proposal.  If all I had share to the
Windows machine was the printer I would consider doing that
but as have
to share some files too then Samba is probably my best solution.

I've received some help on my issue from others on this thread.  The
Windows machine can now send print jobs to the shared printer but is
still unable to status the print queue.  I'm getting closer.

--
 _
°v°
   /(_)\
^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/

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



Hai,

But what do you want? how is it to be used.
and what os are you running?

Do you want to use windows drivers or the linux drivers?

some checks, post them back.
the output of.
net -S PDC -U root%PASSWORD rpc rights list DOMAINNAME\Administrator ( of 
root if you dont have administrator )
you should see at least  SePrintOperatorPrivilege
read http://lists.samba.org/archive/samba/2005-December/114817.html
Point 6 and the part just above point 6.

and, whats the output of lpstat -a

this is 1 the my /etc/printcap entries.

  HP040|Hostname|Description Printer HP 040:\
  :lp=192.168.249.40%9100:\
  :rp=Hostname:\
  :sd=/var/spool/lpd/040:\
  :sh:

make sure the hostname resolves, else use ip.
set this up with the cups wizard, for the windows spooler choose RAW queue.

and the last thing,
is in /etc/cups/cupsd.conf
this part,  ( the Allow from all part is what you need. )
Location /printers
  AuthType None
  Order Deny,Allow
  Deny From None
  Allow From All
/Location



Gr.

Lois


 But what do you want?
I want to be able to print jobs from my wife's Win XP machine, and 
manage those print jobs from the print manager on Win XP machine.  Right 
now I can print jobs from the Win XP machine but can not read the status 
of jobs in the Win XP print queue.


 and what os are you running?
[mlapier@mushroom ~]$ name
CentOS release 6.4 (Final)
Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12 21:42:46 
UTC 2013 i686 i686 i386 GNU/Linux

[mlapier@mushroom ~]$

 Do you want to use windows drivers or the linux drivers?
The Win XP machine has it's own driver installed.

[mlapier@mushroom ~]$ lpstat -a
HP-Color-LaserJet-cp2025dn accepting requests since Tue 26 Mar 2013 
06:06:44 PM EDT
HP_Color_LaserJet_CP2025dn accepting requests since Tue 12 Mar 2013 
06:19:36 PM EDT

Samsung-ML-1740 accepting requests since Wed 03 Apr 2013 05:58:33 AM EDT
WorkForce-1100 accepting requests since Sat 01 Dec 2012 12:07:03 PM EST
[mlapier@mushroom ~]$

[mlapier@mushroom ~]$ cat /etc/printcap
# This file was automatically generated by cupsd(8) from the
# /etc/cups/printers.conf file.  All changes to this file
# will be lost.
Samsung-ML-1740|Samsung ML-1740:rm=mushroom.patch:rp=Samsung-ML-1740:
HP-Color-LaserJet-cp2025dn|HP Color LaserJet 
cp2025dn:rm=mushroom.patch:rp=HP-Color-LaserJet-cp2025dn:
HP_Color_LaserJet_CP2025dn|Color Laser 
Printer:rm=mushroom.patch:rp=HP_Color_LaserJet_CP2025dn:

WorkForce-1100|EPSON WorkForce 1100:rm=mushroom.patch:rp=WorkForce-1100:
[mlapier@mushroom ~]$

[nllapie@mushroom ~]$ net rpc rights list
Enter nllapie's password:
 SeMachineAccountPrivilege  Add machines to domain
  SeTakeOwnershipPrivilege  Take ownership of files or other objects
 SeBackupPrivilege  Back up files and directories
SeRestorePrivilege  Restore files and directories
 SeRemoteShutdownPrivilege  Force shutdown from a remote system
  SePrintOperatorPrivilege  Manage printers
   SeAddUsersPrivilege  Add users and groups to the domain
   SeDiskOperatorPrivilege  Manage disk shares
   SeSecurityPrivilege  System security
[nllapie@mushroom ~]$

In /etc/cups/cupsd.conf I have three Location tags.  None of them are 
Location /printers.


I think that covers all your information requests.

--
_
   °v°
  /(_)\
   ^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/

--
To unsubscribe from this list go to the following URL and 

Re: [Samba] Desperate plea for help with printer share

2013-04-03 Thread Mark LaPierre

On 04/03/2013 09:02 AM, Gary Dale wrote:

On 01/04/13 07:55 PM, Mark LaPierre wrote:

On 03/30/2013 11:45 PM, Gary Dale wrote:

On 30/03/13 08:38 PM, Mark LaPierre wrote:

Hey Y'all,

I've been trying for months to get samba to share my printer with my
wife's Win XP machine.  I've RTFM, and spent hours on google to no
avail.

I can't see the printer from Windows so I can't mount it up.  Nothing
appears in the logs.  The file shares work just fine.

It looks like I've got Samba 3.6.9 on this machine:

[mlapier@mushroom samba]$ rpm -qa | grep samba
samba-swat-3.6.9-151.el6.i686
samba-doc-3.6.9-151.el6.i686
samba-client-3.6.9-151.el6.i686
samba-winbind-clients-3.6.9-151.el6.i686
samba-3.6.9-151.el6.i686
samba-common-3.6.9-151.el6.i686
samba-winbind-devel-3.6.9-151.el6.i686
samba-winbind-krb5-locator-3.6.9-151.el6.i686
samba-domainjoin-gui-3.6.9-151.el6.i686
samba-winbind-3.6.9-151.el6.i686
samba4-libs-4.0.0-55.el6.rc4.i686
[mlapier@mushroom samba]$ name
CentOS release 6.4 (Final)
Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12
21:42:46 UTC 2013 i686 i686 i386 GNU/Linux
[mlapier@mushroom samba]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [pictures]
Processing section [budget]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
printcap name = cups
idmap config * : backend = tdb

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No

[pictures]
comment = Pictures
path = /home/pictures
read only = No
guest ok = Yes

[budget]
comment = Budget
path = /home/budget
valid users = nllapie, mlapier
read only = No
[mlapier@mushroom ~]$

Is there anything else I can share with you that will help you to
diagnose my problem?


Have you checked the CUPS printer sharing?



Sure enough.  The printer shared check box is checked so that's not
the problem.



That's not good enough. Has the cups configuration been set to allow
users to connect from the LAN?


How might you suggest that I check that setting?

--
_
   °v°
  /(_)\
   ^ ^  Mark LaPierre
Registered Linux user No #267004
https://linuxcounter.net/

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

Re: [Samba] Recomendations for working with existing DNS setups

2013-04-03 Thread Andrew Bartlett
On Wed, 2013-04-03 at 15:05 -0400, Chris Smith wrote:
 On Mon, Apr 1, 2013 at 7:05 PM, Andrew Bartlett abart...@samba.org wrote:
  If I could change the subject somewhat, I am also not clear on how to
  configure SAMBA4 and the DNS server if my network has an existing DNS
  server on another machine and I don't really want to move it. The DNS
  server is a stock install of bind from the distro's repository:
  bind-9.8.2-0.17.rc1.el6_4.4.x86_64
 
  Samba must locally host it's own DNS domain, on the Samba 4.0 AD DC.
 
  You may wish to have your existing BIND instance forward the Samba 4.0
  subdomain to Samba using a zone type of 'forward'.
 
 I've been wondering...
 Do the Windows clients, if they aren't sharing anything, actually need
 DNS resolution?
 Could Samba just host the DNS for the SRV (and other special)
 records as a subdomain and therefore have all queries go to another
 DNS server which, for the special subdomain, forwards only those
 requests to the Samba server?

That would be a very good way to create confusion and an un-debug-able
network. 

Clients, member servers and DCs register A records, and DCs also
register and require SRV records. 

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] SaMBa 4 - password complexity

2013-04-03 Thread Andrew Bartlett
On Wed, 2013-04-03 at 13:51 -0300, Celso Viana wrote:
 Hi all,
 
 I have installed the Samba 4, i execute the domain provision command, and
 also have disabled the password complexity and decreases the minimum
 password length to 3, then I joined a Windows Server 2008 as a DC for the
 domain samba. After a few minutes the password complexity and minimum
 values are reset to default. Anyone know why?

Very interesting!

My guess is that the Windows DC examined the group policy objects for
the domain (perhaps some it provided itself) and found that the password
policy was set. 

Samba doesn't know about group policy as a DC, so can't use that as the
authoritative source, but it reads the setting in the directory that
Windows would update.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] Desperate plea for help with printer share

2013-04-03 Thread Gary Dale

On 03/04/13 09:09 PM, Mark LaPierre wrote:

On 04/03/2013 09:02 AM, Gary Dale wrote:

On 01/04/13 07:55 PM, Mark LaPierre wrote:

On 03/30/2013 11:45 PM, Gary Dale wrote:

On 30/03/13 08:38 PM, Mark LaPierre wrote:

Hey Y'all,

I've been trying for months to get samba to share my printer with my
wife's Win XP machine.  I've RTFM, and spent hours on google to no
avail.

I can't see the printer from Windows so I can't mount it up.  Nothing
appears in the logs.  The file shares work just fine.

It looks like I've got Samba 3.6.9 on this machine:

[mlapier@mushroom samba]$ rpm -qa | grep samba
samba-swat-3.6.9-151.el6.i686
samba-doc-3.6.9-151.el6.i686
samba-client-3.6.9-151.el6.i686
samba-winbind-clients-3.6.9-151.el6.i686
samba-3.6.9-151.el6.i686
samba-common-3.6.9-151.el6.i686
samba-winbind-devel-3.6.9-151.el6.i686
samba-winbind-krb5-locator-3.6.9-151.el6.i686
samba-domainjoin-gui-3.6.9-151.el6.i686
samba-winbind-3.6.9-151.el6.i686
samba4-libs-4.0.0-55.el6.rc4.i686
[mlapier@mushroom samba]$ name
CentOS release 6.4 (Final)
Linux mushroom.patch 2.6.32-358.2.1.el6.i686 #1 SMP Tue Mar 12
21:42:46 UTC 2013 i686 i686 i386 GNU/Linux
[mlapier@mushroom samba]$ testparm
Load smb config files from /etc/samba/smb.conf
Processing section [homes]
Processing section [printers]
Processing section [pictures]
Processing section [budget]
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
server string = Samba Server Version %v
log file = /var/log/samba/log.%m
max log size = 50
printcap name = cups
idmap config * : backend = tdb

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
guest ok = Yes
printable = Yes
print ok = Yes
browseable = No

[pictures]
comment = Pictures
path = /home/pictures
read only = No
guest ok = Yes

[budget]
comment = Budget
path = /home/budget
valid users = nllapie, mlapier
read only = No
[mlapier@mushroom ~]$

Is there anything else I can share with you that will help you to
diagnose my problem?


Have you checked the CUPS printer sharing?



Sure enough.  The printer shared check box is checked so that's not
the problem.



That's not good enough. Has the cups configuration been set to allow
users to connect from the LAN?


How might you suggest that I check that setting?



Read the CUPS documentation on the various configuration files it uses. 
The one you probably want is /etc/cups/cupsd.conf.

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


[SCM] Samba Shared Repository - branch master updated

2013-04-03 Thread Volker Lendecke
The branch, master has been updated
   via  7903839 s3:wscript: change --with-dmapi to default=auto to match 
the autoconf build
   via  81cc940 wafsamba: display the default value in help for 
SAMBA3_ADD_OPTION
   via  0d75c90 s3:modules: fix the build of vfs_notify_fam (bug #9545)
   via  821171e s3:lib/server_mutex: open mutex.tdb with CLEAR_IF_FIRST
   via  54529fd s3:lib/gencache: place gencache.tdb into /var/cache/samba
  from  b986a3a Ensure EA value is allocated on the right context.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit 79038397aa8786c92401312973185c7b14e8fa66
Author: Stefan Metzmacher me...@samba.org
Date:   Fri Mar 22 09:39:42 2013 +0100

s3:wscript: change --with-dmapi to default=auto to match the autoconf build

Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Volker Lendecke v...@samba.org

Autobuild-User(master): Volker Lendecke v...@samba.org
Autobuild-Date(master): Wed Apr  3 11:45:12 CEST 2013 on sn-devel-104

commit 81cc940c994424d351ac282383df4d1a57d6b614
Author: Stefan Metzmacher me...@samba.org
Date:   Fri Mar 22 09:37:09 2013 +0100

wafsamba: display the default value in help for SAMBA3_ADD_OPTION

Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Volker Lendecke v...@samba.org

commit 0d75c902254c6e27964c631459ef8e9b379b77fc
Author: Stefan Metzmacher me...@samba.org
Date:   Fri Mar 22 09:30:05 2013 +0100

s3:modules: fix the build of vfs_notify_fam (bug #9545)

This adds the --with-fam option and configure checks.

Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Volker Lendecke v...@samba.org

commit 821171e422133d64e7c07b4d610984c33cd23244
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Mar 28 11:04:31 2013 +0100

s3:lib/server_mutex: open mutex.tdb with CLEAR_IF_FIRST

/var/lock/samba is typically on tpmfs.

Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Volker Lendecke v...@samba.org

commit 54529fd354275cfb4ece407f95ef34675b202ea3
Author: Stefan Metzmacher me...@samba.org
Date:   Thu Mar 28 11:00:27 2013 +0100

s3:lib/gencache: place gencache.tdb into /var/cache/samba

/var/lock/samba is located on tmpfs on newer systems,
but we want to keep things like the server affinity cache
across reboots.

Signed-off-by: Stefan Metzmacher me...@samba.org
Reviewed-by: Volker Lendecke v...@samba.org

---

Summary of changes:
 buildtools/wafsamba/samba3.py |   11 ++-
 source3/lib/gencache.c|2 +-
 source3/lib/server_mutex.c|5 -
 source3/modules/wscript_build |4 
 source3/wscript   |   32 +++-
 5 files changed, 50 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildtools/wafsamba/samba3.py b/buildtools/wafsamba/samba3.py
index 476d8fc..fd063ad 100644
--- a/buildtools/wafsamba/samba3.py
+++ b/buildtools/wafsamba/samba3.py
@@ -8,8 +8,17 @@ from samba_autoconf import library_flags
 
 def SAMBA3_ADD_OPTION(opt, option, help=(), dest=None, default=True,
   with_name=with, without_name=without):
+if default is None:
+default_str=auto
+elif default == True:
+default_str=yes
+elif default == False:
+default_str=no
+else:
+default_str=str(default)
+
 if help == ():
-help = (Build with %s support % option)
+help = (Build with %s support (default=%s) % (option, default_str))
 if dest is None:
 dest = with_%s % option.replace('-', '_')
 
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index 18bfc7c..8ace4d9 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -63,7 +63,7 @@ static bool gencache_init(void)
/* skip file open if it's already opened */
if (cache) return True;
 
-   cache_fname = lock_path(gencache.tdb);
+   cache_fname = cache_path(gencache.tdb);
 
DEBUG(5, (Opening cache file at %s\n, cache_fname));
 
diff --git a/source3/lib/server_mutex.c b/source3/lib/server_mutex.c
index 41da0a1..c86047b 100644
--- a/source3/lib/server_mutex.c
+++ b/source3/lib/server_mutex.c
@@ -69,7 +69,10 @@ struct named_mutex *grab_named_mutex(TALLOC_CTX *mem_ctx, 
const char *name,
}
 
result-tdb = tdb_wrap_open(result, lock_path(mutex.tdb), 0,
-   TDB_DEFAULT, O_RDWR|O_CREAT, 0600, lp_ctx);
+   TDB_DEFAULT |
+   TDB_CLEAR_IF_FIRST |
+   TDB_INCOMPATIBLE_HASH,
+   O_RDWR|O_CREAT, 0600, lp_ctx);
talloc_unlink(result, lp_ctx);
if (result-tdb == NULL) {
DEBUG(1, (Could not open 

[SCM] Samba Shared Repository - branch master updated

2013-04-03 Thread Stefan Metzmacher
The branch, master has been updated
   via  ed76e65 ntvfs: support setfileinfo with FULL_EA_INFORMATION
  from  7903839 s3:wscript: change --with-dmapi to default=auto to match 
the autoconf build

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit ed76e65172ba1a21ef21b3c0267ed5ef1aa8aa9b
Author: David Disseldorp dd...@samba.org
Date:   Wed Apr 3 14:01:00 2013 +0200

ntvfs: support setfileinfo with FULL_EA_INFORMATION

Use existing unmarshall and set helper functions. This allows the
smb2.setinfo.setinfo test to run against the ntvfs file server.

Reviewed-by: Stefan Metzmacher me...@samba.org

Autobuild-User(master): Stefan Metzmacher me...@samba.org
Autobuild-Date(master): Wed Apr  3 16:14:33 CEST 2013 on sn-devel-104

---

Summary of changes:
 selftest/knownfail |1 -
 source4/ntvfs/posix/pvfs_setfileinfo.c |7 ++-
 source4/smb_server/blob.c  |6 ++
 3 files changed, 12 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/selftest/knownfail b/selftest/knownfail
index e4b4694..61a0a0e 100644
--- a/selftest/knownfail
+++ b/selftest/knownfail
@@ -162,7 +162,6 @@
 ^samba4.blackbox.upgradeprovision.alpha13.ldapcmp_sd\(none\) # Due to 
something rewriting the NT ACL on DNS objects
 ^samba4.blackbox.upgradeprovision.alpha13.ldapcmp_full_sd\(none\) # Due to 
something rewriting the NT ACL on DNS objects
 ^samba4.blackbox.upgradeprovision.release-4-0-0.ldapcmp_sd\(none\) # Due to 
something rewriting the NT ACL on DNS objects
-^samba4.smb2.setinfo.setinfo # ntvfs doesn't support FULL_EA_INFORMATION set.
 ^samba3.smb2.create.gentest
 ^samba3.smb2.create.blob
 ^samba3.smb2.create.open
diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c 
b/source4/ntvfs/posix/pvfs_setfileinfo.c
index 3c9b18d..7fd4e35 100644
--- a/source4/ntvfs/posix/pvfs_setfileinfo.c
+++ b/source4/ntvfs/posix/pvfs_setfileinfo.c
@@ -367,7 +367,7 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context 
*ntvfs,
break;
 
case RAW_SFILEINFO_EA_SET:
-   return pvfs_setfileinfo_ea_set(pvfs, h-name, h-fd, 
+   return pvfs_setfileinfo_ea_set(pvfs, h-name, h-fd,
   info-ea_set.in.num_eas,
   info-ea_set.in.eas);
 
@@ -420,6 +420,11 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context 
*ntvfs,
h-position = info-position_information.in.position;
break;
 
+   case RAW_SFILEINFO_FULL_EA_INFORMATION:
+   return pvfs_setfileinfo_ea_set(pvfs, h-name, h-fd,
+   info-full_ea_information.in.eas.num_eas,
+   info-full_ea_information.in.eas.eas);
+
case RAW_SFILEINFO_MODE_INFORMATION:
/* this one is a puzzle */
if (info-mode_information.in.mode != 0 
diff --git a/source4/smb_server/blob.c b/source4/smb_server/blob.c
index c0077c0..a3e1123 100644
--- a/source4/smb_server/blob.c
+++ b/source4/smb_server/blob.c
@@ -625,6 +625,12 @@ NTSTATUS smbsrv_pull_passthru_sfileinfo(TALLOC_CTX 
*mem_ctx,
 
return NT_STATUS_OK;
 
+   case RAW_SFILEINFO_FULL_EA_INFORMATION:
+   return ea_pull_list_chained(blob,
+   mem_ctx,
+   st-full_ea_information.in.eas.num_eas,
+   st-full_ea_information.in.eas.eas);
+
case RAW_SFILEINFO_MODE_INFORMATION:
BLOB_CHECK_MIN_SIZE(blob, 4);
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2013-04-03 Thread Stefan Metzmacher
The branch, master has been updated
   via  b5d5b9a libsmbclient: Fix cli_session_setup_guest_send
  from  ed76e65 ntvfs: support setfileinfo with FULL_EA_INFORMATION

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit b5d5b9a40eb13f89a552e29096deed52229c147e
Author: Volker Lendecke v...@samba.org
Date:   Wed Apr 3 13:24:53 2013 +0200

libsmbclient: Fix cli_session_setup_guest_send

This worked fine so far, but for the wrong reason: We only ever called
this through the sync wrapper. The tevent_req_nterror in the NT_STATUS_OK
case does not call tevent_req_finish. So the tevent_loop_poll did call
into the core send/receive smb code. This is a fix for the case when
smb1cli_req_chain_submit fails for some reason.

Signed-off-by: Volker Lendecke v...@samba.org
Reviewed-by: Stefan Metzmacher me...@samba.org

Autobuild-User(master): Stefan Metzmacher me...@samba.org
Autobuild-Date(master): Wed Apr  3 18:39:30 CEST 2013 on sn-devel-104

---

Summary of changes:
 source3/libsmb/cliconnect.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 872900c..ec5c273 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -446,7 +446,7 @@ struct tevent_req *cli_session_setup_guest_send(TALLOC_CTX 
*mem_ctx,
}
 
status = smb1cli_req_chain_submit(subreq, 1);
-   if (NT_STATUS_IS_OK(status)) {
+   if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
return tevent_req_post(req, ev);
}


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch master updated

2013-04-03 Thread Jeremy Allison
The branch, master has been updated
   via  a7f067c BUG 9699: Fix adding case sensitive spn.
   via  5dad084 ccan: fix HAVE_BSWAP_64 for autoconf.
  from  b5d5b9a libsmbclient: Fix cli_session_setup_guest_send

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -
commit a7f067c244401d37057a7ed7c00ba4ffc76f2b5a
Author: Andreas Schneider a...@samba.org
Date:   Wed Apr 3 15:46:00 2013 +0200

BUG 9699: Fix adding case sensitive spn.

We should be able to define the case of the spn cause it is important
for some services like nfs. 'net ads keytab add nfs' should not
result in an uppercase spn.

Signed-off-by: Andreas Schneider a...@samba.org
Reviewed-by: Jeremy Allison j...@samba.org

Autobuild-User(master): Jeremy Allison j...@samba.org
Autobuild-Date(master): Wed Apr  3 23:57:32 CEST 2013 on sn-devel-104

commit 5dad084ab176820af8d661f681e0659596d067cb
Author: Rusty Russell ru...@rustcorp.com.au
Date:   Tue Apr 2 17:00:01 2013 +1030

ccan: fix HAVE_BSWAP_64 for autoconf.

Autoconf defines HAVE_BSWAP_64_DECL, we want HAVE_BSWAP_64.

Signed-off-by: Rusty Russell ru...@rustcorp.com.au
Reviewed-by: Jeremy Allison j...@samba.org

---

Summary of changes:
 lib/ccan/libccan.m4   |   16 +++-
 source3/libads/ldap.c |   14 ++
 2 files changed, 17 insertions(+), 13 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/ccan/libccan.m4 b/lib/ccan/libccan.m4
index 7b27c69..cda1353 100644
--- a/lib/ccan/libccan.m4
+++ b/lib/ccan/libccan.m4
@@ -346,4 +346,18 @@ if test x$samba_cv_warn_unused_result = xyes ; then
AC_DEFINE(HAVE_WARN_UNUSED_RESULT, 1,
 [whether we have __attribute__((warn_unused_result))])
 fi
-AC_HAVE_DECL(bswap_64, [#include byteswap.h])
+
+AC_CACHE_CHECK([whether we have bswap_64],
+  samba_cv_have_bswap_64,
+  [
+AC_LINK_IFELSE([AC_LANG_SOURCE(
+   [#include byteswap.h
+int main(void) { return bswap_64(1) ? 0 : 1; }
+   ])],
+   samba_cv_have_bswap_64=yes)
+   ])
+
+if test x$samba_cv_have_bswap_64 = xyes ; then
+   AC_DEFINE(HAVE_BSWAP_64, 1,
+[whether we have bswap_64])
+fi
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index ca5962c..2a4a83b 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -1949,12 +1949,7 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT 
*ads, const char *machine_n
ads_msgfree(ads, res);
return ADS_ERROR(LDAP_NO_MEMORY);
}
-   if (!strupper_m(psp1)) {
-   ret = ADS_ERROR(LDAP_NO_MEMORY);
-   goto out;
-   }
-
-   if (!strlower_m(psp1[strlen(spn)])) {
+   if (!strlower_m(psp1[strlen(spn) + 1])) {
ret = ADS_ERROR(LDAP_NO_MEMORY);
goto out;
}
@@ -1970,12 +1965,7 @@ ADS_STATUS ads_add_service_principal_name(ADS_STRUCT 
*ads, const char *machine_n
ret = ADS_ERROR(LDAP_NO_MEMORY);
goto out;
}
-   if (!strupper_m(psp2)) {
-   ret = ADS_ERROR(LDAP_NO_MEMORY);
-   goto out;
-   }
-
-   if (!strlower_m(psp2[strlen(spn)])) {
+   if (!strlower_m(psp2[strlen(spn) + 1])) {
ret = ADS_ERROR(LDAP_NO_MEMORY);
goto out;
}


-- 
Samba Shared Repository