Using different attribut names in LDAP ?

[email protected] Wed, 3 Aug 2005 16:42:23 +0200
Newsgroups gmane.linux.suse.proxy-suite
Message-ID <[email protected]>
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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]