Using different attribut names in LDAP ?
Is there an easy way to rename the attributes that are asked via LDAP, or do we have to change them in the source code ? If the source code change is the only way, would changing them in ftp-ldap.c suffice or not ? --- ftp-ldap.c 2005-01-10 12:30:49.000000000 +0100 +++ ftp-ldap.c.new 2005-08-03 16:40:00.683141568 +0200 @@ -601,7 +601,7 @@ /* ** Evaluate the destination FTP server address. */ - p = ldap_attrib(ld, e, "DestinationAddress", NULL); + p = ldap_attrib(ld, e, "our_next_hop", NULL); if(NULL != p && ctx->magic_addr == INADDR_ANY) { ctx->srv_addr = socket_str2addr(p, INADDR_ANY); if(INADDR_ANY == ctx->srv_addr) { hhloksec01:/usr/src/proxy-suite-1.9.2.4/ftp-proxy # The idea is to make them comply better to company rules so they are not mistaken and easy readable in a quite big number of attributes. Thanks for any hints, Jan-Uwe
On Wed, Aug 03, 2005 at 04:42:23PM +0200, ks.service.int2@ndr.de wrote:
Is there an easy way to rename the attributes that are asked via LDAP, or do we have to change them in the source code ?
If the source code change is the only way, would changing them in ftp-ldap.c suffice or not ?
Yes, it is sufficient.
See attached patch - I've extracted the attribute values to the
ftp-ldap.h file, so it should be easier to find and replace them.
Please verify the patch - I've just written it without any test!
Bye,
Marius.
--
° --- Marius Tomaschewski
participants (2)
-
ks.service.int2@ndr.de
-
Marius Tomaschewski