Re: [Samba] DNSMasq and OpenWRT as DHCP and Internal DNS

2013-09-07 Thread Szymon Życiński

W dniu 2013-09-05 20:37, Gerry Reno pisze:

 dnsmasq: not authoritative, no SOA, no NS, no master-slaves, just has 
caching and forwarding


 basically just a client side solution.
 ---

 If this has changed I would like to know.

DNSMasq is providing only DHCP and NAT. DNS thing is provided by samba 
internal dns. Today i saw only 5 clinents with host A created in DNS. 
All of them was working with WIN7. How to diagnose this situation?


Szymon

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


Re: [Samba] Conversion error: Illegal multibyte sequence

2013-09-07 Thread Laurent Blume
On 2013-09-07 2:04 AM, Jeremy Allison wrote:
 Woo hoo ! I think you've found an oold old bug :-).

I told you so from the beginning! Years! ;-)
Not a critical one though, it seems.

 I'll take a look at that asap.
 
 Thanks !

I'll be happy to get rid of it too!

Laurent


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


Re: [Samba] dns update failt (kerberos) - SOLVED

2013-09-07 Thread Thomas Zeitinger
Hi there,

a few days ago I tried to install a print spooler with samba4 and in the
installation process the avahi-daemon was installed.

This daemon prevented the samba4 internal dns from working fully

The solution: apt-get --purge remove avahi-daemon

Now everything is working like beast ;-)

Best regards
Tom

On 2013-09-04 11:13, Thomas Zeitinger wrote:
 Hi there,

 I am struggling with samba4 and the internal dns and kerberos.

 It seems that DNS is the problem.

 When I aske for kerberos dns entrys on my workstation, I get this
 (11.22.33.202 is the samba4 server):

 root@lit2:~# dig _kerberos._udp.DOMAIN.LOCAL @11.22.33.202

 ;  DiG 9.7.3  _kerberos._udp.DOMAIN.LOCAL @11.22.33.202
 ;; global options: +cmd
 ;; Got answer:
 ;; -HEADER- opcode: QUERY, status: NXDOMAIN, id: 3733
 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
 ;; WARNING: recursion requested but not available

 ;; QUESTION SECTION:
 ;_kerberos._udp.DOMAIN.LOCAL. IN A

 ;; Query time: 1 msec
 ;; SERVER: 11.22.33.202#53(11.22.33.202)
 ;; WHEN: Wed Sep 4 10:10:33 2013
 ;; MSG SIZE rcvd: 48


 But if I ask the samba directly:

 root@linsrv:~# samba-tool dns query 11.22.33.202 DOMAIN.LOCAL
 _kerberos._udp ALL
 Password for [Administrator@DOMAIN.LOCAL]:
 Name=, Records=1, Children=0
 SRV: linsrv.domain.local. (88, 0, 100) (flags=f0, serial=110, ttl=900)

 root@linsrv:~# samba-tool dns query 11.22.33.202 DOMAIN.LOCAL linsrv ALL
 Password for [Administrator@DOMAIN.LOCAL]:
 Name=, Records=1, Children=0
 A: 11.22.33.202 (flags=f0, serial=110, ttl=900)


 It seems that the entries from the dns database don't get propagated
 to the dns server and I tried a samba_dnsupdate --verbose --all-names.

 This is the result (with 'debug level = 10'):

 root@linsrv:/usr/local/samba# samba_dnsupdate --verbose --all-names
 INFO: Current debug levels:
   all: 10
   tdb: 10
   printdrivers: 10
   lanman: 10
   smb: 10
   rpc_parse: 10
   rpc_srv: 10
   rpc_cli: 10
   passdb: 10
   sam: 10
   auth: 10
   winbind: 10
   vfs: 10
   idmap: 10
   quota: 10
   acls: 10
   locking: 10
   msdfs: 10
   dmapi: 10
   registry: 10
   scavenger: 10
   dns: 10
   ldb: 10
 Processing section [netlogon]
 Processing section [sysvol]
 Processing section [profiles]
 Processing section [homes]
 Processing section [daten]
 Processing section [install]
 Processing section [winupdate]
 pm_process() returned Yes
 added interface eth0 ip=11.22.33.202 bcast=11.22.33.255
 netmask=255.255.255.0
 IPs: ['11.22.33.202']
 Security token SIDs (1):
   SID[  0]: S-1-5-18
  Privileges (0x):
   Privilege[  0]: SeMachineAccountPrivilege
   Privilege[  1]: SeTakeOwnershipPrivilege
   Privilege[  2]: SeBackupPrivilege
   Privilege[  3]: SeRestorePrivilege
   Privilege[  4]: SeRemoteShutdownPrivilege
   Privilege[  5]: SePrintOperatorPrivilege
   Privilege[  6]: SeAddUsersPrivilege
   Privilege[  7]: SeDiskOperatorPrivilege
   Privilege[  8]: SeSecurityPrivilege
   Privilege[  9]: SeSystemtimePrivilege
   Privilege[ 10]: SeShutdownPrivilege
   Privilege[ 11]: SeDebugPrivilege
   Privilege[ 12]: SeSystemEnvironmentPrivilege
   Privilege[ 13]: SeSystemProfilePrivilege
   Privilege[ 14]: SeProfileSingleProcessPrivilege
   Privilege[ 15]: SeIncreaseBasePriorityPrivilege
   Privilege[ 16]: SeLoadDriverPrivilege
   Privilege[ 17]: SeCreatePagefilePrivilege
   Privilege[ 18]: SeIncreaseQuotaPrivilege
   Privilege[ 19]: SeChangeNotifyPrivilege
   Privilege[ 20]: SeUndockPrivilege
   Privilege[ 21]: SeManageVolumePrivilege
   Privilege[ 22]: SeImpersonatePrivilege
   Privilege[ 23]: SeCreateGlobalPrivilege
   Privilege[ 24]: SeEnableDelegationPrivilege
  Rights (0x   0):
 lpcfg_servicenumber: couldn't find ldb
 schema_fsmo_init: we are master[yes] updates allowed[yes]
 ldb: ldb_trace_request: SEARCH
  dn: @MODULES
  scope: base
  expr: (@LIST=*)
  attr: @LIST
  control: NONE

 ldb: ldb_trace_request: (tdb)-search
 ldb: Added timed event ltdb_callback: 0x1bc3540

 ldb: Added timed event ltdb_timeout: 0x26e86f0

 ldb: Running timer event 0x1bc3540 ltdb_callback

 ldb: ldb_trace_response: ENTRY
 dn: @MODULES
 @LIST: samba_secrets



 ldb: Destroying timer event 0x26e86f0 ltdb_timeout

 ldb: Ending timer event 0x1bc3540 ltdb_callback

 ldb: ldb_trace_request: REGISTER_CONTROL
 1.2.840.113556.1.4.1413
  control: NONE

 ldb: ldb_asprintf/set_errstring: unable to find module or backend to
 handle operation: request
 ldb: ldb_trace_request: SEARCH
  dn: rootDSE
  scope: base
  expr: (objectClass=*)
  attr: rootDomainNamingContext
  attr: configurationNamingContext
  attr: schemaNamingContext
  attr: defaultNamingContext
  control: NONE

 ldb: ldb_trace_request: (rdn_name)-search
 ldb: ldb_trace_next_request: (tdb)-search
 ldb: Added timed event ltdb_callback: 0x2b4a450

 ldb: Added timed event ltdb_timeout: 0x1fc5d10

 ldb: Running timer event 0x2b4a450 ltdb_callback

 ldb: ldb_asprintf/set_errstring: NULL Base DN invalid for a base search
 ldb: Destroying timer event 

[Samba] Help troubleshooting find_domain_master_name_query_fail on SMB v4?

2013-09-07 Thread darx
I'm running

smbd -V
Version 4.1.0rc2-3.1-3075-SUSE-oS12.3-x86_64

This is a standalone server, and the only SMB/CIFS instance on my LAN.

On launch, I see the following find_domain_master_name_query_fail
error in logs.

I can't track down what I've managed to do wrong; pointers appreciated.

== log.nmbd ==
[2013/09/07 16:21:41,  2]
../source3/nmbd/nmbd_elections.c:42(send_election_dgram)
  send_election_dgram: Sending election packet for
  workgroup WORKGROUP on subnet 192.168.1.202
[2013/09/07 16:21:41,  2]
../source3/nmbd/nmbd_elections.c:205(run_elections)
  run_elections:  Won election for workgroup
  WORKGROUP on subnet 192.168.1.202 
[2013/09/07 16:21:41,  2]

../source3/nmbd/nmbd_become_lmb.c:538(become_local_master_browser)
  become_local_master_browser: Starting to become a
  master browser for workgroup WORKGROUP on subnet
  192.168.1.202
[2013/09/07 16:21:49,  0]

../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
  *

  Samba name server test is now a local master browser
  for workgroup WORKGROUP on subnet 192.168.1.202

  *
[2013/09/07 16:21:49,  0]

../source3/nmbd/nmbd_browsesync.c:354(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name
  WORKGROUP1b for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.


Checking

smbclient -N -L test
Domain=[WORKGROUP] OS=[Unix] Server=[Samba
4.1.0rc2-3.1-3075-SUSE-oS12.3-x86_64]

Sharename   Type  Comment
-     ---
testSHARE   Disk
IPC$IPC   IPC Service (Samba
4.1.0rc2-3.1-3075-SUSE-oS12.3-x86_64)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba
4.1.0rc2-3.1-3075-SUSE-oS12.3-x86_64]

Server   Comment
----
test  Samba
4.1.0rc2-3.1-3075-SUSE-oS12.3-x86_64

WorkgroupMaster
----
WORKGROUP  test


My smb conf is

cat /etc/samba/smb.conf

[global]
interfaces = 192.168.1.202/255.255.252.0
smb ports = 137 138 139 445
bind interfaces only = yes
hosts allow = 192.168.1. 127.0.0.1 localhost
hosts deny = all

max connections = 5
max xmit = 32767
strict sync = no
sync always = no
strict locking = no
keepalive = 300
wide links = yes
getwd cache = yes
use sendfile = true

netbios name = test
workgroup = WORKGROUP
wins support = yes
wins server = 192.168.1.202
local master = yes
preferred master = yes
os level = 65
name resolve order = wins bcast

security = user
encrypt passwords = yes
passdb backend = tdbsam
map to guest = Bad User
username map = /etc/samba/username_map.conf

idmap config * : backend = tdb2
idmap config * : range = 100-200

logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = no

load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
printcap cache time = 0

log file = /var/log/samba/samba.log.%m
log level = 2
max log size = 5000
debug timestamp = yes
syslog = 1
syslog only = no

socket options = TCP_NODELAY SO_KEEPALIVE
SO_RCVBUF=16384 SO_SNDBUF=16384

kernel oplocks = no
unix extensions = no

[testSHARE]
path = /home/testSHARE
read only = Yes
guest ok = Yes
veto files = /*.jpg/
delete veto files = no

oplocks = no

[Samba] manpage Samba4

2013-09-07 Thread Erik Silva

Hi there,

I installed the samba4 following the wiki : 
https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO


./configure
make
make install

but I not found the manpages

#man samba
No manual entry for samba!

Any solution?

thanks!


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


Re: [Samba] manpage Samba4

2013-09-07 Thread Ricky Nance
Which distribution are you running?
On Sep 7, 2013 7:02 PM, Erik Silva eriky...@gmail.com wrote:

 Hi there,

 I installed the samba4 following the wiki : https://wiki.samba.org/index.*
 *php/Samba_AD_DC_HOWTOhttps://wiki.samba.org/index.php/Samba_AD_DC_HOWTO

 ./configure
 make
 make install

 but I not found the manpages

 #man samba
 No manual entry for samba!

 Any solution?

 thanks!


 Erik Silva
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  
 https://lists.samba.org/**mailman/options/sambahttps://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] manpage Samba4

2013-09-07 Thread Erik Silva
CentOS 6.4
64 bits
 Em 07/09/2013 22:45, Ricky Nance ricky.na...@gmail.com escreveu:

 Which distribution are you running?
 On Sep 7, 2013 7:02 PM, Erik Silva eriky...@gmail.com wrote:

 Hi there,

 I installed the samba4 following the wiki : https://wiki.samba.org/index.
 **php/Samba_AD_DC_HOWTOhttps://wiki.samba.org/index.php/Samba_AD_DC_HOWTO

 ./configure
 make
 make install

 but I not found the manpages

 #man samba
 No manual entry for samba!

 Any solution?

 thanks!


 Erik Silva
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  
 https://lists.samba.org/**mailman/options/sambahttps://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