1825797 Members
2882 Online
109687 Solutions
New Discussion

hpux and cifs

 
David_550
Advisor

hpux and cifs

Hi,
somebody knows, how i can create users in my hpux 11i with 8-15 character longs?
I need it because in my windows domain i have users with 9-12 character longs and i need create those users in my hpux and samba.

i dont want do it in trusted mode.

Help,
Thanks

David
6 REPLIES 6
Sundar_7
Honored Contributor

Re: hpux and cifs

Davi, whether or not the system is trusted, the supported maximum number of characters for a login name is only 8, not more than that.
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: hpux and cifs

You can use LDAP to authenticate HP-UX users to a microsoft or Linux LDAP server that supports longer names.

But with the native OS, any character beyond number 8 is a nuisance that the OS ignores.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Geoff Wild
Honored Contributor

Re: hpux and cifs

You can use the username.map file and map users with long windows id's to 8 character unix id's.

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.
David_550
Advisor

Re: hpux and cifs

Thanks,but where is the location of the username.map file?

Thanks,

David

Cesare Salvioni
Trusted Contributor

Re: hpux and cifs

Username mapping is for sure the simplest solution.

You can choose any file for mapping, just configure the key
username map through swat in global section (maybe you have to select advanced view to see this parameter)
You can also simply add the line

username map = /your_path/your_file
ex.
username map = /var/opt/samba/private/usernamemap
in the smb.conf file

Then fill this file with entries like
unix_username = windows_username1 ....
like
root = administrator "Cesare Salvioni"

anytime a user in the windows_username is connecting a resource, it will be mapped to the unix_username

See also the help in swat for the username map keyword

Hope this help
Cesare Salvioni
Geoff Wild
Honored Contributor

Re: hpux and cifs

Actually, username.map by default with HP's CIFS is in /etc/opt/samba

You can put it anywhere you like - just specify in your smb.conf file:

username map = /etc/opt/samba/username.map

Also, check out swat on your system:

http://yourserver:901

Great help available online.

Sign in as root, then click on "Globals", then "Help" next to username.map.

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.