Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - domg

#1
Ouais ce n'est pas vraiment une solution mais peut être dans une future version on sait jamais :)
#2
Bon j'ai bien une solution générale (ssh, console, proxy...) mais elle ne résiste pas à un reboot ni mise à jour. ::) ???
Il faut créer une classe login.conf
logon:\
:times.allow=MoTuWeThFr0800-17:\
:tc=default:


cap_mkdb -v /etc/login.conf

MoTuWeThFr0800-17 : Correspond au jours de la semaine de 8h à 17h

# adduser test
Username: test
Full name:
Uid (Leave empty for default):
Login group [test]:
Login group is test. Invite test into other groups? []:
Login class [default]: logon
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/test]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : test
Password   : *****
Full Name  :
Uid        : 1002
Class      : logon
Groups     : test
Home       : /home/test
Home Mode  :
Shell      : /bin/sh
Locked     : no


J'ai ouvert deux tickets sur github (https://github.com/opnsense/core/issues/1660 https://github.com/opnsense/core/issues/1661)
#3
Salut phil31,

Il y a ce qu'il faut dans l'installation mais pas forcément d'interface graphique. Une idée serait de créer des classes login.conf de type "enfant", "adulte" ce que tu veux avec comme propriété "times.allow heures autorisées" et attribuer à ton utilisateur la classe puis activer l'authentification locale dans squid.
Je vais faire des tests dans une VM et j'ouvrirais certainement un PR.
#4
Salut,

Je n'ai pas trouvé non plus d'option pour créer une plage horaire (peut être ouvrir un PR sur github). Par contre, est-ce que tu utilises une authentification style radius ?
#5
17.1 Legacy Series / Re: Windows AD and SSO
November 08, 2016, 05:08:14 PM
rgemmell,

Cool  :) Ah right I missed clock problem. Now you should have a /usr/local/etc/ssoproxyad/PROXY.keytab file and your OPNsense in AD (ou=computers).
Last step, you need to reset computers in AD and try updateDomain button.

And proxy SSO should work in IE,  check in OPNsense /var/log/squid/access.log file

The plugin miss an updateDomain crontab to update computer account (it expires every 30 days). I do not know what happens if computer is not updated in time...
#6
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 04:59:56 PM
Could you run the following from console (respect upppercase)

# cat /etc/resolv.conf
# dig -x 192.168.1.77
# dig hilt-opnsense.bwt.local
# cat /usr/local/etc/ssoproxyad/krb5.conf
# kinit Administrateur@BWT.LOCAL
# klist
# /usr/local/sbin/msktutil -c -b CN=COMPUTERS -s HTTP -k /usr/local/etc/ssoproxyad/PROXY.keytab --computer-name HILT-OPNSENSE --upn HTTP/hilt-opnsense.bwt.local --server bwx-hilt-dc01.bwt.local --enctypes 28 --verbose
#7
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 02:09:54 PM
You need also a PTR record for HILT-OPNSENSE.bwt.local
#8
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 12:26:31 PM
Basically the plugin use the same configuration described here http://wiki.squid-cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory#Configuring_a_Squid_Server_to_authenticate_off_Active_Directory

I still think it's a DNS problem my AD DNS contains this (sorry it's in french, but the important part is opnsense A and PTR)
#9
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 12:09:57 PM
Quote from: rgemmell on November 01, 2016, 11:55:17 AM

OPNsense must be in same domain as AD (hostname configuration page)
   Confirmed, under settings, General, the hostname is set to HILT-OPNSENSE
And the domain ?
#10
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 11:41:56 AM
ok, could you confirm all prerequisites are ok ?
#11
17.1 Legacy Series / Re: Windows AD and SSO
November 01, 2016, 10:40:24 AM
Hi,
Could you ping your OPNsense with hostname.domain and IP ?
If you can, I'm on IRC #opnsense for debugging
#12
17.1 Legacy Series / Re: Windows AD and SSO
October 31, 2016, 10:58:48 PM
Could you run from the console:
# configctl ssoproxyad joinDomain
#13
17.1 Legacy Series / Re: Windows AD and SSO
October 31, 2016, 11:54:47 AM
The button "Test" actually only prints a "Test ok!" message, in future it should test prerequisites and fields.
#14
17.1 Legacy Series / Re: Windows AD and SSO
October 31, 2016, 11:37:07 AM
Hi,

Domain Controller must be in same Domain, it should be BWX-HILT-DC01.HILT-OPNSENSE and Version can only be 2003 or 2008. For 2012 Domain, you can use 2008.
#15
17.1 Legacy Series / Re: Windows AD and SSO
October 30, 2016, 07:51:03 PM
Hi rgemmell,

This is the configuration I use, Domain Version can be 2003 or 2008 then save and join domain