[Bash-completion-devel] [bash-completion-Bugs][314523] bash completion with autofs and ldap make ldap overload
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Fri Nov 22 14:24:46 UTC 2013
bash-completion-Bugs item #314523, was opened at 22/11/2013 14:24
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314523&group_id=100114
Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: bash completion with autofs and ldap make ldap overload
Distribution: Debian
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
Hello,
I use autofs with ldap maps to mount nfs groups dirs.
in my case, autofs handle /home .
if i go to /home , and press for exemple z<TAB to use bash completion, it make ldap request and try to mount all.results:
root at a12p51:~# cd /home
root at a12p51:/home# z<TAB>
zcat zdiff zeisstopnm zfgrep zic zipgrep zipsplit zmore zxpdf
zcav zdump zeitgeist-daemon zforce zip zipinfo zjsdecode znew
zcmp zegrep zenity zgrep zipcloak zipnote zless zsoelim
---------------------
Whats this make in autofs and ldap:
ookup_mount: lookup(ldap): looking up z
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
get_query_dn: lookup(ldap): found query dn ou=auto.home,ou=autofs,dc=fil.univ-lille1,dc=fr
lookup_one: lookup(ldap): searching for "(&(objectclass=automount)(|(cn=z)(cn=/)(cn=\2A)))" under "ou=auto.home,ou=autofs,dc=fil.univ-lille1,dc=fr"
lookup_one: lookup(ldap): getting first entry for cn="z"
lookup_one: lookup(ldap): got answer, but no entry for (&(objectclass=automount)(|(cn=z)(cn=/)(cn=\2A)))
key "z" not found in map source(s).
dev_ioctl_send_fail: token = 322
failed to mount /home/z
handle_packet: type = 3
handle_packet_missing_indirect: token 323, name zcat, request pid 3570
attempting to mount entry /home/zcat
lookup_mount: lookup(ldap): looking up zcat
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
lookup_one: lookup(ldap): searching for "(&(objectclass=automount)(|(cn=zcat)(cn=/)(cn=\2A)))" under "ou=auto.home,ou=autofs,dc=fil.univ-lille1,dc=fr"
lookup_one: lookup(ldap): getting first entry for cn="zcat"
lookup_one: lookup(ldap): got answer, but no entry for (&(objectclass=automount)(|(cn=zcat)(cn=/)(cn=\2A)))
key "zcat" not found in map source(s).
dev_ioctl_send_fail: token = 323
failed to mount /home/zcat
handle_packet: type = 3
handle_packet_missing_indirect: token 324, name zdiff, request pid 3570
attempting to mount entry /home/zdiff
lookup_mount: lookup(ldap): looking up zdiff
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
lookup_one: lookup(ldap): searching for "(&(objectclass=automount)(|(cn=zdiff)(cn=/)(cn=\2A)))" under "ou=auto.home,ou=autofs,dc=fil.univ-lille1,dc=fr"
lookup_one: lookup(ldap): getting first entry for cn="zdiff"
lookup_one: lookup(ldap): got answer, but no entry for (&(objectclass=automount)(|(cn=zdiff)(cn=/)(cn=\2A)))
key "zdiff" not found in map source(s).
dev_ioctl_send_fail: token = 324
failed to mount /home/zdiff
handle_packet: type = 3
handle_packet_missing_indirect: token 325, name zeisstopnm, request pid 3570
attempting to mount entry /home/zeisstopnm
lookup_mount: lookup(ldap): looking up zeisstopnm
do_bind: lookup(ldap): auth_required: 1, sasl_mech (null)
do_bind: lookup(ldap): ldap simple bind returned 0
lookup_one: lookup(ldap): searching for "(&(objectclass=automount)(|(cn=zeisstopnm)(cn=/)(cn=\2A)))" under "ou=auto.home,ou=autofs,dc=fil.univ-lille1,dc=fr"
lookup_one: lookup(ldap): getting first entry for cn="zeisstopnm"
lookup_one: lookup(ldap): got answer, but no entry for (&(objectclass=automount)(|(cn=zeisstopnm)(cn=/)(cn=\2A)))
key "zeisstopnm" not found in map source(s).
dev_ioctl_send_fail: token = 325
failed to mount /home/zeisstopnm
-----
And this fao all the result.
If i go to /home and press <TAB><TAB> this make aver 4000 request to ldap and make the server averloaded.
There is a solution to this problem?
Thank you!
Mike
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=314523&group_id=100114
More information about the Bash-completion-devel
mailing list