forked from identityxx/penrose-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved some classes into common package.
- Loading branch information
Showing
59 changed files
with
544 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
client/src/java/org/safehaus/penrose/ldap/connection/LDAPConnectionClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package org.safehaus.penrose.ldap.connection; | ||
|
||
import org.safehaus.penrose.client.PenroseClient; | ||
import org.safehaus.penrose.connection.ConnectionClient; | ||
import org.safehaus.penrose.ldap.SearchResult; | ||
import org.safehaus.penrose.ldap.DN; | ||
import org.safehaus.penrose.ldap.SearchResponse; | ||
import org.safehaus.penrose.ldap.SearchRequest; | ||
import org.safehaus.penrose.schema.Schema; | ||
|
||
/** | ||
* @author Endi Sukma Dewata | ||
*/ | ||
public class LDAPConnectionClient extends ConnectionClient implements LDAPConnectionServiceMBean { | ||
|
||
public LDAPConnectionClient(PenroseClient client, String partitionName, String connectionName) throws Exception { | ||
super(client, partitionName, connectionName); | ||
} | ||
|
||
public SearchResult find(String dn) throws Exception { | ||
return (SearchResult)invoke( | ||
"find", | ||
new Object[] { dn }, | ||
new String[] { String.class.getName() } | ||
); | ||
} | ||
|
||
public SearchResult find(DN dn) throws Exception { | ||
return (SearchResult)invoke( | ||
"find", | ||
new Object[] { dn }, | ||
new String[] { DN.class.getName() } | ||
); | ||
} | ||
|
||
public SearchResponse search(SearchRequest request, SearchResponse response) throws Exception { | ||
return (SearchResponse)invoke( | ||
"search", | ||
new Object[] { request, response }, | ||
new String[] { SearchRequest.class.getName(), SearchResponse.class.getName() } | ||
); | ||
} | ||
|
||
public Schema getSchema() throws Exception { | ||
return (Schema)getAttribute("Schema"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
common/src/java/org/safehaus/penrose/connection/ConnectionServiceMBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tion/module/IdentityLinkingException.java → .../federation/IdentityLinkingException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package org.safehaus.penrose.jdbc; | ||
|
||
/** | ||
* @author Endi Sukma Dewata | ||
*/ | ||
public class JDBC { | ||
|
||
public final static String DRIVER = "driver"; | ||
public final static String URL = "url"; | ||
public final static String USER = "user"; | ||
public final static String PASSWORD = "password"; | ||
|
||
public final static String BASE_DN = "baseDn"; | ||
public final static String CATALOG = "catalog"; | ||
public final static String SCHEMA = "schema"; | ||
public final static String TABLE = "table"; | ||
public final static String FILTER = "filter"; | ||
|
||
public final static String SIZE_LIMIT = "sizeLimit"; | ||
public final static String CREATE = "create"; | ||
|
||
public final static String AUTHENTICATION = "authentication"; | ||
public final static String AUTHENTICATION_DEFAULT = "default"; | ||
public final static String AUTHENTICATION_FULL = "full"; | ||
public final static String AUTHENTICATION_DISABLED = "disabled"; | ||
|
||
public final static String ADD = "add"; | ||
public final static String BIND = "bind"; | ||
public final static String COMPARE = "compare"; | ||
public final static String DELETE = "delete"; | ||
public final static String MODIFY = "modify"; | ||
public final static String MODRDN = "modrdn"; | ||
public final static String SEARCH = "search"; | ||
public final static String UNBIND = "unbind"; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
common/src/java/org/safehaus/penrose/ldap/connection/LDAPConnectionServiceMBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.safehaus.penrose.ldap.connection; | ||
|
||
import org.safehaus.penrose.ldap.SearchResult; | ||
import org.safehaus.penrose.ldap.DN; | ||
import org.safehaus.penrose.ldap.SearchResponse; | ||
import org.safehaus.penrose.ldap.SearchRequest; | ||
import org.safehaus.penrose.schema.Schema; | ||
|
||
/** | ||
* @author Endi Sukma Dewata | ||
*/ | ||
public interface LDAPConnectionServiceMBean { | ||
|
||
public SearchResult find(String dn) throws Exception; | ||
public SearchResult find(DN dn) throws Exception; | ||
|
||
public SearchResponse search(SearchRequest request, SearchResponse response) throws Exception; | ||
|
||
public Schema getSchema() throws Exception; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.