Incorrect password

M

MOUNIL

I am writing a perl script which connects to a server. When the client
attempts to log in to the server, it has to provide a password. I have
done that part. What i am not successfull at doing is that i want to
restrict the amount of attempts of incorrect passwords. for e.g. the
user can have only 3 attempts after which the connection is closed.
can anyone help me out?

---mounil
 
T

Tad McClellan

MOUNIL said:
I am writing a perl script which connects to a server. When the client
attempts to log in to the server, it has to provide a password. I have
done that part. What i am not successfull at doing is that i want to
restrict the amount of attempts of incorrect passwords. for e.g. the
user can have only 3 attempts after which the connection is closed.
can anyone help me out?


Put it in a loop.

Are you having trouble writing a loop?

If you show us what you have tried, we can help you fix it.
 
M

Mounilk

hi ted,
thanks....i figured it out just after i posted the message.
wrote a subroutine which is called each time an incorrect password is
entered ....thanks for your help though. The scripts are running fine.
cheers,
mounil.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top