LQ Newbie
Registered: Nov 2010
Posts: 2
Original Poster
Rep:
|
Thank you Acid...
We are using Active Directory and I have very very little flexibility over this. I cannot do anything with openLdap. I am using the standard autofs schema with autofs5 ( automountKey, automountMapName, automountInformation).
I want to configure autofs ( using LDAP ) to look at multiple OU's. If a key is not found in one OU, It should search the next OU.
So, in a non-LDAP auto_home file I can have an auto_home followed by auto_service. /home/foobar will try auto_home and if not found search auto_service. I want to do the same using ldap, but cannot figure out how.
This is a simplistic example of what I want. I realize, I can combine the 2 NIS maps into one LDAP container, but for various reasons, I cannot do that right now.
I only picked up LDAP within this past month, so admittedly, I have very limited knowledge. I know I can do some of what I need using openldap and referrels, but that too is impossible right now. I am stuck with AD.
Does this better clarify what my goal is?
my ldif is:
dn: OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
objectClass: top
objectClass: organizationalUnit
ou: automounts
description: Holds Automount Information
distinguishedName: OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
instanceType: 4
name: automounts
dn: automountMapName=auto.master,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
objectClass: top
objectClass: automountMap
distinguishedName: automountMapName=auto.master,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
instanceType: 4
name: auto.master
automountMapName: auto.master
dn: automountKey=/home,automountMapName=auto.master,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
objectClass: top
objectClass: automount
distinguishedName: automountKey=/home,automountMapName=auto.master,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
instanceType: 4
name: /home
automountInformation: auto_home
automountKey: /home
dn: automountMapName=auto_home,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
objectClass: top
objectClass: automountMap
distinguishedName: automountMapName=auto_home,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=mydomain,DC=com
instanceType: 4
name: auto_home
objectCategory: CN=automountMap,CN=Schema,CN=Configuration,DC=mydomain,DC=com
automountMapName: auto_home
dn: automountKey=foobar,automountMapName=auto_home,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=myd omain,DC=com
objectClass: top
objectClass: automount
distinguishedName: automountKey=foobar,automountMapName=auto_home,OU=automounts,OU=class,OU=eng,OU=Applications,,DC=myd omain,DC=com
instanceType: 4
name: ranap
automountInformation: -rw,hard,nosuid,noquota,intr,noacl region1:/vol/vol1/users/foobar
automountKey: foobar
|