opensuse 13.2 autofs

Hi,

How to configure autofs for opensuse 13.2 ?

I have machine running with opensuse 13.2 ldap client authenticated.

I would like to have autofs via ldap.


linux-g4vv:~ # rcautofs status
autofs.service - Automounts filesystems on demand
   Loaded: loaded (/usr/lib/systemd/system/autofs.service; disabled)
   Active: active (running) since Tue 2014-11-18 13:56:00 MYT; 10min ago
     Docs: man:automount(8)
           man:autofs(5)
  Process: 2807 ExecStart=/usr/sbin/automount ${AUTOFS_OPTIONS} -p /var/run/automount.pid (code=exited, status=0/SUCCESS)
 Main PID: 2809 (automount)
   CGroup: /system.slice/autofs.service
           ââ2809 /usr/sbin/automount  -p /var/run/automount.pid

Nov 18 13:56:00 linux-g4vv automount[2807]: failed to to open old config /etc/sysconfig/autofs

Thanks.

According to your code snippet,
autofs support is already available on your system, in fact it was active 10min before you queried its status.

It appears to be available for use, just not running regularly which would not be unexpected. There are many functions which don’t have to be running all the time but are available for use when needed.

TSU

Hi tsu2,

How to configure autofs work with ldap ?

I used to have autofs automount via ldap.

In the code there show: failed to to open old config /etc/sysconfig/autofs

In previous version, it was easy to configure autofs together when I setup ldap client.

Thanks.

Does:

man autofs_ldap_auth.conf

help?

I wouldn’t know for sure without looking at your original configuration.
A few months ago I was looking at another app that preferred autofs, but because openSUSE <=13.1 did not support autofs natively, alternative similar fs was used. So, although I haven’t closely inpsected 13.2 support for autofs, all superficial indications suggest new, native support which would likely require some changes in configuration.

I’m curious why your preference to use autofs? The places I’ve seen it used is to support interoperability between fs, eg creating a template which might be applied to unknown systems which might be running any kind of fs. In that case, a template on autofs might be readable no matter what the native, installed fs.

So, curious if you’re using autofs in a similar way or if you’re making your configuration more complex than it has to be.

TSU

I updated 3 machines from 13.1 to 13.2 without any trouble concerning autofs. But on the machine I set up from scratch to 13.2, autofs refuses to work, showing the above mentioned symtoms. Me question is, what is the difference in startup skripts taken over from 13.1 to the new ones in 13.2? If someone could give me a hint what skripts to look at, I could do the comparison beween my diffent installations.

I’ve had the same problem, the solution was to copy an unmodified backup of /etc/sysconfig/autofs from OpenSUSE 13.1. This file was just not present under my freshly installed 13.2
Hope that helps others.

Here is the content of /etc/sysconfig/autofs (I just left out the comments, the rest was not modified so it should work)


AUTOFS_OPTIONS=""
LOCAL_OPTIONS=""
APPEND_OPTIONS="yes"
USE_MISC_DEVICE="yes"
DEFAULT_MASTER_MAP_NAME="auto.master"
DEFAULT_TIMEOUT=600
DEFAULT_BROWSE_MODE="yes"
DEFAULT_LOGGING="none"
DEFAULT_MAP_OBJECT_CLASS="nisMap"
DEFAULT_ENTRY_OBJECT_CLASS="nisObject"
DEFAULT_MAP_ATTRIBUTE="nisMapName"
DEFAULT_ENTRY_ATTRIBUTE="cn"
DEFAULT_VALUE_ATTRIBUTE="nisMapEntry"
DEFAULT_AUTH_CONF_FILE="etc/autofs_ldap_auth.conf"
MAP_HASH_TABLE_SIZE=1024

It would be better if you describe your problem from the beginning. This thread so far did not mention anything related to autofs refuses to work, so it is not clear which symptoms you mean. Just explain your issue without referring to something else.