• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

adding user and authentication JNDI

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am running OpenLDAP server and i wish to adduser to my ldap server and do authentication.
I wish to do it from a JNDI Java Program.

this code already can connect ldap and java, also can adduser but cannot set homedirectory and loginshell, How do i do this??



regards
irvank
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please don't ask the same question in more than one place. It gets us all confused.

I've made a brief answer in this thread: https://coderanch.com/t/652279/Security/setting-ldap-homedirectory-loginshell-java#3014364

However, I've closed that thread, so further discussion should be done here.

Adding a user and authenticating a user are 2 completely different tasks and are best discussed separately.
 
Irvan Kosini
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sorry for confusing you guys.

as you can see from my first post which contain my code, it already can adding user to LDAP server which i have check using an application call ldapadmin on windows. i can see user have been added. but it still have some problem. i can't login with the user and pass that i have added before. because it need loginShell and homedirectory, (loginShell: /bin/bash/ homeDirectory: /home/username). i have tried to adding attribute like this


but can't, it give me error like this



if you guys have a way or an alternate way to solve this, please tell me how to do it.

Thank You
reply
    Bookmark Topic Watch Topic
  • New Topic