Re: Changing EOModel login on the fly?
Re: Changing EOModel login on the fly?
- Subject: Re: Changing EOModel login on the fly?
- From: "Sako!" <email@hidden>
- Date: Thu, 15 Apr 2004 10:45:36 +0200
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.