You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/06/12 11:19:42 UTC

[Bug 53402] New: Incorrect error message for mod_ldap params

https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

          Priority: P2
            Bug ID: 53402
          Assignee: bugs@httpd.apache.org
           Summary: Incorrect error message for mod_ldap params
          Severity: trivial
    Classification: Unclassified
                OS: All
          Reporter: silverbacknet@gmail.com
          Hardware: All
            Status: NEW
           Version: 2.5-HEAD
         Component: mod_ldap
           Product: Apache httpd-2

After forgetting the type parameter of LDAPTrustedGlobalCert, I received this
message:

  Jun 11 14:43:09 kg-ln20 httpd[24072]: Syntax error on line 2 of
/etc/httpd/vhosts.d/srv.conf:
  Jun 11 14:43:09 kg-ln20 httpd[24072]: LDAPTrustedGlobalCert takes two or
three arguments, Takes three args; the file and/or directory containing the
trusted CA certificates (and global client certs for Netware) used to validate
the LDAP server.  Second arg is the cert type for the first arg, one of CA_DER,
CA_BASE64, CA_CERT7_DB, CA_SECMOD, CERT_DER, CERT_BASE64, CERT_KEY3_DB,
CERT_NICKNAME, KEY_DER, or KEY_BASE64. Third arg is an optional passphrase if
applicable.

If you take this advice, you'll get:

  Jun 11 14:44:16 kg-ln20 httpd[24084]: Syntax error on line 2 of
/etc/httpd/vhosts.d/srv.conf:
  Jun 11 14:44:16 kg-ln20 httpd[24084]: The certificate type
/etc/pki/tls/certs/server.crt is not recognised. It should be one of CA_DER,
CA_BASE64, CA_CERT7_DB, CA_SECMOD, CERT_DER, CERT_BASE64, CERT_KEY3_DB,
CERT_NICKNAME, KEY_DER, KEY_BASE64

The type is the _first_ arg, the file/directory is the second.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

--- Comment #4 from ramsai1729@gmail.com ---

Looks good to me, also we can just remove "Takes three arguments;", redundant
error message.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> ---
2.2 only, or am I misunderstanding?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

--- Comment #3 from Christophe JAILLET <ch...@wanadoo.fr> ---
Created attachment 29502
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29502&action=edit
Proposed patch

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.5-HEAD                    |2.2.23

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29502|0                           |1
           is patch|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53402] Incorrect error message for mod_ldap params

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53402

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk,
                   |                            |PatchAvailable
             Status|NEEDINFO                    |NEW

--- Comment #2 from Christophe JAILLET <ch...@wanadoo.fr> ---
Yes apparently, only 2.2 is concerned.

I also notice another issue concerning LDAPSharedCacheSize default value. (see
line 2734 against line 2073).

The proposed patch also corrects a typo in a comment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org