Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2017
    Location
    Germany
    Posts
    2

    Questions about automounting nfs directories within LDAP


    Dear Community,

    IŽve setup an LDAP Testserver to migrate our old LDAP-Server (SLES) to a new Ubuntu 16.04 one.

    After many headache days I was successful to check the LDAP Authentication with a testuser, at the moment without any security aŽla StartTLS or SSL.

    Now I have the next question about automounting nfs directories.

    At the moment the ldapserver and the ldap-client is one machine. Within a seperate client I have additional problems with nfs and firewall, but this is another topic.

    In my /etc/exports I have several directories.

    Code:
    /export/home 10.188.114.0/25(fsid=0,rw,sync,root_squash,secure,no_subtree_check)
    /export/software/linux 10.188.114.0/25(rw,root_squash,sync,subtree_check,secure)
    /export/calculate 10.188.114.0/25(rw,root_squash,sync,no_subtree_check)
    I want to export when the ldap testuser is going to login.
    But when I do this, IŽll get those error messages.

    Code:
    Oct  9 09:59:13 ldapserver automount[13131]: attempting to mount entry /home/testuser
    Oct  9 09:59:13 ldapserver automount[13131]: >> mount.nfs: access denied by server while mounting ldapserver.local:/export/home/testuser
    Oct  9 09:59:13 fautm89 automount[13131]: mount(nfs): nfs: mount failure ldapserver.local:/export/home/testuser on /home/testuser
    Oct  9 09:59:13 ldapserver automount[13131]: failed to mount /home/testuser
    
    Oct  9 10:00:01 ldapserver automount[13131]: attempting to mount entry /local/calculate
    Oct  9 10:00:01 ldapserver automount[13131]: >> mount.nfs: access denied by server while mounting ldapserver.local :/export/calculate
    Oct  9 10:00:01 ldapserver automount[13131]: mount(nfs): nfs: mount failure ldapserver.local:/export/calculate on /local/calculate
    Oct  9 10:00:01 ldapserver automount[13131]: failed to mount /local/calculate
    
    Oct  9 10:00:14 ldapserver automount[13131]: attempting to mount entry /local/linux
    Oct  9 10:00:14 ldapserver automount[13131]: >> mount.nfs: access denied by server while mounting ldapserver.local :/export/software/linux
    Oct  9 10:00:14 ldapserver automount[13131]: mount(nfs): nfs: mount failure ldapserver.local:/export/software/linux on /local/linux
    Oct  9 10:00:14 ldapserver automount[13131]: failed to mount /local/linux
    When I do e.g. a ls -la in /home on the ldapserver, I get

    Code:
    drwx------ 79 testuser testgroup         4096 Aug 22 13:15 testuser/
    on the client I get

    Code:
    dr-xr-xr-x  2 root root    0 Oct  9 09:47 testuser
    There seems to be a problem with permissions, I canŽt change it with my root account, and I think could have to do with automount, but I donŽt know exactly.

    Should I have to adjust this in slapd configuration or is this an automount/nfs problem?

    Could you give me please any hint?

    Thank you in advance and best regards,
    kapitaenhaddock

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    -->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •