Archived
Disable radius functionality
This commit is contained in:
1 parent
3d38d41c30
commit
5bdc5d672e
4 files changed
+14
-7
No files matched your search
@@ -16,7 +16,6 @@ from inside.models import InsideUser
|
||||
from inside.utils import set_inside_password
|
||||
|
||||
from neuf_kerberos.utils import set_kerberos_password, has_kerberos_principal
|
||||
from neuf_radius.utils import set_radius_password
|
||||
from neuf_ldap.utils import set_ldap_password, ldap_username_exists, ldap_user_group_exists
|
||||
from neuf_userinfo.utils import decrypt_rijndael
|
||||
from neuf_userinfo.validators import UsernameValidator, validate_password
|
||||
@@ -41,7 +40,10 @@ class NeufSetPasswordForm(SetPasswordForm):
|
||||
set_inside_password(username, password)
|
||||
|
||||
# Active services
|
||||
set_radius_password(username, password) # creates user if non-existant
|
||||
if 'neuf_radius' in settings.INSTALLED_APPS:
|
||||
from neuf_radius.utils import set_radius_password
|
||||
set_radius_password(username, password) # creates user if non-existant
|
||||
|
||||
if ldap_username_exists(username):
|
||||
set_ldap_password(username, password)
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<div class="well">
|
||||
<ul>
|
||||
<li><span id="sso">Felles innlogging (DNS-konto)</span></li>
|
||||
<li><span id="wireless_status">Trådløst nettverk</span></li>
|
||||
<li><span id="wireless_status">Trådløst nettverk (neuf-wifi)</span></li>
|
||||
<li><span id="client_status">Foreningsmaskiner</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
}
|
||||
$("#client_status").append(image).prop('title', title).attr('data-content', data_content).popover();
|
||||
});
|
||||
$.getJSON("/userstatus/wireless/?format=json&username="+username, function(data) {
|
||||
/*$.getJSON("/userstatus/wireless/?format=json&username="+username, function(data) {
|
||||
if(data.active) {
|
||||
image = img_check;
|
||||
title = 'Du har tilgang til trådløst nettverk';
|
||||
@@ -86,7 +86,12 @@
|
||||
data_content = 'Du har ikke en trådløskonto i Radius.';
|
||||
}
|
||||
$("#wireless_status").append(image).prop('title', title).attr('data-content', data_content).popover();
|
||||
});
|
||||
});*/
|
||||
|
||||
/* Radius is not in use, show info about SSID with PSK */
|
||||
title = 'Du har tilgang til trådløst nettverk';
|
||||
data_content = 'Spør andre aktive eller i Glassbaren om passord til neuf-wifi';
|
||||
$("#wireless_status").append(img_check).prop('title', title).attr('data-content', data_content).popover();
|
||||
|
||||
$.getJSON("/ldap/users/"+username+"/")
|
||||
.done(function(data) {
|
||||
|
||||
@@ -35,7 +35,7 @@ INSTALLED_APPS += (
|
||||
'rest_framework',
|
||||
'neuf_userinfo',
|
||||
'neuf_ldap',
|
||||
'neuf_radius',
|
||||
# 'neuf_radius', # Not in use
|
||||
'neuf_kerberos',
|
||||
'inside',
|
||||
)
|
||||
|
||||
@@ -11,7 +11,7 @@ urlpatterns = patterns(
|
||||
url(r'', include('neuf_userinfo.urls')),
|
||||
url(r'', include('neuf_ldap.urls')),
|
||||
url(r'^userstatus/client/$', 'neuf_kerberos.views.client_status'),
|
||||
url(r'^userstatus/wireless/$', 'neuf_radius.views.wireless_status'),
|
||||
# url(r'^userstatus/wireless/$', 'neuf_radius.views.wireless_status'), # radius is not in use
|
||||
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
|
||||
Reference in new issue
Block a user