Failed to allow user access to the share

Bug #1674907 reported by zhongjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Shared File Systems Service (Manila)
Fix Released
Undecided
zhongjun

Bug Description

Failed to allow user access to the share when user is set to longer than 32 characters.

for example:
root@ubuntu:~# manila access-allow 5dbbfe5d-a062-420c-a404-864c3290351d user verylongdnsdomainname.com\teeeeeeeeeeeeetname
root@ubuntu:~# Invalid user or group name. Must be 4-32 characters and consist of alphanumeric characters and special characters ]{.-_\'`;}[\\

In https://github.com/openstack/manila/blob/master/manila/api/common.py#L336
The username is limited to 32 characters.

But in Active Directory, the username format is: Domain_Names\User_Names.(such as: verylongdnsdomainname.com\sAMAccountName).
User name is limited to a maximum of 20 characters
The Legacy Domain Name parameter, which is limited to 15-characters.

The DNS Domain Name parameter was added in Active Directory with the release of Windows 2000 and supports up to 24-characters for the hostname portion, but the Fully Qualified Domain Name can be much longer (e.g. subdomain1.subdomain2.domain.com).

so actually the user name is longer than 32 characters.

Changed in manila:
assignee: nobody → NidhiMittalHada (nidhimittal19)
Revision history for this message
zhongjun (jun-zhongjun) wrote :

Hi NidhiMittalHada, Please see this link: https://review.openstack.org/#/c/448446/, this bug has been resolved.

Changed in manila:
assignee: NidhiMittalHada (nidhimittal19) → nobody
zhongjun (jun-zhongjun)
Changed in manila:
status: New → Fix Released
assignee: nobody → zhongjun (jun-zhongjun)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.