New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

cocoa and pop3


Post Reply New Thread Subscribe

 
Thread Tools
jmndos

 
Member Since: Sep 24, 2008
Posts: 3
jmndos is on a distinguished road

jmndos is offline
I'm trying to develop an app that uses apple's kiosk mode and am stuck during authentication.

I have the gui ready and a class grabbing the username and password and it prints the value to console when you press login.....

We authenticate people via their library email address.

What I need is a piece of code that will return true if an email address and password is valid and return false if it isnt. This will be checked explicitly, by

Since I am developing in Cocoa, I would like to know if there is some cocoa pop3 login code out there or any open source app (other than thunderbird or gnumail) where i can just borrow a few lines of code to achieve this.

Perhaps, even using telnet on port 110 and try to check authentication from there.....the server is the sun iplanet email messenger...

thanks
QUOTE Thanks
jmndos

 
Member Since: Sep 24, 2008
Posts: 3
jmndos is on a distinguished road

jmndos is offline
Hey, jmndos, I have a solution for you.

Telnet just uses regular tcp sockets.

Just write a function that makes a connection with you mail server on your pop3 port, probably 110.

The connection does not require a password.

When you log in, you start of by issuing user [username], that will either respond with an ok or an error message and then issue a pass [pass] and then you get an ok or an error. Checking for those responses should be enough to verify identity. This should be faster than most wrappers, because since your just checking for authentication, you can return false immediately after you fail the username....
QUOTE Thanks

Post Reply New Thread Subscribe


« Add Help book to cocoa app | How do I set environment variables in Leapord »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

All times are GMT -4. The time now is 04:06 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?