OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: Port of sendmail SUNET_ID_HASH fn for LDA

Re: Port of sendmail SUNET_ID_HASH fn for LDAP map?


Subject: Re: Port of sendmail SUNET_ID_HASH fn for LDAP map?
From: Jason Hoos (jhoosthwack.net)
Date: Thu Jan 20 2000 - 22:23:56 CST


You're in luck; I just happen to have a patch that does exactly this,
since we were also using that feature of sendmail. I've attached it.
The patch was originally done against version 19990906-pl09. I haven't
tried it against the newest release (although I hopefully will soon),
so if it doesn't work let me know.

Once you build the patch, you need a new line in your main.cf to enable
it. The line should look like:

    xxx_munge_name=yes

where 'xxx' is the same prefix that you used on the other LDAP
config lines (xxx_search_base, etc.) for that particular LDAP map.

Currently the patch will strip out any non-alphanumeric character up until
it sees a '' sign. Thus it shouldn't munge domains names. The domain
part hasn't been thoroughly tested since I only use LDAP in an alias map,
but it should work just fine.

Jason Hoos
jhoosthwack.net

On Thu, Jan 20, 2000 at 07:50:43PM -0500, Rich Graves wrote:
> One of the things holding us back from a wholesale sendmail-postfix
> conversion is the SUNET_ID_HASH hack in sendmail 8.9.3 map.c. This is very
> handy for smashing "joe.schmo", "joe_schmo", etc. to "joeschmo" before
> doing an LDAP mailacceptinggeneralid lookup. The first sort of mangling is
> VERY common as users type spurious spaces that get rewritten as dots.




This archive was generated by hypermail 2b27 : Thu Jan 20 2000 - 22:25:32 CST