[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-10-20 Thread Launchpad Bug Tracker
[Expired for samba (Ubuntu) because there has been no activity for 60
days.]

** Changed in: samba (Ubuntu)
   Status: Incomplete = Expired

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-08-21 Thread Jelmer Vernooij
Hi Abhi,

wrt (1); the realm should usually be the uppercased version of the DNS domain 
name, not the NetBIOS domain name.
(2) is fixed in newer versions of samba4, those present in quantal.

You can install samba4 as something other than a DC by selecting
standalone in debconf. The priority of this question is fairly low at
the moment though, that might explain why you haven't seen it. There is
no particular reason why you would want to run samba4 rather than samba3
as a file server at the moment.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-08-12 Thread Abhijeet Anand
G'day Jelmer,

Is there a way to fix this or a workaround? Removal of smb.conf results
in a different bug.

Cheers,
Abhi

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-08-12 Thread Abhijeet Anand
G'day again,

I seem to have found a solution for my problem; I think it is more a
workaround than a solution IMHO. All I had to do was to reinstall samba-
common a couple of times and make certain changes to /etc/samba/smb.conf
in between re-installation attempts.

Steps I followed:
1. Changed:
realm = DOMAINNAME - realm = DOMAINNAME.SOMETHING
This is weird because, installation script itself populates this variable with 
the value from workgroup and then complains
@jelmer: I guess you need to look into this.

2. sudo aptitude reinstall samba-common
Everything goes fine, however, now the installation will complain about absence 
of two shares, viz, NETLOGON and SYSVOL because, allegedly, I was trying to 
install samba as a Domain Controller; which I was not. Despite removing the 
line server role = dc, it didn't help as the install script would create it 
back and then whinge. I searched on how to NOT create a Domain Controller, 
however, the suggestions from samba.org didn't help at all. The suggestions 
were to have the following two config parameters:
passdb backend = guest and security = share

Anyway, since that didn't help, I simply uncommented the lines for
NETLOGON and created the SYSVOL share, following the default
recommendation. The recommendation was to look at some default config
file for domain controller.

Finally, after all this, the installation succeeded.

@jelmer: I originally wanted to install Samba4 as a simple file-server,
however, I could not understand why the install script would constantly
try to install it as a DC. Could you please shed some light on this and
how could I only install it as a simple file-server, like we could with
samba3?

Thanks again mate.

Cheers,
Abhi

PS: While I was trying to investigate how to change workgroup name fetched by 
samba-common, I stumbled upon some interesting and amusing debconf scripts. One 
in particular had an amusing comment.
samba-common.postinst: # Oh my GOD, this is ugly.  Why would anyone put these
samba-common.postinst: # characters in a workgroup name?  Why, Lord, why???

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-08-09 Thread Jelmer Vernooij
This is a samba-common issue, since the samba4 postinst script gets the
workgroup from samba-common's debconf config - and that has invalid
data.

** Package changed: samba4 (Ubuntu) = samba (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-06 Thread kamahat
** Package changed: samba (Ubuntu) = samba4 (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-04 Thread kamahat
Paramétrage de samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
Unknown parameter encountered: max log size
Ignoring unknown parameter max log size
Unknown parameter encountered: syslog
Ignoring unknown parameter syslog
Unknown parameter encountered: unix password sync
Ignoring unknown parameter unix password sync
Unknown parameter encountered: passwd program
Ignoring unknown parameter passwd program
Unknown parameter encountered: pam password change
Ignoring unknown parameter pam password change
Unknown parameter encountered: map to guest
Ignoring unknown parameter map to guest
Unknown parameter encountered: usershare allow guests
Ignoring unknown parameter usershare allow guests
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
ERROR: Invalid smb.conf
Unknown parameter encountered: max log size
Ignoring unknown parameter max log size
Unknown parameter encountered: syslog
Ignoring unknown parameter syslog
Unknown parameter encountered: unix password sync
Ignoring unknown parameter unix password sync
Unknown parameter encountered: passwd program
Ignoring unknown parameter passwd program
Unknown parameter encountered: pam password change
Ignoring unknown parameter pam password change
Unknown parameter encountered: map to guest
Ignoring unknown parameter map to guest
Unknown parameter encountered: usershare allow guests
Ignoring unknown parameter usershare allow guests
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
ERROR: Invalid smb.conf
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: 
/usr/share/samba/setoption.pl: Permission denied
dpkg : erreur de traitement de samba4 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de 
sortie d'état 126
Aucun rapport « apport » écrit car MaxReports a déjà été atteint
Paramétrage de 
samba4-clients (4.0.0~alpha18.dfsg1-4ubuntu2) ...
update-alternatives: utilisation de « /usr/bin/nmblookup.samba4 » pour fournir 
« /usr/bin/nmblookup » (nmblookup) en mode automatique.
Traitement des actions différées (« triggers ») pour « libc-bin »...
ldconfig deferred processing now taking place
Des erreurs ont été rencontrées pendant l'exécution :
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
Échec de l'installation d'un paquet. Tentative de réparation :
Paramétrage de samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
Unknown parameter encountered: max log size
Ignoring unknown parameter max log size
Unknown parameter encountered: syslog
Ignoring unknown parameter syslog
Unknown parameter encountered: unix password sync
Ignoring unknown parameter unix password sync
Unknown parameter encountered: passwd program
Ignoring unknown parameter passwd program
Unknown parameter encountered: pam password change
Ignoring unknown parameter pam password change
Unknown parameter encountered: map to guest
Ignoring unknown parameter map to guest
Unknown parameter encountered: usershare allow guests
Ignoring unknown parameter usershare allow guests
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
ERROR: Invalid smb.conf
Unknown parameter encountered: max log size
Ignoring unknown parameter max log size
Unknown parameter encountered: syslog
Ignoring unknown parameter syslog
Unknown parameter encountered: unix password sync
Ignoring unknown parameter unix password sync
Unknown parameter encountered: passwd program
Ignoring unknown parameter passwd program
Unknown parameter encountered: pam password change
Ignoring unknown parameter pam password change
Unknown parameter encountered: map to guest
Ignoring unknown parameter map to guest
Unknown parameter encountered: usershare allow guests
Ignoring unknown parameter usershare allow guests
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
Unknown parameter encountered: guest ok
Ignoring unknown parameter guest ok
ERROR: Invalid smb.conf
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: 
/usr/share/samba/setoption.pl: Permission denied
dpkg : erreur de traitement de samba4 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de 
sortie d'état 126
Des erreurs ont été rencontrées pendant l'exécution :
 samba4

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify 

[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-04 Thread kamahat
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak

chmod +x /usr/share/samba/setoption.pl
dpkg --configure -a

Paramétrage de samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
ERROR: Invalid smb.conf
ERROR: Invalid smb.conf
unable to open smb.conf at /usr/share/samba/setoption.pl line 22.
dpkg : erreur de traitement de samba4 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de 
sortie d'état 2
Des erreurs ont été rencontrées pendant l'exécution :
 samba4

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-04 Thread kamahat
root@dc1:/etc/samba# touch /etc/samba/smb.conf
root@dc1:/etc/samba# dpkg --configure -a

Paramétrage de samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
ERROR: Invalid smb.conf
ERROR: Invalid smb.conf
Administrator password will be set randomly!
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Existing smb.conf does not have a [netlogon] share, but you are configuring a 
DC.
Please either remove /etc/samba/smb.conf or see the template at 
/usr/share/samba/setup/provision.smb.conf.dc
Traceback (most recent call last):
  File /usr/share/samba/setup/provision, line 262, in module
useeadb=eadb, next_rid=opts.next_rid, lp=lp)
  File /usr/lib/python2.7/dist-packages/samba/provision/__init__.py, line 
1733, in provision
assert paths.netlogon is not None
AssertionError
dpkg : erreur de traitement de samba4 (--configure) :
 le sous-processus script post-installation installé a retourné une erreur de 
sortie d'état 1
Des erreurs ont été rencontrées pendant l'exécution :
 samba4

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-04 Thread kamahat
If  /etc/samba/smb.conf is remove the process do not run to the end 
if gives the defaulf smb.conf it complians
if gives en empty ready to be filled smb.conf not better

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-04 Thread kamahat
but if done by hand the process runs ok.

/usr/share/samba/setup/provision --realm=Zxxx.HOME --domain=Z -U
Administrateur --adminpass=xx  --server-role=dc --host-
ip=192.168.

Looking up IPv6 addresses
No IPv6 address will be assigned
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=z,DC=home
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
Setting up self join
Adding DNS accounts
Creating CN=MicrosoftDNS,CN=System,DC=zalin,DC=home
Creating DomainDnsZones and ForestDnsZones partitions
Populating DomainDnsZones and ForestDnsZones partitions
See /var/lib/samba/private/named.conf for an example configuration include file 
for BIND
and /var/lib/samba/private/named.txt for further documentation required for 
secure DNS updates
Setting up sam.ldb rootDSE marking as synchronized
Fixing provision GUIDs
A Kerberos configuration suitable for Samba 4 has been generated at 
/var/lib/samba/private/krb5.conf
A phpLDAPadmin configuration file suitable for administering the Samba 4 LDAP 
server has been created in /var/lib/samba/private/phpldapadmin-config.php .
Once the above files are installed, your Samba4 server will be ready to use
Server Role:   domain controller
Hostname:  dc1
NetBIOS Domain:Zxxx
DNS Domain:za.home
DOMAIN SID:S-1-5-21-1142979480-2134248061-x

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 990945] Re: samba-common doesn't read workgroup from smb.conf

2012-05-02 Thread kamahat
In a KVM I've run this set of command :

cat EOF/etc/network/interfaces
auto eth0
iface eth0 inet static
   address 192.168.64.xx
netmask 255.255.255.0
network 192.168.64.0
broadcast 192.168.64.255
gateway 192.168.64.y
EOF

apt-get install python-software-properties

echo dc1/etc/hostname
cat EOF/etc/resolv.conf
domain .home
nameserver 192.168.64.x
EOF

apt-get install ntp
sudo echo -e server 0.fr.pool.ntp.org\n server 1.fr.pool.ntp.org\n server 
2.fr.pool.ntp.org \n server 3.fr.pool.ntp.org  /etc/ntp.conf
service ntp restart

aptitude install  bind9 bind9utils dnsutils;
apt-get install build-essential libattr1-dev libblkid-dev gdb libgnutls-dev 
libreadline-gplv2-dev python-dev autoconf python-dnspython pkg-config  
libpopt-dev apparmor-utils  ldap-utils  libsasl2-modules-gssapi-mit
aptitude install samba4 samba4-clients krb5-user acl

# At that point It complain about smb.conf. That's ok, see this later

mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
chmod +x /usr/share/samba/setoption.pl
aa-complain /etc/apparmor.d/usr.sbin.named

/usr/share/samba/setup/provision --realm=Z.HOME --domain=Z -U
Administrateur --adminpass=1234 --server-role=dc --host-ip=192.168.64.xx

# since that point It should not complain anymore. 
# but any 'dpkg --configure -a' will complains.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/990945

Title:
  samba-common doesn't read workgroup from smb.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/990945/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs