Hi Douglas, 

   thanks a lot for this - we'll review it and see how we go. 

   the 'correct' answer of course it to use the OID rather than the 
attribute name, but it's a bit of a fuss, and has been on the 'to do' list 
for some time :-). 

   thanks for your contribution! 

    - Chris 

> 
> While tryng to use OpenLDAP with the entries derived from
> account and posixAccount the table editor would list uid and userid
> both as manidory. This cause problems trying to add update
> an entry. 
> 
> But uid and userid are aliases names for the same attribute so this
> is a table editor problem, as it treas these as separate "must" 
> attributes. 
> 
> Attached is a patch that gets around this problem in the table editor
> by looking up the name in the schema then using the first alias found. 
> 
> I must admit I am not much of a Java programmer so please review
> this carefully. The intent is to look up the requested name in the 
> attribute
> schema and return the first name from that entry. It also gets the OID
> so it can be registered for later use.  It then returns the first name.
> Thus if userid was found, it would look this up and find it had uid
> and userid  and would return uid. 
> 
> The processing of the names in this area is very confusing.
> There is a 42 line comment in the getldapName routine, and the use
> of the variables names attOID when this is usually an Ldap name is
> very confusing. 
> 
> The patch is against the CVS.
>   cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jxplorer 
> 
> Thnaks. 
> 
> P.S. 
> 
> The web page at  http://www.jxplorer.org/ under Download Source code
> says:
>   "The source code can be downloaded from sourceforge cvs via anonymous
>    cvs - something like:
>   cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/jxplorer
>    should do it."
> But that is wrong. 
> 
> --  
> 
>  Douglas E. Engert  <[EMAIL PROTECTED]>
>  Argonne National Laboratory
>  9700 South Cass Avenue
>  Argonne, Illinois  60439
>  (630) 252-5444
 


 ---------------------------------------
Dr Christopher Betts
Melbourne, Australia
pegacat.com 

Wer mit Ungeheuern k�mpft, mag zusehn,
dass er nicht dabei zum Ungeheuer wird.
                           - Nietzsche 

(Who fights Monsters must beware,
     lest in doing so they become one)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jxplorer-devel mailing list
Jxplorer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxplorer-devel

Reply via email to