Morning,
I have a system that isn't an IPA client but would like to get it to mount some of the NFS share that IPA clients are using. The problem is, the IPA clients are using kerberos to access this NFS shares. Since this system isn't in the REALM, that isn't possible.
So I am trying to dump the map and then use a script to mount these directories without kerberos and this is where I am struggling with the data format.
ldapsearch -Y GSSAPI -h ipa2.eng.example.com -b "cn=automount,dc=eng,dc=example,dc=com" > `hostname`_autofs_maps.txt
When I however attempt to search though the resulting autofs dumped maps, I have noticed that there are lines that break after the 78 character.
automountInformation: -fstype=nfs4,sec=krb5,intr barium213.eng.example.com:/e xport/eng/projects/falcon/alan
Is there a way of dumping the maps without the above line break? It is problematic as I intend to process the file through a script. Above is a sample of a line in the resulting dump.
Regards, William
William Muriithi via FreeIPA-users wrote:
Morning,
I have a system that isn't an IPA client but would like to get it to mount some of the NFS share that IPA clients are using. The problem is, the IPA clients are using kerberos to access this NFS shares. Since this system isn't in the REALM, that isn't possible.
So I am trying to dump the map and then use a script to mount these directories without kerberos and this is where I am struggling with the data format.
ldapsearch -Y GSSAPI -h ipa2.eng.example.com -b "cn=automount,dc=eng,dc=example,dc=com" > `hostname`_autofs_maps.txt
When I however attempt to search though the resulting autofs dumped maps, I have noticed that there are lines that break after the 78 character.
automountInformation: -fstype=nfs4,sec=krb5,intr barium213.eng.example.com:/e xport/eng/projects/falcon/alan
Is there a way of dumping the maps without the above line break? It is problematic as I intend to process the file through a script. Above is a sample of a line in the resulting dump.
Add this to your ldapsearch command:
-o ldif-wrap=no
rob
Morning Rob,
Is there a way of dumping the maps without the above line break? It is problematic as I intend to process the file through a script. Above is a sample of a line in the resulting dump.
Add this to your ldapsearch command:
-o ldif-wrap=no
Thanks a lot. This works perfectly.
Regards, William
freeipa-users@lists.fedorahosted.org