The AFS pts command always generates completely lower-case user names. As case
authorVolker Lendecke <vlendec@samba.org>
Tue, 30 Dec 2003 16:01:24 +0000 (16:01 +0000)
committerVolker Lendecke <vlendec@samba.org>
Tue, 30 Dec 2003 16:01:24 +0000 (16:01 +0000)
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)

source3/lib/afs.c

index fc78950f398c60b7a5cd06fbd23e827a15bb2c6d..789afcdd837a2850865979702f0d55d694408328 100644 (file)
@@ -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));