summaryrefslogtreecommitdiff
path: root/source3/lib/afs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-12-30 16:01:24 +0000
committerVolker Lendecke <vlendec@samba.org>2003-12-30 16:01:24 +0000
commit359166785a324e6924d5f028618388dbd1eab80b (patch)
tree0d8ff25df405fbc8c7441fa10fb84983264ea8b7 /source3/lib/afs.c
parent1159b55c25fd7855491ea59576bfb8f8dc5c42e8 (diff)
downloadsamba-359166785a324e6924d5f028618388dbd1eab80b.tar.gz
samba-359166785a324e6924d5f028618388dbd1eab80b.tar.bz2
samba-359166785a324e6924d5f028618388dbd1eab80b.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 097e8d44b4a6eb49f36debae1f2cc8af7565b0eb)
Diffstat (limited to 'source3/lib/afs.c')
-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));