Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread Rob Crittenden
James James wrote:
> OK. Maybe this should be precised in the documentation.

It's in the ipa-client-automount man page:

The default automount location is named default. To specify a different
one use the --location option.

I'm open to suggestions on clarifying this. Right now it is in the
DESCRIPTION section. Should it be moved?

Also, would it have helped if a summary was printed at the end of the
command? Maybe we should display something like:

Configured for
server: DNS Discovery (or specific server(s)
location: default (or as-specified)

rob

> 
> By the way, thanks your help.
> 
> Best regards.
> 
> 
> 2014-07-24 15:22 GMT+02:00 Jakub Hrozek  >:
> 
> On Thu, Jul 24, 2014 at 10:48:44AM +0200, James James wrote:
> > The problem is solved.
> >
> > I had to explicity provides the location in the ipa-client-automount
> > command like this :
> >
> > ipa-client-automount --server=ipa.lix.polytechnique.fr
>  --location=server1 -U
> 
> Ah, yes, the default location for both the IPA server and the SSSD is
> called IIRC "default". If you're using a different location, you need to
> set it in the config file.
> 
> I /think/ we had a ticket at one point to autodetect the location and we
> proposed the topic as a thesis, but I can't find it now..
> 
> 
> 
> 

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread James James
OK. Maybe this should be precised in the documentation.

By the way, thanks your help.

Best regards.


2014-07-24 15:22 GMT+02:00 Jakub Hrozek :

> On Thu, Jul 24, 2014 at 10:48:44AM +0200, James James wrote:
> > The problem is solved.
> >
> > I had to explicity provides the location in the ipa-client-automount
> > command like this :
> >
> > ipa-client-automount --server=ipa.lix.polytechnique.fr
> --location=server1 -U
>
> Ah, yes, the default location for both the IPA server and the SSSD is
> called IIRC "default". If you're using a different location, you need to
> set it in the config file.
>
> I /think/ we had a ticket at one point to autodetect the location and we
> proposed the topic as a thesis, but I can't find it now..
>
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread Jakub Hrozek
On Thu, Jul 24, 2014 at 10:48:44AM +0200, James James wrote:
> The problem is solved.
> 
> I had to explicity provides the location in the ipa-client-automount
> command like this :
> 
> ipa-client-automount --server=ipa.lix.polytechnique.fr --location=server1 -U

Ah, yes, the default location for both the IPA server and the SSSD is
called IIRC "default". If you're using a different location, you need to
set it in the config file.

I /think/ we had a ticket at one point to autodetect the location and we
proposed the topic as a thesis, but I can't find it now..

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread Ondrej Valousek
lookup_read_map: lookup(sss): getautomntent_r: No such file or directory

Looks like libsss_autofs package is not installed? Do you have file
/usr/lib64/sssd/modules/libsss_autofs.so
installed?
O.

From: freeipa-users-boun...@redhat.com [freeipa-users-boun...@redhat.com] on 
behalf of Jakub Hrozek [jhro...@redhat.com]
Sent: Thursday, July 24, 2014 9:41 AM
To: freeipa-users@redhat.com
Subject: Re: [Freeipa-users] SSSD and Autofs

On Wed, Jul 23, 2014 at 11:45:28PM +0200, James James wrote:
> HI guy, I've been struggling for a while tom make sssd  works with autofs .
> I have a freeipa server that serves maps. When a client is enrolled and I
> make in a terminal
>
> root@host ~# ipa-client-automount -U
>
> everything is ok
>
>  but i've got :
>
> root@host ~# automount -fd -vvv
> Starting automounter version 5.0.5-88.el6, master map auto.master
> using kernel protocol version 5.02
> lookup_nss_read_master: reading master sss auto.master
> parse_init: parse(sun): init gathered global options: (null)
> master_do_mount: mounting /-
> automount_path_to_fifo: fifo name /var/run/autofs.fifo--
> lookup_nss_read_map: reading map sss auto.direct
> parse_init: parse(sun): init gathered global options: (null)
> lookup_read_map: lookup(sss): getautomntent_r: No such file or directory
> lookup_nss_read_map: reading map files auto.direct
> file map /etc/auto.direct not found
> st_ready: st_ready(): state = 0 path /
>
>
> Maybye I am missing something 
>
> Any help will be appreciate ..
>
> Thanks

Can you attach your config file and check out what's in
/var/log/sssd/sssd_autofs.log once you add debug_level=6 into the
[autofs] section?

--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread dbischof

Hi James,

On Thu, 24 Jul 2014, James James wrote:


The files are in attachment.
Thanks for you help.
2014-07-24 9:41 GMT+02:00 Jakub Hrozek :

On Wed, Jul 23, 2014 at 11:45:28PM +0200, James James wrote:
HI guy, I've been struggling for a while tom make sssd works with 
autofs . I have a freeipa server that serves maps. When a client is 
enrolled and I make in a terminal [...]

Can you attach your config file and check out what's in
/var/log/sssd/sssd_autofs.log once you add debug_level=6 into the
[autofs] section?


you may want to try the following:

1. Add

---
[sssd]
...
ldap_autofs_search_base="dc=example,dc=com""
---

in your sssd.conf

2. Your /etc/sysconfig/autofs appears to be missing some entries. Mine 
contains


---
AUTOFS_OPTIONS=""
LOCAL_OPTIONS=""
APPEND_OPTIONS="no"
USE_MISC_DEVICE="yes"
DEFAULT_MASTER_MAP_NAME="auto.master"
DEFAULT_TIMEOUT=300
DEFAULT_BROWSE_MODE="no"
DEFAULT_LOGGING="none"
DEFAULT_MAP_OBJECT_CLASS="automountMap"
DEFAULT_ENTRY_OBJECT_CLASS="automount"
DEFAULT_MAP_ATTRIBUTE="automountMapName"
DEFAULT_ENTRY_ATTRIBUTE="automountKey"
DEFAULT_VALUE_ATTRIBUTE="automountInformation"
DEFAULT_AUTH_CONF_FILE=""
MAP_HASH_TABLE_SIZE=1024
SEARCH_BASE="cn=[automountlocation_as_defined_in_ipa],cn=automount,dc=example,dc=com"
LDAP_URI="ldap:///dc=example,dc=com";
---

3. I had to put "ldap" instead of "sss" in nsswitch.conf like so:

---
--- nsswitch.conf   2014-07-24 10:30:59.207122633 +0200
+++ nsswitch.conf.orig  2014-07-24 10:30:36.417245012 +0200
@@ -61,7 +61,7 @@

 publickey:  nisplus

-automount: ldap files
+automount: sss files

 aliases:files nisplus
---

My client system is openSUSE 13.1


Mit freundlichen Gruessen/With best regards,

--Daniel.

--
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project


Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread James James
The problem is solved.

I had to explicity provides the location in the ipa-client-automount
command like this :

ipa-client-automount --server=ipa.lix.polytechnique.fr --location=server1 -U

Thanks again.



2014-07-24 10:22 GMT+02:00 James James :

> The files are in attachment.
>
> Thanks for you help.
>
>
> 2014-07-24 9:41 GMT+02:00 Jakub Hrozek :
>
> On Wed, Jul 23, 2014 at 11:45:28PM +0200, James James wrote:
>> > HI guy, I've been struggling for a while tom make sssd  works with
>> autofs .
>> > I have a freeipa server that serves maps. When a client is enrolled and
>> I
>> > make in a terminal
>> >
>> > root@host ~# ipa-client-automount -U
>> >
>> > everything is ok
>> >
>> >  but i've got :
>> >
>> > root@host ~# automount -fd -vvv
>> > Starting automounter version 5.0.5-88.el6, master map auto.master
>> > using kernel protocol version 5.02
>> > lookup_nss_read_master: reading master sss auto.master
>> > parse_init: parse(sun): init gathered global options: (null)
>> > master_do_mount: mounting /-
>> > automount_path_to_fifo: fifo name /var/run/autofs.fifo--
>> > lookup_nss_read_map: reading map sss auto.direct
>> > parse_init: parse(sun): init gathered global options: (null)
>> > lookup_read_map: lookup(sss): getautomntent_r: No such file or directory
>> > lookup_nss_read_map: reading map files auto.direct
>> > file map /etc/auto.direct not found
>> > st_ready: st_ready(): state = 0 path /
>> >
>> >
>> > Maybye I am missing something 
>> >
>> > Any help will be appreciate ..
>> >
>> > Thanks
>>
>> Can you attach your config file and check out what's in
>> /var/log/sssd/sssd_autofs.log once you add debug_level=6 into the
>> [autofs] section?
>>
>> --
>> Manage your subscription for the Freeipa-users mailing list:
>> https://www.redhat.com/mailman/listinfo/freeipa-users
>> Go To http://freeipa.org for more info on the project
>>
>
>
-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project

Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread James James
The files are in attachment.

Thanks for you help.


2014-07-24 9:41 GMT+02:00 Jakub Hrozek :

> On Wed, Jul 23, 2014 at 11:45:28PM +0200, James James wrote:
> > HI guy, I've been struggling for a while tom make sssd  works with
> autofs .
> > I have a freeipa server that serves maps. When a client is enrolled and I
> > make in a terminal
> >
> > root@host ~# ipa-client-automount -U
> >
> > everything is ok
> >
> >  but i've got :
> >
> > root@host ~# automount -fd -vvv
> > Starting automounter version 5.0.5-88.el6, master map auto.master
> > using kernel protocol version 5.02
> > lookup_nss_read_master: reading master sss auto.master
> > parse_init: parse(sun): init gathered global options: (null)
> > master_do_mount: mounting /-
> > automount_path_to_fifo: fifo name /var/run/autofs.fifo--
> > lookup_nss_read_map: reading map sss auto.direct
> > parse_init: parse(sun): init gathered global options: (null)
> > lookup_read_map: lookup(sss): getautomntent_r: No such file or directory
> > lookup_nss_read_map: reading map files auto.direct
> > file map /etc/auto.direct not found
> > st_ready: st_ready(): state = 0 path /
> >
> >
> > Maybye I am missing something 
> >
> > Any help will be appreciate ..
> >
> > Thanks
>
> Can you attach your config file and check out what's in
> /var/log/sssd/sssd_autofs.log once you add debug_level=6 into the
> [autofs] section?
>
> --
> Manage your subscription for the Freeipa-users mailing list:
> https://www.redhat.com/mailman/listinfo/freeipa-users
> Go To http://freeipa.org for more info on the project
>
[root@client ~]# cat /etc/nsswitch.conf
#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Valid entries include:
#
#   nisplus Use NIS+ (NIS version 3)
#   nis Use NIS (NIS version 2), also called YP
#   dns Use DNS (Domain Name Service)
#   files   Use the local files
#   db  Use the local database (.db) files
#   compat  Use NIS on compat mode
#   hesiod  Use Hesiod for user lookups
#   [NOTFOUND=return]   Stop searching if not found so far
#

# To use db, put the "db" in front of "files" for entries you want to be
# looked up first in the databases
#
# Example:


#passwd:db files nisplus nis
#shadow:db files nisplus nis
#group: db files nisplus nis

passwd: files sss
shadow: files sss
group:  files sss

#hosts: db files nisplus nis dns
hosts:  files dns

# Example - obey only what nisplus tells us...
#services:   nisplus [NOTFOUND=return] files
#networks:   nisplus [NOTFOUND=return] files
#protocols:  nisplus [NOTFOUND=return] files
#rpc:nisplus [NOTFOUND=return] files
#ethers: nisplus [NOTFOUND=return] files
#netmasks:   nisplus [NOTFOUND=return] files

bootparams: nisplus [NOTFOUND=return] files

ethers: files
netmasks:   files
networks:   files
protocols:  files
rpc:files
services:   files sss

netgroup:   files sss

publickey:  nisplus

automount: sss files

aliases:files nisplus



etc-sysconfig-autofs
Description: Binary data


sssd_conf
Description: Binary data
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [accept_fd_handler] (0x0400): Client connected!
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_cmd_get_version] (0x0200): Received client version [1].
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_cmd_get_version] (0x0200): Offered version [1].
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_autofs_cmd_setautomntent] (0x0400): Got request for automount map named auto.master
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_parse_name_for_domains] (0x0200): name 'auto.master' matched without domain, user is auto
.master
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_parse_name_for_domains] (0x0200): using default domain [(null)]
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [setautomntent_send] (0x0400): Requesting info for automount map [auto.master] from []
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [lookup_automntmap_step] (0x0400): Requesting info for [auto.mas...@example.com]
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_dp_issue_request] (0x0400): Issuing request for [0x40f9d0:0:auto.master@lix.polytechnique
.fr]
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_dp_get_autofs_msg] (0x0400): Creating autofs request for [example.com][4105][map
name=auto.master]
(Thu Jul 24 08:09:18 2014) [sssd[autofs]] [sss_dp_internal_get_send] (0x0400): Entering request [0x40f9d0:0:auto.master@lix.polytechniqu
e.fr]
(Thu Jul 24 08:09:19 2014) [sssd[autofs]] [lookup_automntmap_step] (0x0400): Req

Re: [Freeipa-users] SSSD and Autofs

2014-07-24 Thread Jakub Hrozek
On Wed, Jul 23, 2014 at 11:45:28PM +0200, James James wrote:
> HI guy, I've been struggling for a while tom make sssd  works with autofs .
> I have a freeipa server that serves maps. When a client is enrolled and I
> make in a terminal
> 
> root@host ~# ipa-client-automount -U
> 
> everything is ok
> 
>  but i've got :
> 
> root@host ~# automount -fd -vvv
> Starting automounter version 5.0.5-88.el6, master map auto.master
> using kernel protocol version 5.02
> lookup_nss_read_master: reading master sss auto.master
> parse_init: parse(sun): init gathered global options: (null)
> master_do_mount: mounting /-
> automount_path_to_fifo: fifo name /var/run/autofs.fifo--
> lookup_nss_read_map: reading map sss auto.direct
> parse_init: parse(sun): init gathered global options: (null)
> lookup_read_map: lookup(sss): getautomntent_r: No such file or directory
> lookup_nss_read_map: reading map files auto.direct
> file map /etc/auto.direct not found
> st_ready: st_ready(): state = 0 path /
> 
> 
> Maybye I am missing something 
> 
> Any help will be appreciate ..
> 
> Thanks

Can you attach your config file and check out what's in
/var/log/sssd/sssd_autofs.log once you add debug_level=6 into the
[autofs] section?

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go To http://freeipa.org for more info on the project