FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Directory

 
 
LinkBack Thread Tools
 
Old 11-18-2010, 08:03 PM
John Mancuso
 
Default automount via LDAP/NFS

Oh I see. /home/jmancuso is mounting properly. good. wonder why it is
trying to chdir to /export/home/jmancuso

On Thu, Nov 18, 2010 at 2:47 PM, John Mancuso <jkmancuso@gmail.com> wrote:
> I am trying to automount via LDAP/NFS following
> http://directory.fedoraproject.org/wiki/Howto:Automount
>
> I'm able to login but not automount (i've already restarted autofs and nscd).
>
> Message is:
>
> !1004 $ ssh 192.168.0.46
> jmancuso@192.168.0.46's password:
> Last login: Thu Nov 18 19:14:41 2010 from xxxxxx.net
> Could not chdir to home directory /export/home/jmancuso: No such file
> or directory
>
> Why does it say "/export/home/jmancuso". In LDAP I specified
> "/home/jmancuso"... unless it's the NFS:/export/home/jmancuso. strange
>
> See below:
>
> dn: ou=auto.master,dc=mycompany,dc=net
> ou: auto.master
> objectClass: top
> objectClass: automountMap
>
> dn: cn=/home,ou=auto.master,dc=mycompany,dc=net
> objectClass: automount
> cn: /home
> automountInformation: ldap:ldap1.mycompany.netu=auto.home,dc=mycompany ,dc=net
>
> dn: ou=auto.home,dc=mycompany,dc=net
> ou: auto.home
> objectClass: top
> objectClass: organizationalUnit
> objectClass: automountmap
>
> dn: cn=jmancuso,ou=auto.home,dc=mycompany,dc=net
> cn: jmancuso
> objectClass: automount
> automountInformation: -fstype=nfs nfs.mycompany.net:/home/jmancuso
>
>
> /etc/sysconfig/autofs:
> MAP_OBJECT_CLASS="automountMap"
> ENTRY_OBJECT_CLASS="automount"
> MAP_ATTRIBUTE="ou"
> ENTRY_ATTRIBUTE="cn"
> VALUE_ATTRIBUTE="automountInformation"
>
>
> /var/log/messages:
> Nov 18 19:10:59 SandBox1 automount[31848]: Starting automounter
> version 5.0.1-0.rc2.131.el5_4.1, master map auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: using kernel protocol version 5.00
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
> reading master files auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
> lookup(file): read entry /misc
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
> lookup(file): read entry /net
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
> lookup(file): read entry +auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
> reading master files auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
> reading master ldap auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_server_string:
> lookup(ldap): Attempting to parse LDAP information from string
> "auto.master".
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_server_string:
> lookup(ldap): mapname auto.master
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): ldap authentication configured with the following
> options:
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1,
> sasl_mech: (null)
> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): user: (null), secret: unspecified, client principal:
> (null) credential cache: (null)
> Nov 18 19:10:59 SandBox1 automount[31848]: do_bind: lookup(ldap):
> auth_required: 1, sasl_mech (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
> anonymous bind returned 0
> Nov 18 19:11:00 SandBox1 automount[31848]: get_query_dn: lookup(ldap):
> found query dn ou=auto.master,dc=mycompany,dc=net
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap):
> auth_required: 1, sasl_mech (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
> anonymous bind returned 0
> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_read_master:
> lookup(ldap): searching for "(objectclass=automount)" under
> "ou=auto.master,dc=mycompany,dc=net"
> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_read_master:
> lookup(ldap): examining entries
> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /misc
> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
> fifo name /var/run/autofs.fifo-misc
> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
> reading map file /etc/auto.misc
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: mounted indirect on /misc
> with timeout 300, freq 75 seconds
> Nov 18 19:11:00 SandBox1 automount[31848]: st_ready: st_ready(): state
> = 0 path /misc
> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /net
> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
> fifo name /var/run/autofs.fifo-net
> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
> reading map hosts (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: mounted indirect on /net
> with timeout 300, freq 75 seconds
> Nov 18 19:11:00 SandBox1 automount[31848]: st_ready: st_ready(): state
> = 0 path /net
> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /home
> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
> fifo name /var/run/autofs.fifo-home
> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
> reading map ldap
> ldap:ldap1.mycompany.netu=auto.home,dc=mycompany ,dc=net
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_server_string:
> lookup(ldap): Attempting to parse LDAP information from string
> "ldap:ldap1.mycompany.netu=auto.home,dc=mycompan y,dc=net".
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_server_string:
> lookup(ldap): server "ldap://ldap1.mycompany.net/", base dn
> "ou=auto.home,dc=mycompany,dc=net"
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): ldap authentication configured with the following
> options:
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1,
> sasl_mech: (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
> lookup(ldap): user: (null), secret: unspecified, client principal:
> (null) credential cache: (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap):
> auth_required: 1, sasl_mech (null)
> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
> anonymous bind returned 0
> Nov 18 19:11:00 SandBox1 automount[31848]: get_query_dn: lookup(ldap):
> found query dn ou=auto.home,dc=mycompany,dc=net
> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
> init gathered global options: (null)
>
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 11-18-2010, 08:16 PM
John Mancuso
 
Default automount via LDAP/NFS

/home/jmancuso just disappeared after restarting autofs. no idea why

On Thu, Nov 18, 2010 at 4:03 PM, John Mancuso <jkmancuso@gmail.com> wrote:
> Oh I see. /home/jmancuso is mounting properly. good. wonder why it is
> trying to chdir to /export/home/jmancuso
>
> On Thu, Nov 18, 2010 at 2:47 PM, John Mancuso <jkmancuso@gmail.com> wrote:
>> I am trying to automount via LDAP/NFS following
>> http://directory.fedoraproject.org/wiki/Howto:Automount
>>
>> I'm able to login but not automount (i've already restarted autofs and nscd).
>>
>> Message is:
>>
>> !1004 $ ssh 192.168.0.46
>> jmancuso@192.168.0.46's password:
>> Last login: Thu Nov 18 19:14:41 2010 from xxxxxx.net
>> Could not chdir to home directory /export/home/jmancuso: No such file
>> or directory
>>
>> Why does it say "/export/home/jmancuso". In LDAP I specified
>> "/home/jmancuso"... unless it's the NFS:/export/home/jmancuso. strange
>>
>> See below:
>>
>> dn: ou=auto.master,dc=mycompany,dc=net
>> ou: auto.master
>> objectClass: top
>> objectClass: automountMap
>>
>> dn: cn=/home,ou=auto.master,dc=mycompany,dc=net
>> objectClass: automount
>> cn: /home
>> automountInformation: ldap:ldap1.mycompany.netu=auto.home,dc=mycompany ,dc=net
>>
>> dn: ou=auto.home,dc=mycompany,dc=net
>> ou: auto.home
>> objectClass: top
>> objectClass: organizationalUnit
>> objectClass: automountmap
>>
>> dn: cn=jmancuso,ou=auto.home,dc=mycompany,dc=net
>> cn: jmancuso
>> objectClass: automount
>> automountInformation: -fstype=nfs nfs.mycompany.net:/home/jmancuso
>>
>>
>> /etc/sysconfig/autofs:
>> MAP_OBJECT_CLASS="automountMap"
>> ENTRY_OBJECT_CLASS="automount"
>> MAP_ATTRIBUTE="ou"
>> ENTRY_ATTRIBUTE="cn"
>> VALUE_ATTRIBUTE="automountInformation"
>>
>>
>> /var/log/messages:
>> Nov 18 19:10:59 SandBox1 automount[31848]: Starting automounter
>> version 5.0.1-0.rc2.131.el5_4.1, master map auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: using kernel protocol version 5.00
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
>> reading master files auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
>> lookup(file): read entry /misc
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
>> lookup(file): read entry /net
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_read_master:
>> lookup(file): read entry +auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
>> reading master files auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>> Nov 18 19:10:59 SandBox1 automount[31848]: lookup_nss_read_master:
>> reading master ldap auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_server_string:
>> lookup(ldap): Attempting to parse LDAP information from string
>> "auto.master".
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_server_string:
>> lookup(ldap): mapname auto.master
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): ldap authentication configured with the following
>> options:
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1,
>> sasl_mech: (null)
>> Nov 18 19:10:59 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): user: (null), secret: unspecified, client principal:
>> (null) credential cache: (null)
>> Nov 18 19:10:59 SandBox1 automount[31848]: do_bind: lookup(ldap):
>> auth_required: 1, sasl_mech (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
>> anonymous bind returned 0
>> Nov 18 19:11:00 SandBox1 automount[31848]: get_query_dn: lookup(ldap):
>> found query dn ou=auto.master,dc=mycompany,dc=net
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap):
>> auth_required: 1, sasl_mech (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
>> anonymous bind returned 0
>> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_read_master:
>> lookup(ldap): searching for "(objectclass=automount)" under
>> "ou=auto.master,dc=mycompany,dc=net"
>> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_read_master:
>> lookup(ldap): examining entries
>> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /misc
>> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
>> fifo name /var/run/autofs.fifo-misc
>> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
>> reading map file /etc/auto.misc
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: mounted indirect on /misc
>> with timeout 300, freq 75 seconds
>> Nov 18 19:11:00 SandBox1 automount[31848]: st_ready: st_ready(): state
>> = 0 path /misc
>> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /net
>> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
>> fifo name /var/run/autofs.fifo-net
>> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
>> reading map hosts (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: mounted indirect on /net
>> with timeout 300, freq 75 seconds
>> Nov 18 19:11:00 SandBox1 automount[31848]: st_ready: st_ready(): state
>> = 0 path /net
>> Nov 18 19:11:00 SandBox1 automount[31848]: master_do_mount: mounting /home
>> Nov 18 19:11:00 SandBox1 automount[31848]: automount_path_to_fifo:
>> fifo name /var/run/autofs.fifo-home
>> Nov 18 19:11:00 SandBox1 automount[31848]: lookup_nss_read_map:
>> reading map ldap
>> ldap:ldap1.mycompany.netu=auto.home,dc=mycompany ,dc=net
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_server_string:
>> lookup(ldap): Attempting to parse LDAP information from string
>> "ldap:ldap1.mycompany.netu=auto.home,dc=mycompan y,dc=net".
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_server_string:
>> lookup(ldap): server "ldap://ldap1.mycompany.net/", base dn
>> "ou=auto.home,dc=mycompany,dc=net"
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): ldap authentication configured with the following
>> options:
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): use_tls: 0, tls_required: 0, auth_required: 1,
>> sasl_mech: (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_ldap_config:
>> lookup(ldap): user: (null), secret: unspecified, client principal:
>> (null) credential cache: (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap):
>> auth_required: 1, sasl_mech (null)
>> Nov 18 19:11:00 SandBox1 automount[31848]: do_bind: lookup(ldap): ldap
>> anonymous bind returned 0
>> Nov 18 19:11:00 SandBox1 automount[31848]: get_query_dn: lookup(ldap):
>> found query dn ou=auto.home,dc=mycompany,dc=net
>> Nov 18 19:11:00 SandBox1 automount[31848]: parse_init: parse(sun):
>> init gathered global options: (null)
>>
>
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 
Old 11-19-2010, 07:37 AM
"Morris, Patrick"
 
Default automount via LDAP/NFS

On 11/18/2010 1:16 PM, John Mancuso wrote:
> /home/jmancuso just disappeared after restarting autofs. no idea why
>
> On Thu, Nov 18, 2010 at 4:03 PM, John Mancuso<jkmancuso@gmail.com> wrote:
>> Oh I see. /home/jmancuso is mounting properly. good. wonder why it is
>> trying to chdir to /export/home/jmancuso

It's probably doing it because you have a user specified with the that
name and a home directory set to /export/home/... (i.e, possibly in the
passwd file). You haven't shown the configuration for the user, but
chances are you've set it to /export/home either in LDAP or in something
that's overriding it. Just specifying an automount named "jmancuso" is
*not* the same thing as setting jmancuso's home directory.

It's normal for that directory to disappear when not in use, though that
depends how you have autofs configured. Most automounters will unmount a
filesystem after a certain period of inactivity.
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users
 

Thread Tools




All times are GMT. The time now is 05:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org