Sorry if I get involved in the discussion, but I have the same problem.
I dscovered that the property *cas.authn.ldap[0].dnFormat* is mandatory. However, although I have correcly provided a value for such a property, its value is always null. I'm trying to use Active Directory as the CAS backend, but I'm getting an error saying "IllegalArgumentException: Dn format cannot be empty/blank for active directory authentication". I opened a question on stackoverflow ( https://stackoverflow.com/questions/48949970/apereo-cas-activedirectory-illegalargumentexception-dn-format-cannot-be-empt ). I need to know where the @Bean *AbstractLdapAuthenticationProperties* is created and filled, so that (maybe) I'll be able to identify why the *dnFormat* is ALWAYS *null*, also if in *cas.properties* I have a correct value for *cas.authn.ldap[0].dnFormat.* I'm looking for someone that can put me on the right way. Thanks in advance for your attention. Kind regards, Lorenzo Il giorno giovedì 22 febbraio 2018 20:32:54 UTC+1, Kevin Liu ha scritto: > > Hello, > > I can't seem to make heads or tailed of getting CAS to talk to LDAP > > I know my LDAP is working because using the following command, I can see > all LDAP entries: > > ldapsearch -x -h alpha.beta.gamma -D [email protected] -W -b > "dc=beta,dc=gamma" > > My assumption is that since these credentials are being accepted by LDAP, > I just have to configure CAS to use them. Is this correct? > > So far, my cas.properties contains the following: > > cas.authn.ldap[0].order: 0 > cas.authn.ldap[0].name: LDAP > cas.authn.ldap[0].type: AD > cas.authn.ldap[0].ldapUrl: ldap://alpha.beta.gamma:389 > cas.authn.ldap[0].baseDn: dc=di2e,dc=civ > > This is not working as I get a ton of errors saying that CAS has not > connected to LDAP. > > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/26657175-d4a5-44ec-a43c-ea30337ef0b1%40apereo.org.
