Re: perdition 1.18rc1 + ldap + email login
Simon Horman <[email protected]>
| Newsgroups | gmane.mail.perdition.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 22, 2009 at 03:06:42PM -0600, TheSin wrote: > I'm not sure if this affects all ldap users, but since 1.18rc1 I > couldn't login anymore using [email protected] like used in ispman. > > We used to use > > http://server/?o=ispman?mailRoutingAddress?sub?(uid=%25s) > > Since it's not using serverdb_get2 I updated that line to use > > http://server/?o=ispman?mailRoutingAddress,mailHost?sub?(uid=%25s) > > Which works 100% using ldap search It returns > > mailRoutingAddress = user_domain_tld@mailHost > mailHost = mailHost > > so I had to also add to perdition.conf > > strip_domain remote_login > > Now that being said even with all that I'd get server null, looking > into perditiondb_ldap.c I found that it wasn't setting the ref > values. I had to changes these lines > > /* Build the return string */ > if (returns[0]) > user_str = &returns[0]; > if (returns[1]) > server_str = &returns[1]; > if (returns[2]) > port_str = &returns[2]; > > to look like this > > /* Build the return string */ > if (returns[0]) > *user_str = returns[0]; > if (returns[1]) > *server_str = returns[1]; > if (returns[2]) > *port_str = returns[2]; > > Now everything works 100%, server gets set as does the user, hope this > helps others cause it was 4 days of hell for me :D Thanks. I'll get this fixed and release rc2. ______________________________________________ Perdition-users mailing list [email protected] http://lists.vergenet.net/listinfo/perdition-users