Univention Bugzilla – Attachment 6032 Details for
Bug 35516
Client authentication not possible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for networkaccess.py
radius_s4.patch (text/plain), 931 bytes, created by
Tim Petersen
on 2014-07-31 15:36 CEST
(
hide
)
Description:
Patch for networkaccess.py
Filename:
MIME Type:
Creator:
Tim Petersen
Created:
2014-07-31 15:36 CEST
Size:
931 bytes
patch
obsolete
>--- /usr/share/pyshared/univention/networkaccess.py >+++ /usr/share/pyshared/univention/networkaccess.py >@@ -238,8 +238,17 @@ SAMBA_ACCOUNT_FLAG_DISABLED = 'D' > SAMBA_ACCOUNT_FLAG_LOCKED = 'L' > DISALLOWED_SAMBA_ACCOUNT_FLAGS = frozenset((SAMBA_ACCOUNT_FLAG_DISABLED, SAMBA_ACCOUNT_FLAG_LOCKED, )) > >+def parseUsername(username): >+ '''convert username from host/-format to $-format if required''' >+ if not username.startswith('host/'): >+ return username >+ username = username.split('/', 1)[1] # remove host/ >+ username = username.split('.', 1)[0] # remove right of '.' >+ return username + '$' >+ > def getNTPasswordHash(ldapConnection, username, stationId): > 'stationId may be None if it was not supplied to the program' >+ username = parseUsername(username) > if userToGroup or groupInfo: # proxy UCRV set, UCS@school mode > if not (checkProxyFilterPolicy(username) or checkNetworkAccess(ldapConnection, username)): > return None
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 35516
: 6032