[katello] LDAP users are not being shown in user list

Hey,

I've just recently installed katello 2.2 and ldap users are not being shown
in the users list in katello 2.2, I can see in the logs there is an entry
in foreman/production.log which says

2015-06-03 08:52:18 [I] User 'dlevene' auto-created from LDAP

but when I look in the user list… the only user is admin and it says 1/1
users

If I try to create this user manually, it tells me the username is already
taken… so its in the database but not being displayed?

Before I create a bug report, has anyone else experienced this? The only
thing I can think of… is I've deleted the default organisation and created
my own as the first thing before I tried any of this.

Upgraded to katello 2.2.1 this morning, and no change.

Cheers
David

So I "think" the issue is that when the user was created it was assigned to
no groups to start with.

I was able as the admin user manually goto the url of
https://hostname/users/4/edit and assign them to a group - once that was
done they appeared in the list.

Perhaps there should be a default group for new users if no group is
assigned as that would resolve the issue? Thoughts?

Cheers
David

··· On Wednesday, 3 June 2015 09:53:33 UTC+9:30, David LeVene wrote: > > Hey, > > I've just recently installed katello 2.2 and ldap users are not being > shown in the users list in katello 2.2, I can see in the logs there is an > entry in foreman/production.log which says > > 2015-06-03 08:52:18 [I] User 'dlevene' auto-created from LDAP > > > but when I look in the user list.. the only user is admin and it says 1/1 > users > > If I try to create this user manually, it tells me the username is already > taken.. so its in the database but not being displayed? > > Before I create a bug report, has anyone else experienced this? The only > thing I can think of.. is I've deleted the default organisation and created > my own as the first thing before I tried any of this. > > Upgraded to katello 2.2.1 this morning, and no change. > > Cheers > David >

> So I "think" the issue is that when the user was created it was assigned to
> no groups to start with.

Could it be possible that the user logged in so the user was created,
but once prompted for the email (Foreman will ask for that if it cannot
find it in the LDAP attributes) the user didn't do anything?

>
> I was able as the admin user manually goto the url of
> https://hostname/users/4/edit and assign them to a group - once that was
> done they appeared in the list.
>
> Perhaps there should be a default group for new users if no group is
> assigned as that would resolve the issue? Thoughts?

Groups cannot be auto-attached, but if you're using LDAP, you could look
in the External user groups tab of any user group, and link your users
with LDAP groups, it's the closest thing I can think of

··· On 06/02, David LeVene wrote: > > Cheers > David > > > > > On Wednesday, 3 June 2015 09:53:33 UTC+9:30, David LeVene wrote: > > > > Hey, > > > > I've just recently installed katello 2.2 and ldap users are not being > > shown in the users list in katello 2.2, I can see in the logs there is an > > entry in foreman/production.log which says > > > > 2015-06-03 08:52:18 [I] User 'dlevene' auto-created from LDAP > > > > > > but when I look in the user list.. the only user is admin and it says 1/1 > > users > > > > If I try to create this user manually, it tells me the username is already > > taken.. so its in the database but not being displayed? > > > > Before I create a bug report, has anyone else experienced this? The only > > thing I can think of.. is I've deleted the default organisation and created > > my own as the first thing before I tried any of this. > > > > Upgraded to katello 2.2.1 this morning, and no change. > > > > Cheers > > David > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

> > So I "think" the issue is that when the user was created it was assigned
> to
> > no groups to start with.
>
> Could it be possible that the user logged in so the user was created,
> but once prompted for the email (Foreman will ask for that if it cannot
> find it in the LDAP attributes) the user didn't do anything?
>

Nope, because it was a fresh install and that user was me - the only user
in the system was admin at that time.

I could log in, it would allow me to view "My Account" and could see all my
details (including the correct email/name etcpulled from ldap). As I had no
permissions I couldn't do anything else.

>
> >
> > I was able as the admin user manually goto the url of
> > https://hostname/users/4/edit and assign them to a group - once that was
> > done they appeared in the list.
> >
> > Perhaps there should be a default group for new users if no group is
> > assigned as that would resolve the issue? Thoughts?
>
> Groups cannot be auto-attached, but if you're using LDAP, you could look
> in the External user groups tab of any user group, and link your users
> with LDAP groups, it's the closest thing I can think of
>

Yep, I'm aware of this and do use this feature, but this was a fresh
installation - I just wanted to manually assign some permissions to
myself… as its a test instance.

Perhaps the question I should be asking is… what is the sql query that
populates the users page in foreman? (or which file can I find it in)

··· On 4 June 2015 at 00:27, Daniel Lobato Garcia wrote: > On 06/02, David LeVene wrote:

Cheers
David

On Wednesday, 3 June 2015 09:53:33 UTC+9:30, David LeVene wrote:

Hey,

I’ve just recently installed katello 2.2 and ldap users are not being
shown in the users list in katello 2.2, I can see in the logs there is
an

entry in foreman/production.log which says

2015-06-03 08:52:18 [I] User ‘dlevene’ auto-created from LDAP

but when I look in the user list… the only user is admin and it says
1/1

users

If I try to create this user manually, it tells me the username is
already

taken… so its in the database but not being displayed?

Before I create a bug report, has anyone else experienced this? The
only

thing I can think of… is I’ve deleted the default organisation and
created

my own as the first thing before I tried any of this.

Upgraded to katello 2.2.1 this morning, and no change.

Cheers
David


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/inwvprvzCgo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.