From 0ac7dcce6ba47517cd279907071cb50b16b82d16 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 30 Dec 2003 16:00:56 +0000 Subject: 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) --- source3/lib/afs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit