Skip to contentSkip to conversation

mount options can not be parsed in auto.master with ldap map

DISCUSSION Olivier Blin 3 participants 6 messages Jan 18, 2008 – Feb 13, 2008 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hello,

Since the "LDAP base dns with spaces" patch series has been applied, automount can't parse anymore the mount options in auto.master. It looks like it includes the mount options after the space when parsing the base dn.

Here is my auto.master file:

$ grep -v "^#" /chroot/cooker/etc/autofs/auto.master
/home   ldap:ou=auto.home,ou=Mounts,dc=mandriva,dc=com rw,nosuid,nodev,soft,intr,relatime

It fails this way:

# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table

Regards,

Signature · 1 line
Olivier Blin (blino) - Mandriva
maintainer
#1 lore raw
Quoted 12 lines · Olivier Blin

Hello,

Since the "LDAP base dns with spaces" patch series has been applied, automount can't parse anymore the mount options in auto.master. It looks like it includes the mount options after the space when parsing the base dn.

Here is my auto.master file:

$ grep -v "^#" /chroot/cooker/etc/autofs/auto.master
/home   ldap:ou=auto.home,ou=Mounts,dc=mandriva,dc=com rw,nosuid,nodev,soft,intr,relatime

It fails this way:

Quoted 8 lines
# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table

Yep, I've had trouble with satisfying that requirement along the way. I'll check.

Ian

maintainer
#2 lore raw
In reply to Olivier Blin
Quoted 12 lines · Olivier Blin

Hello,

Since the "LDAP base dns with spaces" patch series has been applied, automount can't parse anymore the mount options in auto.master. It looks like it includes the mount options after the space when parsing the base dn.

Here is my auto.master file:

$ grep -v "^#" /chroot/cooker/etc/autofs/auto.master
/home   ldap:ou=auto.home,ou=Mounts,dc=mandriva,dc=com rw,nosuid,nodev,soft,intr,relatime

It fails this way:

Quoted 8 lines
# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table

Please give this patch a try
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-basedn-with-spaces-fix-3.patch

Ian

#3 lore raw
Quoted 22 lines · Ian Kent
Quoted 12 lines · Olivier Blin

Hello,

Since the "LDAP base dns with spaces" patch series has been applied, automount can't parse anymore the mount options in auto.master. It looks like it includes the mount options after the space when parsing the base dn.

Here is my auto.master file:

$ grep -v "^#" /chroot/cooker/etc/autofs/auto.master
/home   ldap:ou=auto.home,ou=Mounts,dc=mandriva,dc=com rw,nosuid,nodev,soft,intr,relatime

It fails this way:

Quoted 8 lines
# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table
Quoted 2 lines

Please give this patch a try
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-basedn-with-spaces-fix-3.patch

It works great, thanks a lot!

Signature · 1 line
Olivier Blin (blino) - Mandriva
#4 lore raw
Quoted 12 lines · Olivier Blin
Quoted 10 lines · Ian Kent
Quoted 9 lines · Olivier Blin

It fails this way:

# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table
Quoted 5 lines
Quoted 2 lines

Please give this patch a try
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-basedn-with-spaces-fix-3.patch

It works great, thanks a lot!

Lucky me, I ran into this with Fedora 8 just as I'm testing our migration to LDAP. Will we see an update for F8 soon?

Signature · 5 lines
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  [email protected]
Boulder, CO 80301              http://www.cora.nwra.com
maintainer
#5 lore raw
Quoted 13 lines · Orion Poplawski
Quoted 12 lines · Olivier Blin
Quoted 10 lines · Ian Kent
Quoted 9 lines · Olivier Blin

It fails this way:

# automount -d -f
Starting automounter version 5.0.3, master map auto.master
using kernel protocol version 5.00
lookup_nss_read_master: reading master files auto.master
parse_init: parse(sun): init gathered global options: (null)
lookup_read_master: lookup(file): read entry /home
syntax error in map near [ nosuid ]
no mounts in table
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

Please give this patch a try
http://www.kernel.org/pub/linux/daemons/autofs/v5/autofs-5.0.3-basedn-with-spaces-fix-3.patch

It works great, thanks a lot!

Lucky me, I ran into this with Fedora 8 just as I'm testing our migration to LDAP. Will we see an update for F8 soon?

Oops, I've been a bit busy, I need to update F8, yes, soon as I can.

Ian