• 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: "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.


  • Follow-Ups:
    • Re: Changing EOModel login on the fly?
      • From: Greg Hulands <email@hidden>
References: 
 >Changing EOModel login on the fly? (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: How can I stream blobs to/from entities?
  • Next by Date: Re: EditingContext question
  • Previous by thread: Changing EOModel login on the fly?
  • Next by thread: Re: Changing EOModel login on the fly?
  • Index(es):
    • Date
    • Thread