mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
Hot and dirty fix for Debian Buster.
This commit is contained in:
parent
7f07b1ed48
commit
e4d87a4fc7
2 changed files with 14 additions and 13 deletions
|
@ -92,19 +92,20 @@ server radius-wifi {
|
||||||
authorize {
|
authorize {
|
||||||
rewrite_calling_station_id
|
rewrite_calling_station_id
|
||||||
|
|
||||||
if (User-Name =~ /^(.*)@(.*)/){
|
# A decommenter pour activer le radius federez
|
||||||
if (User-Name !~ /^(.*)@(.*)example(.*)/){
|
#if (User-Name =~ /^(.*)@(.*)/){
|
||||||
update control{
|
# if (User-Name !~ /^(.*)@(.*)example(.*)/){
|
||||||
Proxy-To-Realm := 'FEDEREZ'
|
# update control{
|
||||||
}
|
# Proxy-To-Realm := 'FEDEREZ'
|
||||||
}
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
if ("%{request:User-Name}" =~ /^(.*)@(.*)example(.*)/){
|
# if ("%{request:User-Name}" =~ /^(.*)@(.*)example(.*)/){
|
||||||
update request{
|
# update request{
|
||||||
Stripped-User-Name := "%{1}"
|
# Stripped-User-Name := "%{1}"
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
|
|
||||||
filter_username
|
filter_username
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,6 @@ import ldapdb.models
|
||||||
import ldapdb.models.fields
|
import ldapdb.models.fields
|
||||||
|
|
||||||
from re2o.settings import LDAP, GID_RANGES, UID_RANGES
|
from re2o.settings import LDAP, GID_RANGES, UID_RANGES
|
||||||
from re2o.login import hashNT
|
|
||||||
from re2o.field_permissions import FieldPermissionModelMixin
|
from re2o.field_permissions import FieldPermissionModelMixin
|
||||||
from re2o.mixins import AclMixin, RevMixin
|
from re2o.mixins import AclMixin, RevMixin
|
||||||
from re2o.base import smtp_check
|
from re2o.base import smtp_check
|
||||||
|
@ -817,6 +816,7 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
|
||||||
def set_password(self, password):
|
def set_password(self, password):
|
||||||
""" A utiliser de préférence, set le password en hash courrant et
|
""" A utiliser de préférence, set le password en hash courrant et
|
||||||
dans la version ntlm"""
|
dans la version ntlm"""
|
||||||
|
from re2o.login import hashNT
|
||||||
super().set_password(password)
|
super().set_password(password)
|
||||||
self.pwd_ntlm = hashNT(password)
|
self.pwd_ntlm = hashNT(password)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue