more than 30 characters for username

Submit your RBAC policies or suggest policy improvements

more than 30 characters for username

Postby Vincent » Thu Apr 03, 2008 5:36 am

Hi All,

I'm having a problem with user roles in gradm. When I add user roles with usernames longer than 30 characters, the usernames are just cut at character 30 and gradm complaints that the username doesn't exist. Because I am using domain names for usernames some of them are longer than 30 characters.

I looked in the gradm source myself, but couldn't find where this behaviour of gradm is caused. Is there something what could be done about this (except using shorter usernames ;) )?

Thnx in advance.
Vincent
 
Posts: 19
Joined: Mon Jan 07, 2008 8:33 am

Re: more than 30 characters for username

Postby spender » Fri Apr 04, 2008 8:07 am

I'll look into it.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: more than 30 characters for username

Postby spender » Fri Apr 04, 2008 4:08 pm

The latest version of gradm should fix this issue. I've extended the limit to 64 characters. Is that ok?

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: more than 30 characters for username

Postby cormander » Fri Apr 04, 2008 6:21 pm

Hey spender,

I noticed that all the changes for changing this from 30 to 64 happen in files that are processed by yaac (bison). Is it possible to make this a configurable variable instead and have it defined in the Makefile? I've never used bison before so I don't know :)
cormander
 
Posts: 154
Joined: Tue Jan 29, 2008 12:51 pm

Re: more than 30 characters for username

Postby Vincent » Sun Apr 06, 2008 5:12 am

spender wrote:The latest version of gradm should fix this issue. I've extended the limit to 64 characters. Is that ok?


Thank you very much! That makes life a little bit easier :wink: :D
Vincent
 
Posts: 19
Joined: Mon Jan 07, 2008 8:33 am


Return to RBAC policy development