UserLDAP is an LDAP-aware implementation of the UserInfo object - this allows user
information to be retrieved from an LDAP server, as opposed to simply retrieved
from the database. In order for this implementation to work, the following
properties must be set in the properties file for the specific db/context to be
user with LDAP:
ldapServer: the URL to the LDAP context via JNDI (e.g. ldap://localhost:389)
ldapUser: The username to use to access the LDAP server (cn=Directory Manager)
ldapPassword: The password to use when accessing the LDAP server (e.g. pass)
ldapRoot: The root for the entries we look up (e.g. o=javacorp.com)
Creation date: (9/18/00 1:55:15 PM)
author: Michael Nash
getEmailAuthCode() Here we generate an authorization code that would be hard for someone to guess.
The idea is that the person has to check the email sent to them to get this
number, and then click on the specially encoded URL to ensure that he/she
actually is checking the email account used at registration.
The little trick of getting the time in milliseconds that the person registered,
multiplying by some constant, and then rounding, is extremely weak.
getValues() Method to return a Vector of ValidValue
This method may be implemented by objects that want to provide a
list of valid values for other DB objects.
sendAuthEmail() Sends an Authorization Email to a new User.
public void
sendFollowUpEmail() Once a user has validated his email address through the email validation
servlet, the user will receive this message giving previously requested
username/password.
Return the name of the context/database connection that this DB object is using.
If none is set, then we are using the "default" database/context.
a String containing the name of the DBName to use.
Here we generate an authorization code that would be hard for someone to guess.
The idea is that the person has to check the email sent to them to get this
number, and then click on the specially encoded URL to ensure that he/she
actually is checking the email account used at registration.
The little trick of getting the time in milliseconds that the person registered,
multiplying by some constant, and then rounding, is extremely weak. We need a
better method of generating a unique code that will "play nice" in a query
string.
Creation date: (8/8/00 3:00:41 PM)
author Adam Rossi, PlatinumSolutions, Inc.
java.lang.String
the primary group of this user is appropriate for unix-like purposes,
such as setting the group for a file permission
name of the primary group of this user; null if no group is found
Method to return a Vector of ValidValue
This method may be implemented by objects that want to provide a
list of valid values for other DB objects. It is strongly recommended
that the valid value list be cached (via the CacheManager) for performance.
The naming convention used in Expresso is to store the ValidValue list with
a cache name the same as the db objects class name with ".validValues" appended
The vector of values
Send this user a notification via e-mail.
Parameters: subject - Subject of the e-mail Parameters: message - Message to send in body of e-mail throws: DBException - If the mail message cannot be sent
Once a user has validated his email address through the email validation
servlet, the user will receive this message giving previously requested
username/password.
Creation date: (8/8/00 11:44:26 PM)
author: Adam Rossi, PlatinumSolutions, Inc.
throws: com.jcorporate.expresso.core.db.DBException - The exception description.