[Samba] Samba LDAP and Ubuntu - Samba
This is a discussion on [Samba] Samba LDAP and Ubuntu - Samba ; Hi all
I don't know if it's a bug on Samba, LDAP or ubuntu, but I search for many times in google
and other sites, however I don't found any solution...
May be any one have the same problem in ...
-
[Samba] Samba LDAP and Ubuntu
Hi all
I don't know if it's a bug on Samba, LDAP or ubuntu, but I search for many times in google
and other sites, however I don't found any solution...
May be any one have the same problem in the past and get help me.
I install samba and LDAP on Ubuntu Server 7.04.
I using smbldap-tools...
However, when I reboot the system, the Ubuntu server don't work more...
It's stalled on services initialize...
I notice that the file nsswitch.conf on /etc, have this look:
passwd: files ldap
group: files ldap
shadow: files
When I change this lines to this:
passwd: files
group: files
shadow: files
All work fine! So, the system booting normaly...
Some can help me please!
Thanks
--
Atenciosamente
---
Gilberto Nunes
MSN: gilberto@bitmix.com.br
Fones: 47-3348-8020
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-
Re: [Samba] Samba LDAP and Ubuntu
I've not seen this problem before but maybe you should do some diagnosis of
your installation.
So - now you've rebooted and you're up and running, edit the nsswitch.conf
to put ldap back.
Now try some things to test the ldap configuration.
*Can you see your ldap database contents?*
Can can a try raw dump of the db:
slapcat
You can try a query to the daemon:
ldapsearch
and you can try a test of the nss_ldap library:
getent password
What do you see?
2008/6/24 Gilberto Nunes :
> Hi all
>
> I don't know if it's a bug on Samba, LDAP or ubuntu, but I search for many
> times in google
> and other sites, however I don't found any solution...
> May be any one have the same problem in the past and get help me.
> I install samba and LDAP on Ubuntu Server 7.04.
> I using smbldap-tools...
> However, when I reboot the system, the Ubuntu server don't work more...
> It's stalled on services initialize...
> I notice that the file nsswitch.conf on /etc, have this look:
>
> passwd: files ldap
> group: files ldap
> shadow: files
>
>
> When I change this lines to this:
>
> passwd: files
> group: files
> shadow: files
>
> All work fine! So, the system booting normaly...
>
> Some can help me please!
>
> Thanks
>
>
>
> --
> Atenciosamente
>
> ---
> Gilberto Nunes
> MSN: gilberto@bitmix.com.br
> Fones: 47-3348-8020
>
>
>
> --
> Esta mensagem foi verificada pelo sistema de antivírus e
> acredita-se estar livre de perigo.
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-
RE: [Samba] Samba LDAP and Ubuntu
and are you using hostnames in your configuration files
or ipadresses.
if hostnames, than you have dns problemens.
try ipadresses.
Louis
>-----Oorspronkelijk bericht-----
>Van: samba-bounces+belle=bazuin.nl@lists.samba.org
>[mailto:samba-bounces+belle=bazuin.nl@lists.samba.org] Namens
>Quinn Fissler
>Verzonden: dinsdag 24 juni 2008 14:29
>Aan: Gilberto Nunes
>CC: samba@lists.samba.org
>Onderwerp: Re: [Samba] Samba LDAP and Ubuntu
>
>I've not seen this problem before but maybe you should do some
>diagnosis of
>your installation.
>
>So - now you've rebooted and you're up and running, edit the
>nsswitch.conf
>to put ldap back.
>
>Now try some things to test the ldap configuration.
>
>*Can you see your ldap database contents?*
>Can can a try raw dump of the db:
>slapcat
>
>You can try a query to the daemon:
>ldapsearch
>
>and you can try a test of the nss_ldap library:
>getent password
>
>What do you see?
>
>
>2008/6/24 Gilberto Nunes :
>
>> Hi all
>>
>> I don't know if it's a bug on Samba, LDAP or ubuntu, but I
>search for many
>> times in google
>> and other sites, however I don't found any solution...
>> May be any one have the same problem in the past and get help me.
>> I install samba and LDAP on Ubuntu Server 7.04.
>> I using smbldap-tools...
>> However, when I reboot the system, the Ubuntu server don't
>work more...
>> It's stalled on services initialize...
>> I notice that the file nsswitch.conf on /etc, have this look:
>>
>> passwd: files ldap
>> group: files ldap
>> shadow: files
>>
>>
>> When I change this lines to this:
>>
>> passwd: files
>> group: files
>> shadow: files
>>
>> All work fine! So, the system booting normaly...
>>
>> Some can help me please!
>>
>> Thanks
>>
>>
>>
>> --
>> Atenciosamente
>>
>> ---
>> Gilberto Nunes
>> MSN: gilberto@bitmix.com.br
>> Fones: 47-3348-8020
>>
>>
>>
>> --
>> Esta mensagem foi verificada pelo sistema de antivírus e
>> acredita-se estar livre de perigo.
>>
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions: https://lists.samba.org/mailman/listinfo/samba
>>
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: https://lists.samba.org/mailman/listinfo/samba
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-
RE: [Samba] Samba LDAP and Ubuntu
Ok
Thanks for all responses...
Em Ter, Junho 24, 2008 9:46 am, L.P.H. van Belle escreveu:
> and are you using hostnames in your configuration files
> or ipadresses.
>
> if hostnames, than you have dns problemens.
> try ipadresses.
>
> Louis
>
>
>>-----Oorspronkelijk bericht-----
>>Van: samba-bounces+belle=bazuin.nl@lists.samba.org
>>[mailto:samba-bounces+belle=bazuin.nl@lists.samba.org] Namens
>>Quinn Fissler
>>Verzonden: dinsdag 24 juni 2008 14:29
>>Aan: Gilberto Nunes
>>CC: samba@lists.samba.org
>>Onderwerp: Re: [Samba] Samba LDAP and Ubuntu
>>
>>I've not seen this problem before but maybe you should do some
>>diagnosis of
>>your installation.
>>
>>So - now you've rebooted and you're up and running, edit the
>>nsswitch.conf
>>to put ldap back.
>>
>>Now try some things to test the ldap configuration.
>>
>>*Can you see your ldap database contents?*
>>Can can a try raw dump of the db:
>>slapcat
>>
>>You can try a query to the daemon:
>>ldapsearch
>>
>>and you can try a test of the nss_ldap library:
>>getent password
>>
>>What do you see?
>>
>>
>>2008/6/24 Gilberto Nunes :
>>
>>> Hi all
>>>
>>> I don't know if it's a bug on Samba, LDAP or ubuntu, but I
>>search for many
>>> times in google
>>> and other sites, however I don't found any solution...
>>> May be any one have the same problem in the past and get help me.
>>> I install samba and LDAP on Ubuntu Server 7.04.
>>> I using smbldap-tools...
>>> However, when I reboot the system, the Ubuntu server don't
>>work more...
>>> It's stalled on services initialize...
>>> I notice that the file nsswitch.conf on /etc, have this look:
>>>
>>> passwd: files ldap
>>> group: files ldap
>>> shadow: files
>>>
>>>
>>> When I change this lines to this:
>>>
>>> passwd: files
>>> group: files
>>> shadow: files
>>>
>>> All work fine! So, the system booting normaly...
>>>
>>> Some can help me please!
>>>
>>> Thanks
>>>
>>>
>>>
>>> --
>>> Atenciosamente
>>>
>>> ---
>>> Gilberto Nunes
>>> MSN: gilberto@bitmix.com.br
>>> Fones: 47-3348-8020
>>>
>>>
>>>
>>> --
>>> Esta mensagem foi verificada pelo sistema de antivírus e
>>> acredita-se estar livre de perigo.
>>>
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions: https://lists.samba.org/mailman/listinfo/samba
>>>
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: https://lists.samba.org/mailman/listinfo/samba
>>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
> --
> Esta mensagem foi verificada pelo sistema de antivírus e
> acredita-se estar livre de perigo.
>
>
--
Atenciosamente
---
Gilberto Nunes
MSN: gilberto@bitmix.com.br
Fones: 47-3348-8020
--
Esta mensagem foi verificada pelo sistema de antivírus e
acredita-se estar livre de perigo.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-
Re: [Samba] Samba LDAP and Ubuntu
Gilberto Nunes escreveu:
> I install samba and LDAP on Ubuntu Server 7.04.
> I using smbldap-tools...
> However, when I reboot the system, the Ubuntu server don't work more...
> It's stalled on services initialize...
> I notice that the file nsswitch.conf on /etc, have this look:
>
> passwd: files ldap
> group: files ldap
> shadow: files
>
>
> When I change this lines to this:
>
> passwd: files
> group: files
> shadow: files
>
> All work fine! So, the system booting normaly...
>
It is a known bug, I found on a bugzilla somewhere. The bug consists
that the booting process needs the ldap server before it gets started.
So, the workaround, for now, is to have a slave ldap server which you
can use at least for booting. In my /etc/ldap.conf I have:
# grep host /etc/ldap.conf
host 127.0.0.1 192.168.0.2
Obviously, 192.168.0.2 is another server on the network which is a slave
for localhost. This way the booting process will try localhost and then
192.168.0.2 and boots ok. I am not sure even if it really needs to be a
real slave, but I happen to have a real slave on my net, so I had no
problem.
Good luck
--
Marcio Merlone
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-
Re: [Samba] Samba LDAP and Ubuntu
Quoting Marcio Merlone (marcio.merlone@a1.ind.br):
> It is a known bug, I found on a bugzilla somewhere. The bug consists
> that the booting process needs the ldap server before it gets started.
> So, the workaround, for now, is to have a slave ldap server which you
> can use at least for booting. In my /etc/ldap.conf I have:
>
> # grep host /etc/ldap.conf
> host 127.0.0.1 192.168.0.2
That sounds like the following bug we fixed in the 2:3.0.30-3 Debian
package:
* add a soft dependency on slapd in init script to allow
proper operation when dependency-based boot sequence is enabled.
Thanks to Petter Reinholdtsen for reporting and providing a patch
Closes: #478800
In Debian, that bug hurts only people who use dependency-based init
(which is not the default for lenny...we'll switch to that for
post-lenny releases).
However, maybe Ubuntu already activated that. In such case, I'd bet
that all Ubuntu releases are affected (including Hardy).
The right fix is:
diff -ur samba-3.0.28a/debian/samba.init samba-3.0.28a-new/debian/samba.init
--- samba-3.0.28a/debian/samba.init 2008-05-01 09:50:43.000000000 +0200
+++ samba-3.0.28a-new/debian/samba.init 2008-05-01 09:48:12.000000000 +0200
@@ -4,6 +4,8 @@
# Provides: samba
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
+# Should-Start: slapd
+# Should-Stop: slapd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start Samba daemons (nmbd and smbd)
(the file to fix is /etc/init.d/samba)
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba