Bug 2345 - %U not consistent ?
Summary: %U not consistent ?
Status: NEW
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Extended Characters (show other bugs)
Version: 3.0.6
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Jeremy Allison
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on: 593
Blocks:
  Show dependency treegraph
 
Reported: 2005-02-14 06:28 UTC by Pascal Terjan
Modified: 2007-01-30 21:06 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Terjan 2005-02-14 06:28:40 UTC
The locale is fr_FR.UTF-8

Configuration is :
    dos charset = cp850
    unix charset = UTF-8
    display charset = UTF-8

When user has non ascii character, I can't find a nice way to get him access his
profile.

First try :
    root preexec = PROFILE=/opt//share_Profiles/%U ; if [ ! -e $PROFILE ]; then
mkdir -pm700 $PROFILE ; chown %u.%g $PROFILE;fi

The directory is created with __ instead of each non ascii char, but then with 

logon path = \\%L\Profiles\%U

it can't access it's profile like if %U was not interpreted the same way in the
[global] section as in the [Profiles] one.

2nd try
I tried with %u at both paces, did not work better

3rd try
using %U in the preexec
setting sambaProfilePath in the LDAP to the username with non ascii chars
replaced by __

works fine but it's problematic if we have to add an entry in the LDAP for each
user with non ascii chars in his name. More, we won't be able to add an user
with usual interfaces.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-02-15 09:35:14 UTC

*** This bug has been marked as a duplicate of 593 ***
Comment 2 Gerald (Jerry) Carter (dead mail address) 2005-02-18 07:16:11 UTC
reopening....
Comment 3 Gerald (Jerry) Carter (dead mail address) 2005-02-18 07:17:41 UTC
i assume this styill exists in 3.0.11.  If so please, update the version.  Thanks.