[Samba] Samba+LDAP problems
Marcelo Mogrovejo
marcejef at gmail.com
Tue Oct 30 17:59:05 GMT 2007
Edmundo Valle Neto wrote:
> If it was asked to the list answer to the list please, other people
> can not guess what was already answered.
> Sending it back ...
>
> (...)
>
>>>
>>> Trying to add anything else works?
>> with de command line a don't know how add another thing, but with
>> phpldapadmin i can add for example users.
>
> The best documentation are from smbldap-tools project [1] and samba
> [2], [3].
>
>>> (...)
>>> I don't use LAM, but use smbldap-tools and phpldapadmin. In turn to
>>> saying that the services aren't properly configured (as nothing
>>> worked and you said that there isnt anything like that in google), I
>>> think helps begin from the beginning.
>>>
>>> Are all services running in the same machine?
>> before, services were running now, i don't know what happen but slapd
>> doesn't work when i write /etc/init.d/slapd start as root in command
>> line, the syslog show me this:
>>
>> Oct 29 16:31:56 skull1 slapd[12409]: @(#) $OpenLDAP: slapd 2.3.38
>> (Sep 17 2007 21:09:04) $
>> ^Iroot at monster:/tmp/buildd/openldap2.3-2.3.38/debian/build/servers/slapd
>> Oct 29 16:31:57 skull1 slapd[12410]: bdb_db_open: Database cannot be
>> opened, err 13. Restore from backup!
>> Oct 29 16:31:57 skull1 slapd[12410]: bdb(dc=skull-one,dc=com,dc=ar):
>> DB_ENV->lock_id_free interface requires an environment configured for
>> the locking subsystem
>> Oct 29 16:31:57 skull1 slapd[12410]: bdb(dc=skull-one,dc=com,dc=ar):
>> txn_checkpoint interface requires an environment configured for the
>> transaction subsystem
>> Oct 29 16:31:57 skull1 slapd[12410]: bdb_db_close: txn_checkpoint
>> failed: Invalid argument (22)
>> Oct 29 16:31:57 skull1 slapd[12410]: backend_startup_one: bi_db_open
>> failed! (13)
>> Oct 29 16:31:57 skull1 slapd[12410]: bdb_db_close: alock_close failed
>> Oct 29 16:31:57 skull1 slapd[12410]: slapd stopped.
>> Oct 29 16:31:57 skull1 slapd[12410]: connections_destroy: nothing to
>> destroy.
>>
>> i don't know why... yesterday it work perfectly.
>
> Probably your database is corrupted, you can try to fix it, recover a
> backup, or if you don't have a backup and nothing works, start it
> over. If you don't know how to make any of the alternatives, maybe is
> time to learn a little more about how LDAP works, before trying to use
> it.
>
>>> You said that you are using Debian right?
>> yes
>>> The package 3.0.26a doesn't come with the stable release "Etch",
>>> which release are you using?
>> i have debian sid (unstable release)
>
> I don't recommend it in servers. And don't recommend it in desktops if
> you don't know how to solve your own problems.
>
>>> How do you configure your apt repositories and install your
>>> packages? (if the packages related with the problem didn't came from
>>> the stable repository, helps write its versions).
>> i configured my apt repository manualy with nano -w
>> /etc/apt/sources.list and my repositories are:
>>
>> deb http://ftp.uk.debian.org/debian/ sid main non-free contrib
>> deb-src http://ftp.uk.debian.org/debian/ sid main non-free contrib
>>
>> ldap-account-manage 2.0.0-1
>> ldap-utils 2.3.38-1
>> slapd 2.3.38-1
>> smbldap-tools 0.9.4-1
>> phpldapadmin 0.9.8.4-2
>>
>> i think that all packages are there...
>
> Ok. Everything from Sid.
>
>>> How did you populated your LDAP tree?
>> i can't populate my LDAP tree jet ...
>
> The package drops a working database practically with only the root
> and administrator DNs. I mean prepare it be used by samba, creating
> the needed OUs and domain information.
>
>>> One detail. smbldap-tools doesn't use samba to do its job, it
>>> connects to LDAP directly, so, supposing that you have configured
>>> smbldap-tools properly, its very unlikely that the problem has
>>> anything to do with the samba package, as you have noticed that
>>> changing versions doesn't solve the problem.
>> aahh. ok.
>>
>> thanks and best regards
>
> 1. http://download.gna.org/smbldap-tools/docs/
> 2. http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/
> 3. http://us4.samba.org/samba/docs/man/Samba-Guide/
Thanks for this docs, i'm starting to read it and then i'll follow to ask.
Regards
More information about the samba
mailing list