Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46387 - Info missing from ldap auth guide...
Summary: Info missing from ldap auth guide...
Status: VERIFIED LATER
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Docs Team
URL: http://duffolonious.biz/wiki/index.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-31 11:38 UTC by Bryan Duff
Modified: 2006-01-26 10:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan Duff 2004-03-31 11:38:03 UTC
Problem 1:
When doing an ldap ldapsearch, if you get a SASL error:

ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
        additional info: SASL(-13): user not found: no secret in database

add '-w' to your ldapsearch arguments.
----------------------
Problem2:
Before importing, get rid of the 'objectClass: account' lines from the group.ldif and passwd.ldif

sed '/^objectClass: account.*/d;' [group|passwd].ldif > [group2|passwd2].ldif
then:
ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/[group|passwd]2.ldif

Reproducible: Always
Steps to Reproduce:
ldapsearch problem:
1. ldapsearch -D "cn=Manager,dc=genfic,dc=com" -W

ldapadd problem:
1. ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/group.ldif
2. ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/passwd.ldif
Actual Results:  
ldapsearch problem:
error: 
ldap_sasl_interactive_bind_s: Internal (implementation specific) error (80)
        additional info: SASL(-13): user not found: no secret in database

ldapadd problem:
error: 
no object found
(doesn't add group and passwd ldif's to database).

Expected Results:  
ldapsearch problem:
solution: add '-w' to ldapsearch arguments for simple authentication.

ldapadd problem:
solution: use the sed command on group.ldif and passwd.ldif, then try
ldapadd'ing them, mentioned in details:
sed '/^objectClass: account.*/d;' [group|passwd].ldif > [group2|passwd2].ldif
ldapadd -D "cn=Manager,dc=genfic,dc=com" -W -f /tmp/[group|passwd]2.ldif
(it should add successfully now).

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r9)
=================================================================
System uname: 2.4.20-gentoo-r9 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.3.8p1
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled
]
Autoconf: sys-devel/autoconf-2.57-r1
Automake: sys-devel/automake-1.7.2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O1 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/co
nfig /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qm
ail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=i686 -O1 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.pu
rdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/L
inux/distributions/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aavm apache2 apm arts avi berkdb crypt cups encode esd foomaticdb gd gdbm
 gif gpm gtk2 imlib innodb java jpeg ldap libg++ libwww mad mikmod motif mpeg my
sql ncurses nls oggvorbis opengl oss pam pdflib perl png python quicktime readli
ne samba sasl sdl slang spell ssl svga tcltk tcpd tiff truetype usb x86 xml2 xmm
s xv zlib"
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-04-25 11:36:43 UTC
The doc is unlinked because we can't really maintain it (too little resources, too  complex material).
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2006-01-26 10:24:31 UTC
Closing this bug as per Josh's request in gentoo-doc's ML.