Re: Changing EOModel login on the fly?
Re: Changing EOModel login on the fly?
- Subject: Re: Changing EOModel login on the fly?
- From: Greg Hulands <email@hidden>
- Date: Fri, 16 Apr 2004 09:23:40 +1000
On another note, is it possible to get the EOModel to generate the
database tables on the fly, this would be like EOModeller's ability to
generate the sql and then execute it on the database. I am just asking
this for turnkey style solutions where the user wouldn't have
EOModeller on there system to open the model and execute the sql.
Greg
On 15/04/2004, at 6:45 PM, Sako! wrote:
try
{
EOModel eom = EOModelGroup.defaultGroup().modelNamed("YOUR EOModler
Name");
NSMutableDictionary dict = new
NSMutableDictionary(eom.connectionDictionary());
// to change the user name
dict.setObjectForKey("xxxx", "password");
// to change the passowrd
dict.setObjectForKey("xxxx", "username");
// to change the db
dict.setObjectForKey("xxxxx", "URL");
System.out.println( "\n\n\n dic : " + dict.valueForKey("URL") );
eom.setConnectionDictionary(dict);
}
catch(Exception e)
{
System.out.println("Application line 199 " + e);
}
----- Original Message -----
From: "Colin Cornaby" <email@hidden>
To: <email@hidden>
Sent: Wednesday, April 14, 2004 11:26 PM
Subject: Changing EOModel login on the fly?
I have a DirectToWeb application connecting to an LDAP database.
However, I need to be able to connect to login window with the actual
ldap username/password for logging in and editing the database. Whats
the best way to go about this? The database is designed so that people
will only get access to records at their site, so the database
requires
they login with their own user/password to make changes.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.