Operating System - HP-UX
1854848 Members
27040 Online
104103 Solutions
New Discussion

Using long user names with Samba

 
SOLVED
Go to solution
Gerdo Lansing
New Member

Using long user names with Samba

In our current environment, based on Windows 2000 Active Directory in Mixed mode, the usernames are no longer then 6 characters.
In this situation mappings to Samba shares on HP-UX from Windows XP clients work as implemented.

In the new environment, based on Windows 2003 Active Directory in Native mode, the username can be up to 17 characters long.
After adding a username from this domain to the share section in the smb.conf, this share is accesible.
However, when a user is added to the smbusers file, where the another share section in smb.conf is pointing to (@smbusers), a logon box pops up on Windows XP.
The username is added to the password file.

Was anybody able to solve this problem?
5 REPLIES 5
Gerdo Lansing
New Member

Re: Using long user names with Samba

We have Samba version 2.2.8.
RAC_1
Honored Contributor
Solution

Re: Using long user names with Samba

On unix side, you should stick to using 8 char long user name. You can use map file paramter to take care long names on Window$ side. Under global, you can put map file = /tmp/map.file

map file will contain windows to unix mapping for users.

windows_user unix

Hope this helps.

Anil
There is no substitute to HARDWORK
Geoff Wild
Honored Contributor

Re: Using long user names with Samba

Yes - use the map file - by default this should be:

/etc/opt/samba/username.map

This option allows you to specify a file containing a mapping of usernames from the clients to the server. This can be used for several purposes. The most common is to map usernames that users use on DOS or Windows machines to those that the UNIX box uses. The other is to map multiple users to a single username so that they can more easily share files.

For example to map from the name admin or administrator to the UNIX name root you would use:

root = admin administrator

Or to map anyone in the UNIX group system to the UNIX name sys you would use:

sys = @system

You can have as many mappings as you like in a username map file.

If your system supports the NIS NETGROUP option then the netgroup database is checked before the /etc/group database for matching groups.

You can map Windows usernames that have spaces in them by using double quotes around the name. For example:

tridge = "Andrew Tridgell"

would map the windows username "Andrew Tridgell" to the unix username "tridge".


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Gerdo Lansing
New Member

Re: Using long user names with Samba

Thanx Anil. Your answer has solved our problem.
Thanx Geoff for the extra information.

Best regards,
Gerdo Lansing
Gerdo Lansing
New Member

Re: Using long user names with Samba

See the answers of Anil and Geoff for the solution.