git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1159b55
)
The AFS pts command always generates completely lower-case user names. As case
author
Volker Lendecke
<vlendec@samba.org>
Tue, 30 Dec 2003 16:01:24 +0000
(16:01 +0000)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/lib/afs.c
b/source3/lib/afs.c
index fc78950f398c60b7a5cd06fbd23e827a15bb2c6d..789afcdd837a2850865979702f0d55d694408328 100644
(file)
--- 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));