Ok ich versuche das allerdings komme ich gar nicht erst soweit das es mir was bringen würde
Problem:
LdapContext ctx = new InitialLdapContext(env,null);
die Zeile
An error occurred at line: 77 in the jsp file: /webtops/standard/webtop/welcome.jsp
LdapContext cannot be resolved to a type
72: env.put(Context.SECURITY_AUTHENTICATION,"simple");
73: env.put(Context.SECURITY_PRINCIPAL,adminName);
74: env.put(Context.SECURITY_CREDENTIALS,adminPassword);
75: env.put("java.naming.ldap.attributes.binary","objectGUID");
76: env.put(Context.PROVIDER_URL,server);
77: LdapContext ctx = new InitialLdapContext(env,null);
78:
Nun habe ich gedacht schau mal nach hab das hier versucht:
<%@ page import="javax.naming.directory.ldap" %>
<%@ page import="javax.naming.directory.ldap.LdapContext" %>
An error occurred at line: 31 in the generated java file
Only a type can be imported. javax.naming.directory.ldap resolves to a package
An error occurred at line: 32 in the generated java file
Only a type can be imported. javax.naming.directory.ldap.LdapContext resolves to a package
jetzt habe ich keine Ahnung was ich da machen soll?
hab auch mal das hier angeschaut:
http://forum.fachinformatiker.de/java/72614-ldap-benutzer-kennwort-vergleichen.html
um erstmal rein zukommen jedoch klappt das auch nicht sobald ich zur stelle:
ctx = new InitialDirContext(properties);
komme sagt er "die seite kann nicht angezeigt werden"
Danke nochmals!