Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Is there a minimum length for a user name in Ranger?

avatar
Super Collaborator

Creating an internal user name of 5 digits is not working correctly.

1 ACCEPTED SOLUTION

avatar
Rising Star

@Neeraj - the username should be at least 2 character long. Hence Ranger Admin failed to accept names with a singe character - like "a" or "b".

The issue faced by @terry@hortonworks.com is HDP-2.2 specific, where Ranger requires the username should begin with an alphabet. @terry@hortonworks.com - can you please confirm if you see this in HDP-2.2 and if starting a username with an alphabet works?

View solution in original post

12 REPLIES 12

avatar

What you mean by "is not working correctly"? Any errors on the UI or in the log?

It should be possible, I have created users like solr, admin, user1, ...

avatar
Super Collaborator

The response from the UI is "enter a valid user name". I will try again.

avatar

Minimum is 2 letters

Maximum > 30 letters

Just tested it on my cluster. What version of Ranger do you have?

avatar
Super Collaborator

It was not a length problem. The user is not a member of the group he is being added into. There is an odd mix of LDAP users and local groups in the test environment. You should enter the length as the answer since that is the question I asked. Then I can accept the answer. Thanks.

avatar
Master Mentor
@terry@hortonworks.com

What version of Ambari and HDP are you using? Also, see my latets reply.

avatar
Master Mentor

Do you mean username like "12345"?

avatar
Rising Star

Ranger in HDP-2.2 requires usernames to begin with an alphabet. This was relaxed in HDP-2.3 (RANGER-318), which would allow usernames to start with an alphabet or a number.

avatar
Master Mentor

@Madhan Neethiraj

See my latest reply ...Do you think we are missing something at UI level?

avatar
Master Mentor

@Terry@hortonworks.com

See this..I can add user ab, abc, 1234 . The only user I could not add was only a or b

323-screen-shot-2015-10-23-at-84145-pm.png

324-screen-shot-2015-10-23-at-84059-pm.png