OpenLDAP Client Tools

tommatt

Neuer User
Mitglied seit
22 Dez 2006
Beiträge
25
Punkte für Reaktionen
0
Punkte
0
Hi,

ich würde ganz gerne die VPN Authorisierung an meinem PDC vornehmen. Hat hier schon mal einer was gelesen, gehört, wie ich die ldap client tools auf die Box bekomme um ein Authorisierungsscript ala:

ldapwhoami -x -h X.X.X.X -D uid=$username,ou=UserObjects,dc=werweissdasschon,d c=nu -w $password

laufen lassen zu können?

Gruss

Tom
 
Hi,

zumindest mal ein Anfang:
- Source (stable: openldap-2.3.39) heruntergeladen und entpackt
- kleiner Patch (s.u.)
- Pfad auf freetz toolchain bin's gesetzt
- configure ausgeführt (leider hat das nicht wie erwünscht zu statischen Binaries geführt...)
Code:
export PATH=/home/joerg/freetz-trunk/toolchain/target/bin:$PATH
./configure --build=i386-linux-gnu --target=mipsel-linux --host=mipsel-linux  CC="mipsel-linux-gcc" CFLAGS="-Os -pipe -march=4kc -Wa,--trap" --with-tls  --disable-slapd --disable-slurpd  --with-yielding_select=no --without-rewrite --without-overlays --with-gnu-ld --enable-static --enable-shared=no

Hier noch der Tipp von hier http://lists.samba.org/archive/samba-technical/2006-January/045048.html

[...]
I found a workaround.

I'm posting it here in case if anyone ever wanted to cross-compile Samba
with LDAP support for Linux / mipsel / uclibc.

"lutil_memcmp" comes from OpenLDAP [noparse](2.3.18)[/noparse].

It is defined in openldap-2.3.18/include/ac/string.h

To get around this issue, you have to comment out lines 92-95 in that file:

/*#ifdef NEED_MEMCMP_REPLACEMENT
int (lutil_memcmp)(const void *b1, const void *b2, size_t len);
#define memcmp lutil_memcmp
#endif*/

Interestingly, it isn't used anywhere else.

Then, compile OpenLDAP once again, and Samba's ./configure (gcc really)
script shouldn't complain again.

Of course, I don't know if it doesn't break things...


--
Tomasz Chmielewski
http://wpkg.org

Wie gesagt, leider keine statischen Binaries, auf meiner Box meckern die noch fehlende libs an, aber da kannst du vielleicht noch etwas weiter nachschauen...

Jörg
 

Anhänge

Weil ich gefragt wurde: Hier mal die OpenldapTools vom openldap-2.4.19 statisch gelinkt. Der Trick für das statische Bauen war "make LTSTATIC="-all-static" (weil libtools genutzt werden).

Jörg
 

Anhänge

Zuletzt bearbeitet:
Kostenlos!

Statistik des Forums

Themen
248,920
Beiträge
2,305,093
Mitglieder
378,642
Neuestes Mitglied
QuickBooks2028