directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r664424 - in /directory/apacheds/branches/bigbang: core/src/main/java/org/apache/directory/server/core/CoreSession.java core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java pom.xml
Date Sun, 08 Jun 2008 01:59:14 GMT
Author: akarasulu
Date: Sat Jun  7 18:59:14 2008
New Revision: 664424

URL: http://svn.apache.org/viewvc?rev=664424&view=rev
Log:
ignore the newldap module and add isAnonymous() to CoreSession

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
    directory/apacheds/branches/bigbang/pom.xml

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java?rev=664424&r1=664423&r2=664424&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/CoreSession.java
Sat Jun  7 18:59:14 2008
@@ -118,6 +118,14 @@
     
     
     /**
+     * Gets whether or not this user is anonymous.
+     *
+     * @return true if the identity is anonymous false otherwise
+     */
+    boolean isAnonymous();
+    
+    
+    /**
      * Gets the authentication level associated with this session.
      * 
      * @return the authentication level associated with the session

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java?rev=664424&r1=664423&r2=664424&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/DefaultCoreSession.java
Sat Jun  7 18:59:14 2008
@@ -314,4 +314,10 @@
     {
         return referralHandlingMode;
     }
+
+
+    public boolean isAnonymous()
+    {
+        return getEffectivePrincipal().getJndiName().isEmpty();
+    }
 }

Modified: directory/apacheds/branches/bigbang/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/pom.xml?rev=664424&r1=664423&r2=664424&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/pom.xml (original)
+++ directory/apacheds/branches/bigbang/pom.xml Sat Jun  7 18:59:14 2008
@@ -358,7 +358,9 @@
     <module>protocol-shared</module>
     <module>protocol-ntp</module>
     <module>protocol-ldap</module>
+    <!--
     <module>protocol-newldap</module>
+    -->
     <module>protocol-kerberos</module>
     <module>protocol-dhcp</module>
     <module>protocol-dns</module>



Mime
View raw message