-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google LDAP - Multiple Base DN #285
Comments
Anyone ? :) |
Hi @nilldot , check out the Google LDAP Implementation here: https://github.com/simllll/node-radius-server/blob/master/src/auth/GoogleLDAPAuth.ts All the best |
Seems related to ts 4.6.4... try to run it with 4.6.3 in the meantime. not quite sure where this is coming from.. looks like an upstream bug to me. |
With typescript@next (nightly) the error is gone already, couldn't find the related ticket, but as long as the error is gone already with the nightly, I assume they found the upstream bug for this already :) |
Right. It does work now. Good catch! In regards to creating your own provider. I have to admin I'm a little bit puzzled.
#config.js But unfortunately, it didn't work. Would it be possible for your to share/define the example for a new domain if possible? You have one for dc=hokify,dc=com', so dc=hokify2,dc=com' would do really. Thank you! |
Mhm by looking at it quickly, I actually guess it's not even necessary to change the code. so what you need is that the lookup adds other entries of the ldap directory. right now it looks it up by generating a searchBase and collects the result of it. the query for the search is the searchBase . which can be freely configured, or if it is not set, it is so just try to overwrite "searchBase" with a query that returns all users of all your domains. not tested it but something like "ou=users" could do it? That means set in the config instead of "base" the value for "searchBase". |
Unfortunately, Google LDAP doesn't support the global catalog (similar to AD for instance) feature. Neither supports search across multiple domains. Really a joke for "enterprise" service IMHO. I have already checked this with Google (we use a Google Enterprise subscription) at some point too. That said, some clients (Softerra LDAP Browser for example), can handle enumeration and then use sub-search, but it's the client-side implementation I'm afraid. Also, i tried leaving the base DB empty '' as a test, but got [GoogleLDAPAuth] error: {"lde_message":"No Such Object","lde_dn":null} in the end. Bummer. |
Can you try this branch: https://github.com/simllll/node-radius-server/tree/feat/multiple-dns now you an add more base paths as an array in the config, e.g. |
Sounds like an error in the config? Can you post the whole file |
Right, apparently, I missed the comma after the base DN definition, hence the issue ... The running [UDPServer] radius-server process, listening 0.0.0.0:1812 Looks very promising though. I will try this in the pre-production early this week and will report back. |
Good luck, for more verbose output you can set a loglevel e.g. in the config. E.g. set loglevel: 'verbose' All levels are: |
So guys, what is the real-world scenario usage for this app ? |
TTLS is the way to go, the communication is encrypted! |
I'm confused now tbh. TTLS is in essence tunnelled TLS. The issue here is that "PEAP-EAP-TLS aka EAP-TLS" needs a user/machine certificate, and has nothing to do with Google LDAP so to speak. We need EAP-PEAP here. As per the error (see above), the app crashes after I try to connect from Windows 10 client. What I'm doing wrong ? |
I guess you haven't authenticated with TTLS / PAP or the client is not supporting it. The error comes up if there is a type 21 (TTLS) EAP package that has no EAP message in it - sounds like a buggy client to me. |
It is a Windows 10 Pro client, so expected to work out of the box to be honest. Does it work for anyone actually? |
There must be some issue on your side, we have several windows 10 pro clients. Maybe this checklist helps:
|
The problem is that TTLS is not selected by default Windows client, even as a fallback. Anyhow make this work using the MS-CHAP v2? |
The radius server actually tells the client what mechanism can be used and they usually should find an agreement automatically. Are you sure you have no other config on your side that interferes? I can 100% assure that win 10 pro clients can automatically connect on our side. Regarding MS-CHAP v2: I'm not sure if this can work in this case as you need to tunnel the (plaintext) password to the LDAP Server for authentication. But it's a while since when I was looking into it. |
Hi Guys,
Our Google workspace instance has 10+ domains which makes user search tricky, as requires multiple Base DN entries to find the users. I couldn't find a way to add more than one Base DN so far. Any advice would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: