summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-30 16:00:56 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-30 16:00:56 +0000
commit0ac7dcce6ba47517cd279907071cb50b16b82d16 (patch)
tree0a061b00fa91589f56ccc2b96df85f0766b3da15 /source3
parenta0f8007da59932bcdbff9261a3fa30e803c41557 (diff)
downloadsamba-0ac7dcce6ba47517cd279907071cb50b16b82d16.tar.gz
samba-0ac7dcce6ba47517cd279907071cb50b16b82d16.tar.bz2
samba-0ac7dcce6ba47517cd279907071cb50b16b82d16.zip
The AFS pts command always generates completely lower-case user names. As case
is not significant in windows user names we should not lose information by lower-casing the name before handing it to AFS. Volker (This used to be commit 6d2285b6d1599648661be47abaaa888419700d22)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/afs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/afs.c b/source3/lib/afs.c
index fc78950f39..789afcdd83 100644
--- a/source3/lib/afs.c
+++ b/source3/lib/afs.c
@@ -142,6 +142,10 @@ BOOL afs_login(connection_struct *conn)
pstrcpy(afs_username, lp_afs_username_map());
standard_sub_conn(conn, afs_username, sizeof(afs_username));
+ /* The pts command always generates completely lower-case user
+ * names. */
+ strlower_m(afs_username);
+
cell = strchr(afs_username, '@');
if (cell == NULL) {
@@ -152,7 +156,6 @@ BOOL afs_login(connection_struct *conn)
*cell = '\0';
cell += 1;
- strlower_m(cell);
DEBUG(10, ("Trying to log into AFS for user %s@%s\n",
afs_username, cell));