diff options
Diffstat (limited to 'net-fs/autofs/files/autofs-5.0.8-ldap-wo-sasl.patch')
-rw-r--r-- | net-fs/autofs/files/autofs-5.0.8-ldap-wo-sasl.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-fs/autofs/files/autofs-5.0.8-ldap-wo-sasl.patch b/net-fs/autofs/files/autofs-5.0.8-ldap-wo-sasl.patch new file mode 100644 index 000000000000..a64ed7e8157f --- /dev/null +++ b/net-fs/autofs/files/autofs-5.0.8-ldap-wo-sasl.patch @@ -0,0 +1,27 @@ +diff --git a/modules/lookup_ldap.c b/modules/lookup_ldap.c +index 2ab1e8c..04b1da7 100644 +--- a/modules/lookup_ldap.c ++++ b/modules/lookup_ldap.c +@@ -846,20 +846,20 @@ int get_property(unsigned logopt, xmlNodePtr node, const char *prop, char **valu + return 0; + } + +-#ifdef WITH_SASL + /* + * For plain text, login and digest-md5 authentication types, we need + * user and password credentials. + */ + int authtype_requires_creds(const char *authtype) + { ++#ifdef WITH_SASL + if (!strncmp(authtype, "PLAIN", strlen("PLAIN")) || + !strncmp(authtype, "DIGEST-MD5", strlen("DIGEST-MD5")) || + !strncmp(authtype, "LOGIN", strlen("LOGIN"))) + return 1; ++#endif + return 0; + } +-#endif + + /* + * Returns: |