Autmount issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Guys,

I am having an issue with the autofs/automount on Cent OS 7, below is the detail

LDAP Server


Solaris 10
Sun Directory Server 6.2


LDAP Client


CentOS 7

OpenLdap


I issued the below command to enable LDAP authetication. LDAP users
can successfully authenticated now on CentOs

 authconfig --enableldap --enableldapauth --ldapserver=x.x.x.x
--ldapbasedn=dc=drivess,dc=rtta --disablemkhomedir --update

But somehow users home directories can't be mounted through autofs.
Below is my autofs.conf file

 autofs
master_map_name = ldap://xxxxx/automountMapName=auto_master,dc=drivess,dc=rtaa
mount_nfs_default_protocol = 3
logging = debug
ldap_uri = "ldap://x.x.x.x";
search_base = "automountMapName=auto_master,dc=drivess,dc=rtaa"
map_object_class = automountMap
entry_object_class = automount
map_attribute = automountMapName
entry_attribute = automountKey
value_attribute= automountInformation
auth_conf_file = /etc/autofs_ldap_auth.conf
map_type = ldap

When I run the below command , it throws an error

automount -m
get_query_dn: lookup(ldap): found query dn
automountMapName=auto_master,dc=drivess,dc=rtaa
lookup_read_master: lookup(ldap): searching for
"(objectclass=automount)" under
"automountMapName=auto_master,dc=drivess,dc=rtaa"
lookup_read_master: lookup(ldap): examining entries
syntax error in map near  ahmedf nfs-cluster:

Below is ldapsearch command result
  ldapsearch -x -b 'automountMapName=auto_master,dc=drivess,dc=rtaa'
"(objectClass=automountMap)"

dn: automountMapName=auto_master,dc=drivess,dc=rtaa
automountMapName: auto_master
objectClass: top
objectClass: automountMap

 ldapsearch -x -b
'automountkey=ahmedf,automountMapName=auto_master,dc=drivess,dc=rtaa
dn: automountkey=ahmedf,automountMapName=auto_master,dc=drivess,dc=rtaa
automountInformation: nfs-cluster:/san/users/cmes/ahmedf
automountKey: ahmedf
objectClass: automount
objectClass: top

In short, automountInformation is nfs-cluster:/san/users/cmes/ahmedf
but somehow autmount is complaining "syntax error in map near [ ahmedf
nfs-cluster: ]"


Any ideas?
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux