1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

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)
This commit is contained in:
Volker Lendecke 2003-12-30 16:01:24 +00:00
parent 1159b55c25
commit 359166785a

View 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));