Difference between revisions of "Suse"

From In The Wings
Jump to navigation Jump to search
 
 
Line 1: Line 1:
 
==Suse 10 Enterprise==
 
==Suse 10 Enterprise==
 
A recent problem I faced with this distribution was caused by a combination of OpenLDAP and autofs. The problem stemmed from a difference in the way autofs can be stored in OpenLDAP. The older format stipulates a format such as this:
 
A recent problem I faced with this distribution was caused by a combination of OpenLDAP and autofs. The problem stemmed from a difference in the way autofs can be stored in OpenLDAP. The older format stipulates a format such as this:
<code>
+
<pre>
 
/home ldap:nisMapName=auto.home,dc=blah,dc=blah2 -rw,async,nfsvers=3,udp
 
/home ldap:nisMapName=auto.home,dc=blah,dc=blah2 -rw,async,nfsvers=3,udp
</code>
+
</pre>
 
The newer format is looking for a format like this:
 
The newer format is looking for a format like this:
<code>
+
<pre>
 
/home ldap ldap://<host>/basedn
 
/home ldap ldap://<host>/basedn
</code>
+
</pre>
 
Eventually the fix was found to be to add a line to the /etc/init.d/autofs script that output a properly formatted automount string:
 
Eventually the fix was found to be to add a line to the /etc/init.d/autofs script that output a properly formatted automount string:
<code>
+
<pre>
 
(in getmounts_ldap() section)
 
(in getmounts_ldap() section)
  
Line 17: Line 17:
 
   )
 
   )
 
)
 
)
</code>
+
</pre>

Latest revision as of 18:34, 7 March 2007

Suse 10 Enterprise

A recent problem I faced with this distribution was caused by a combination of OpenLDAP and autofs. The problem stemmed from a difference in the way autofs can be stored in OpenLDAP. The older format stipulates a format such as this:

/home ldap:nisMapName=auto.home,dc=blah,dc=blah2 -rw,async,nfsvers=3,udp

The newer format is looking for a format like this:

/home ldap ldap://<host>/basedn

Eventually the fix was found to be to add a line to the /etc/init.d/autofs script that output a properly formatted automount string:

(in getmounts_ldap() section)

     maptype=`echo $maptype | sed -e 's/:/\ /g'`
     echo "$DAEMON $daemonoptions $dir $maptype \"$map\""
  done
  )
)