Hi list,

Today i solved a weird problem with autofs v.4 and openldap.
I set up an automount antry on the ldap server:

# hda1,auto.rmdisks,ANT,DE
dn: cn=hda1,ou=auto.rmdisks,o=ANT,c=DE
objectClass: automount
cn: hda1
automountInformation: :/dev/hda1

I used the gq GUI to enter the information and it looked fine.

However, when trying to access /rmdisks/hda1, the machine froze! No error 
message, no entry in syslog and i had to do a hard reset.
Accidently, when i did a simple "ldapsearch" on the server i noticed that the 
automountInfromation entry was:

        automountInformation:: Oi9kZXYvaGRhMQ==

This is because the entry starts with a colon and is therefore represented in 
base64 notation. You normally don't run into this problem since usually the 
entry starts with "-fstype=...", but i left it out because i suspected problems 
with it. After putting "-fstype=auto" in front of it, all was fine:-)

I don't know if this behaviour is a bug or a feature, but I would definitely 
prefer an error message over a frozen machine!

Have fun!

-- 

Heinrich Rebehn
                         "Have disk - will travel"
University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -

E-mail: mailto:[EMAIL PROTECTED]
Phone : +49/421/218-4664
Fax   :            -3341

Reply via email to