[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: [email]gilberto@bitmix.com.br[/email]
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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
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 <opts to suit>
and you can try a test of the nss_ldap library:
getent password
What do you see?
2008/6/24 Gilberto Nunes <gilberto@bitmix.com.br>:
[color=blue]
> 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: [email]gilberto@bitmix.com.br[/email]
> 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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>[/color]
--
To unsubscribe from this list go to the following URL and read the
instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
Re: [Samba] Samba LDAP and Ubuntu
Gilberto Nunes escreveu:[color=blue]
> 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...
>[/color]
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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
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
[color=blue]
>-----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: [email]samba@lists.samba.org[/email]
>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 <opts to suit>
>
>and you can try a test of the nss_ldap library:
>getent password
>
>What do you see?
>
>
>2008/6/24 Gilberto Nunes <gilberto@bitmix.com.br>:
>[color=green]
>> Hi all
>>
>> I don't know if it's a bug on Samba, LDAP or ubuntu, but I [/color]
>search for many[color=green]
>> 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 [/color]
>work more...[color=green]
>> 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: [email]gilberto@bitmix.com.br[/email]
>> 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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>>[/color]
>--
>To unsubscribe from this list go to the following URL and read the
>instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>[/color]
--
To unsubscribe from this list go to the following URL and read the
instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
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:[color=blue]
> and are you using hostnames in your configuration files
> or ipadresses.
>
> if hostnames, than you have dns problemens.
> try ipadresses.
>
> Louis
>
>[color=green]
>>-----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: [email]samba@lists.samba.org[/email]
>>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 <opts to suit>
>>
>>and you can try a test of the nss_ldap library:
>>getent password
>>
>>What do you see?
>>
>>
>>2008/6/24 Gilberto Nunes <gilberto@bitmix.com.br>:
>>[color=darkred]
>>> Hi all
>>>
>>> I don't know if it's a bug on Samba, LDAP or ubuntu, but I[/color]
>>search for many[color=darkred]
>>> 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[/color]
>>work more...[color=darkred]
>>> 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: [email]gilberto@bitmix.com.br[/email]
>>> 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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>>>[/color]
>>--
>>To unsubscribe from this list go to the following URL and read the
>>instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>>[/color]
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
>
> --
> Esta mensagem foi verificada pelo sistema de antivírus e
> acredita-se estar livre de perigo.
>
>[/color]
--
Atenciosamente
---
Gilberto Nunes
MSN: [email]gilberto@bitmix.com.br[/email]
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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]
Re: [Samba] Samba LDAP and Ubuntu
Quoting Marcio Merlone (marcio.merlone@a1.ind.br):
[color=blue]
> 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[/color]
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: [url]https://lists.samba.org/mailman/listinfo/samba[/url]