LDAP authentication on PXE menu (with email support as username)
-
Now there is a way to authenticate users with LDAP using attribute userPrincipalName filled with email address, I’m wondering if we can enable this authentication on PXE menu as well??
-
It should already work for ipxe authentication already
-
I must admit I have a complexe password with non alphanumeric characters (Active Directory Policy), can this be this ?
-
@fritoss007 I guess i’m not understanding.
iPXE should be able to take the same authentication as how you login to the GUI.
I guess, what is being asked here is already answered.
Are you saying you’ve tried logging in and it is not working?
Are you 100% certain you’re entering the username and password correctly?
-
To add on:
There’s 2 places that need the regex pattern updated within the User class: (The following are from the dev-branch, but should be relatively close for master branch as well)
- https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/fog/user.class.php#L134
- https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/fog/user.class.php#L223
There’s 1 place that needs the regex pattern updated within the LDAP plugin ldap class.
-
@Tom-Elliott said in LDAP authentication on PXE menu (with email support as username):
iPXE should be able to take the same authentication as how you login to the GUI.
Can you think of any non-web safe characters that might be passed that might not be escaped right by iPXE. Lets say the password had some reserved html characters in it like “ruBBer?ducks&15” If that was sent to the FOG server over a query string apache may get confused. I can’t say about a form/post method.
-
@george1421 Pretty sure that would not be the issue.
-
@Tom-Elliott @george1421 My bad, I’m so sorry! It’s a keyboard layout issue! Man I feel like a newbie right now! But in mydefence, As you can tell by my bad english I’m a frenchy from Canada :)…
So this bring that next question, how can I change the keyboard layout in the pxe menu ? and Should I start a new thread ?
-
@fritoss007 https://forums.fogproject.org/topic/10851/change-keyboard-layout-in-fog-boot-menues/9
https://wiki.fogproject.org/wiki/index.php/Building_undionly.kpxe
https://wiki.fogproject.org/wiki/index.php/IPXE#CompileThese are just a couple rough examples.
While I used to build all these things quite regularly, I’ve been out of practice as of late and mostly just improving and fixing code as needed, and trying to help on the forums when I can.
Key mapping has to be incorporated during compilation, and imagine a binary being generated with all key maps possible? So we leave this to the admin.
-
@fritoss007 This may help too, as I believe @Sebastian-Roth has made this script native to the github fogproject code, and can be run at any time:
https://github.com/FOGProject/fogproject/blob/master/utils/FOGiPXE/buildipxe.sh