hola,

u need to do it vice versa - the static keys represent the Fields
within OM user table, the values (i.e. description) are expected
within LDAP - Result....


see ya

Smoeker

On 28 Apr., 13:21, bidab <ivan.bol...@gmail.com> wrote:
> Hi Smoeker
>
> I try to change some java part but without success...
>
> This is what I made :
>
> change --> public static final String LDAP_KEY_ADDITIONAL_NAME =
> "description";
> to --> public static final String LDAP_KEY_COMMENT = "description";
>
> and here :
>
> change -->
> String additionalname = "additionalname";
> if(userdata.containsKey(LDAP_KEY_ADDITIONAL_NAME) && userdata.get
> (LDAP_KEY_ADDITIONAL_NAME) != null)
> comment = userdata.get(LDAP_KEY_ADDITIONAL_NAME);
>
> to -->
> String comment = "comment";
> if(userdata.containsKey(LDAP_KEY_COMMENT) && userdata.get
> (LDAP_KEY_COMMENT) != null)
> comment = userdata.get(LDAP_KEY_COMMENT);
>
> and finally here :
> try{
>                         newUserId= 
> Usermanagement.getInstance().registerUserInit(
>                                 2,//user_level
>                                 1,//level_id
>                                 1,//available
>                                 1,// status
>                                 login,// loginname
>                                 passwd,//passwd
>                                 lastname,
>                                 firstname,
>                                 email,
>                                 new java.util.Date(),
>                                 street,
>                                 comment, //additionnalname before
>
> But it doesn't function, the description is always write in
> additionnal name and not in comment...
>
> Thanks
> Bidab
>
> On Apr 28, 8:40 am, smoeker <o.beche...@medint.de> wrote:
>
>
>
> > hola,
>
> > u need to change the java part : LdapLoginManagement contains mappings
> > between User fields OM and Ldap Fields :
>
> > public static final String LDAP_KEY_LASTNAME = "sn";
> >         public static final String LDAP_KEY_FIRSTNAME = "givenName";
> >         public static final String LDAP_KEY_MAIL = "mail";
> >         public static final String LDAP_KEY_STREET = "streetAddress";
> >         public static final String LDAP_KEY_ADDITIONAL_NAME = "description";
> >         public static final String LDAP_KEY_FAX =
> > "facsimileTelephoneNumber";
> >         public static final String LDAP_KEY_ZIP = "postalCode";
> >         public static final String LDAP_KEY_COUNTRY = "co";
> >         public static final String LDAP_KEY_TOWN = "l";
> >         public static final String LDAP_KEY_PHONE = "telephoneNumber";
>
> > see ya
>
> > Smoeker
>
> > On 27 Apr., 16:43, bidab <ivan.bol...@gmail.com> wrote:
>
> > > Hi,
>
> > > I use openmeetings 0.7RC1 and LDAP.
> > > When a new user is created thanks to LDAP connection, there are somes
> > > informations about the user inside his profile, for example his
> > > description ("Ivan Bolzer - Workplacement in network") for example.
>
> > > This is good, in fact I would this information displays on the textbox
> > > "comment" and not in "additionalname". I'm not sure, I found
> > > userSettings.lzx and registerNewUser.lzx but I don't know if it's here
> > > because I would applicate this modification just for LDAP connection
> > > (if it's possible)...
>
> > > Thanks
>
> > > Bidab- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to openmeetings-user@googlegroups.com
To unsubscribe from this group, send email to 
openmeetings-user+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to