PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Samba mit ADS unter Debian



leo_80
26.08.12, 18:38
Hallo liebe Forumgemeinde,

Ich versuche Samba mit ADS unter Debian zu bauen.
krb5-dev, libldap-dev ldap-tools habe ich installiert

bei sldap gibt es Problemme

apt-get install slapd


Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libltdl7 libperl5.10 libslp1 odbcinst odbcinst1debian2 unixodbc
Suggested packages:
slpd openslp-doc libmyodbc odbc-postgresql tdsodbc unixodbc-bin
The following NEW packages will be installed:
libltdl7 libperl5.10 libslp1 odbcinst odbcinst1debian2 slapd unixodbc
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2325 kB of archives.
After this operation, 5714 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.de.debian.org/debian/ squeeze/main libltdl7 amd64 2.2.6b-2 [296 kB]
Get:2 http://ftp.de.debian.org/debian/ squeeze/main libperl5.10 amd64 5.10.1-17squeeze3 [1160 B]
Get:3 http://ftp.de.debian.org/debian/ squeeze/main libslp1 amd64 1.2.1-7.8 [55.7 kB]
Get:4 http://ftp.de.debian.org/debian/ squeeze/main odbcinst amd64 2.2.14p2-1 [39.0 kB]
Get:5 http://ftp.de.debian.org/debian/ squeeze/main odbcinst1debian2 amd64 2.2.14p2-1 [78.4 kB]
Get:6 http://ftp.de.debian.org/debian/ squeeze/main unixodbc amd64 2.2.14p2-1 [266 kB]
Get:7 http://ftp.de.debian.org/debian/ squeeze/main slapd amd64 2.4.23-7.2 [1589 kB]
Fetched 2325 kB in 6s (348 kB/s)
Preconfiguring packages ...
Selecting previously deselected package libltdl7.
(Reading database ... 28861 files and directories currently installed.)
Unpacking libltdl7 (from .../libltdl7_2.2.6b-2_amd64.deb) ...
Selecting previously deselected package libperl5.10.
Unpacking libperl5.10 (from .../libperl5.10_5.10.1-17squeeze3_amd64.deb) ...
Selecting previously deselected package libslp1.
Unpacking libslp1 (from .../libslp1_1.2.1-7.8_amd64.deb) ...
Selecting previously deselected package odbcinst.
Unpacking odbcinst (from .../odbcinst_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package odbcinst1debian2.
Unpacking odbcinst1debian2 (from .../odbcinst1debian2_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.14p2-1_amd64.deb) ...
Selecting previously deselected package slapd.
Unpacking slapd (from .../slapd_2.4.23-7.2_amd64.deb) ...
Processing triggers for man-db ...
Setting up libltdl7 (2.2.6b-2) ...
Setting up libperl5.10 (5.10.1-17squeeze3) ...
Setting up libslp1 (1.2.1-7.8) ...
Setting up odbcinst (2.2.14p2-1) ...
Setting up odbcinst1debian2 (2.2.14p2-1) ...
Setting up unixodbc (2.2.14p2-1) ...
Setting up slapd (2.4.23-7.2) ...
Creating new user openldap... done.
slappasswd: /usr/lib/libsasl2.so.2: no version information available (required by slappasswd)
slappasswd: /usr/lib/libsasl2.so.2: no version information available (required by /usr/lib/libldap_r-2.4.so.2)
Creating initial configuration... Loading the initial configuration from the ldif file () failed with
the following error while running slapadd:
slapadd: /usr/lib/libsasl2.so.2: no version information available (required by slapadd)
slapadd: /usr/lib/libsasl2.so.2: no version information available (required by /usr/lib/libldap_r-2.4.so.2)
slap_sasl_init: auxprop add plugin failed
slapadd: slap_init failed!
dpkg: error processing slapd (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

Das configure von Samba sagt


checking for the Darwin initgroups system call... no
checking for fcntl locking... yes
checking for broken (glibc2.1/x86) 64 bit fcntl locking... no
checking for 64 bit fcntl locking... yes
checking for broken posix_fallocate... no
checking for st_blocks in struct stat... yes
checking for blksize_t... yes
checking for blkcnt_t... yes
checking for st_blksize in struct stat... yes
checking for st_flags in struct stat... no
checking for broken nisplus include files... yes
checking if the realpath function allows a NULL argument... yes
checking whether to use AFS clear-text auth... no
checking whether to use AFS fake-kaserver... no
checking whether to use AFS ACL mapping module... no
checking whether to use DFS clear-text auth... no
checking for LDAP support... yes
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking lber.h usability... yes
checking lber.h presence... yes
checking for lber.h... yes
checking for ber_tag_t... yes
checking for ber_scanf in -llber... yes
checking for ber_sockbuf_add_io... yes
checking for LDAP_OPT_SOCKBUF... yes
checking for LBER_OPT_LOG_PRINT_FN... yes
checking for ldap_init in -lldap... no
checking for ldap_set_rebind_proc... no
checking whether ldap_set_rebind_proc takes 3 arguments... 3
checking for ldap_initialize... no
configure: error: libldap is needed for LDAP support

Grüsse Felipe

derRichard
26.08.12, 22:01
hast du die meldungen überhaupt gelesen?

//richard

nopes
26.08.12, 23:02
Hi,


slapadd: /usr/lib/libsasl2.so.2: no version information available (required by slapadd)
slapadd: /usr/lib/libsasl2.so.2: no version information available (required by /usr/lib/libldap_r-2.4.so.2)

Nun hier mal die Man für dpgk (http://manpages.debian.net/cgi-bin/man.cgi?query=dpkg&apropos=0&sektion=0&manpath=Debian+6.0+squeeze&format=html&locale=de).
Nun finde heraus welches Paket diese Datei installiert, das geht mit:
dpkg -S libsasl2.so.2Checke ob das Paket installiert ist, das erledigt dieser Befehl:
dpkg -s paketnameUnd so kriegst du raus welche Dateien vom Paket installiert werden:
dpkg -L paketname

Btw. du willst vermutlich diese Pakete installiert haben:

libsasl2-2 (http://packages.debian.org/squeeze/libsasl2-2)
libsasl2-modules (http://packages.debian.org/squeeze/libsasl2-modules)
libsasl2-modules-ldap (http://packages.debian.org/squeeze/libsasl2-modules-ldap)
libsasl2-dev (http://packages.debian.org/squeeze/libsasl2-dev). Optional, nur notwendig, wenn du selber was kompilieren willst.


Davon ab kannst du prüfen, was mit der besagt Datei los ist, erledigt dieser Befehl:
file /usr/lib/libsasl2.so.2
Vermutlicher wird er dir sagen, dass die Datei ein Link auf eine andere Datei im selben Verzeichnis ist, dass wäre jedenfalls zu erwarten. Nun kannst du checken, ob die Lib aus dem Paket (dpkg -L ...) zum Link passt. Wenn nicht, ja dann frage dich warum!

Nun was auch nicht schaden kann, prüfe ob, es die Datei an verschiedenen Orten im System gibt (http://manpages.debian.net/cgi-bin/man.cgi?query=find&apropos=0&sektion=0&manpath=Debian+6.0+squeeze&format=html&locale=de) und prüfe ebenfalls, ob es offensichtliche Unterschiede gibt (http://manpages.debian.net/cgi-bin/man.cgi?query=stat&apropos=0&sektion=0&manpath=Debian+6.0+squeeze&format=html&locale=de), auch hier wäre zu klären warum. Natürlich kannst du auch noch prüfen, ob die richtige Datei verwendet wird (http://manpages.debian.net/cgi-bin/man.cgi?query=ldconfig&apropos=0&sektion=0&manpath=Debian+6.0+squeeze&format=html&locale=en).

Wie auch immer, erst wenn du die Pakete vernünftig installieren kannst, mache mit dem Samba weiter.

leo_80
27.08.12, 00:17
hmm,

also gelesen habe diese schon aber wohl nicht aufmerksam genug.
also libsasl2 gehört zu cyrus-sasl und denn habe selber kompiliert womit ich wohl die Datei die sich schon auf dem system befand überschrieben habe.

Leider

derRichard
27.08.12, 01:51
hmm,

also gelesen habe diese schon aber wohl nicht aufmerksam genug.
also libsasl2 gehört zu cyrus-sasl und denn habe selber kompiliert womit ich wohl die Datei die sich schon auf dem system befand überschrieben habe.

Leider

ja, du hast dein system geschrottet...

//richard

leo_80
27.08.12, 14:42
Vielen Dank,

Ich habe nun openldap kompiliert, das hat funktioniert.

TheDarkRose
27.08.12, 15:56
Nur so nebenbei, Samba3 hat keine AD-Unterstützung

leo_80
28.08.12, 18:45
Sicher Samba kann einer AD Domäne beitretten und mit winbind und nsswitch können die AD Benutzer und gruppen im Dateisystem benutzt werden.

derRichard
28.08.12, 18:48
Sicher Samba kann einer AD Domäne beitretten und mit winbind und nsswitch können die AD Benutzer und gruppen im Dateisystem benutzt werden.

stimmt.
TheDarkRose dachte bestimmt du willst samba3 als ad-server verwenden.

//richard

TheDarkRose
28.08.12, 20:18
stimmt.
TheDarkRose dachte bestimmt du willst samba3 als ad-server verwenden.

//richard

ACK, so kam es rüber.

leo_80
03.09.12, 15:07
Es tut mir leid, ich habe mich wohl nicht Ordnungsgemäss ausgedrückt, dies lag vermutlich daran das ich schon viele Stunden auf war.

Felipe