File: auth_dummy_module.py

package info (click to toggle)
pyftpd 0.8.4.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 528 kB
  • ctags: 470
  • sloc: python: 2,802; sh: 80; makefile: 43
file content (8 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8

# dummy autentification, always accept
def got_user(username, session, sessions):
    return 230, "Welcome, user!", username, "", 1, 1
        
def got_pass(username, password, session, sessions):
    return 202, "You think I care about passwords?", 1, 1