• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing EOModel login on the fly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Changing EOModel login on the fly? (From: Colin Cornaby <email@hidden>)
 >Re: Changing EOModel login on the fly? (From: "Sako!" <email@hidden>)

  • Prev by Date: Re: WORepetition not displaying
  • Next by Date: Re: Best Practice Displaying Option Text Field
  • Previous by thread: Re: Changing EOModel login on the fly?
  • Next by thread: Re: Changing EOModel login on the fly?
  • Index(es):
    • Date
    • Thread