2 Replies Latest reply on Nov 2, 2017 5:52 AM by Martin Choma

    ldapextended module log warnings

    Artyom Davydov Newbie

      Hi, we have had problems with ldap module specially with pool connections, so to enable pools we have add module options in login module:

       

      <module-option name="com.sun.jndi.ldap.connect.pool.initsize" value="20"/>

      <module-option name="com.sun.jndi.ldap.connect.pool.maxsize" value="100"/>

      <module-option name="com.sun.jndi.ldap.connect.pool.prefsize" value="60 "/>

      <module-option name="com.sun.jndi.ldap.connect.pool.timeout" value="30000"/>

      <module-option name="com.sun.jndi.ldap.connect.pool" value="true"/>

       

      it works fine , but in logs we have got this :

       

      2017-03-15 11:11:47,697 WARN  [org.jboss.security] (argus task-5) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.pool.timeout

      2017-03-15 11:11:47,698 WARN  [org.jboss.security] (argus task-5) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.pool.maxsize

      2017-03-15 11:11:47,698 WARN  [org.jboss.security] (argus task-5) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.pool.prefsize

      2017-03-15 11:11:47,699 WARN  [org.jboss.security] (argus task-5) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.pool.initsize

      2017-03-15 11:11:47,699 WARN  [org.jboss.security] (argus task-5) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.pool

       

      and it spams on each login.. how we can fix this?

      thx

        • 1. Re: ldapextended module log warnings
          Sergey Kosarev Newbie

          The same problem.

          I set timeouts:

          <module-option name="com.sun.jndi.ldap.connect.timeout" value="5000"/>

          <module-option name="com.sun.jndi.ldap.read.timeout" value="5000"/>

          got warnings

          12:17:19,789 WARN  [o.j.security] (default task-29) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.read.timeout

          12:17:19,813 WARN  [o.j.security] (default task-29) PBOX00234: Invalid or misspelled module option: com.sun.jndi.ldap.connect.timeout

           

          while options are actually working.

          • 2. Re: ldapextended module log warnings
            Martin Choma Expert

            You can ignore it.

            This check was meant for picketbox specific options. Once java options were permitted, this check starts to emit false positives. If there is not such JIRA you can create one against picketbox. But picketbox is now replaced by Elytron in wildfly. So I think there is not big chance it will be fixed.

             

            Or if you really want to get rid of this warning  you can set  org.jboss.security logging category to ERROR level - but think twice

            1 of 1 people found this helpful