diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Hostbase/nisauth.py | 2 | ||||
-rw-r--r-- | src/lib/Server/Hostbase/urls.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Hostbase/nisauth.py b/src/lib/Server/Hostbase/nisauth.py index 9bce9511f..9c7da8c0a 100644 --- a/src/lib/Server/Hostbase/nisauth.py +++ b/src/lib/Server/Hostbase/nisauth.py @@ -35,7 +35,7 @@ class nisauth(object): if p[1] == crypt.crypt(passwd, p[1][:2]): # check to see if user is in valid support groups # will have to include these groups in a settings file eventually - if not login in nis.match(AUTHORIZED_GROUP, 'group.byname').split(':')[-1].split(','): + if not login in nis.match(AUTHORIZED_GROUP, 'group.byname').split(':')[-1].split(',') and p[3] != nis.match(AUTHORIZED_GROUP, 'group.byname').split(':')[2]: raise NISAUTHError('group') self.uid = p[2] else: diff --git a/src/lib/Server/Hostbase/urls.py b/src/lib/Server/Hostbase/urls.py index fe76ae7b2..d4dae4f3f 100644 --- a/src/lib/Server/Hostbase/urls.py +++ b/src/lib/Server/Hostbase/urls.py @@ -14,6 +14,7 @@ urlpatterns = patterns('Bcfg2.Server.Hostbase.hostbase.views', (r'^hostbase/(?P<host_id>\d+)/dns/edit', 'dnsedit'), (r'^hostbase/(?P<host_id>\d+)/dns', 'dns'), (r'^hostbase/new', 'new'), + (r'^hostbase/(?P<host_id>\d+)/copy', 'copy'), (r'^hostbase/hostinfo', 'hostinfo'), (r'^hostbase/zones/$', 'zones'), (r'^hostbase/zones/(?P<zone_id>\d+)/$', 'zoneview'), |