File: LDAPUser.py

package info (click to toggle)
zope-ldapuserfolder 2.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 508 kB
  • ctags: 313
  • sloc: python: 3,042; sh: 50; makefile: 38
file content (71 lines) | stat: -rw-r--r-- 1,747 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#####################################################################
#
# LDAPUser Interface: The User object interface for the LDAPUserFolder
#
# This software is governed by a license. See
# LICENSE.txt for the terms of this license.
#
#####################################################################

class LDAPUser:
    """
    This interface is supported by user objects which
    are returned by user validation through the LDAPUserFolder 
    product and used for access control.

    Some implementations are inherited from the base class 
    AccessControl.User.BasicUser, so if you don't find a method 
    in this listing in the LDAPUser module, look there.
    """

    def getUserName():
        """

        Return the name of a user

        Permission - Always available
        
        """

    def getRoles(object):
        """

        Returns a list of the roles the user has on the given object
        (in the current context?)

        Permission - Always available

        """

    def getProperty(name, default=''):
        """

        Retrieve the value of a property of name "name". If this 
        property does not exist, the default value is returned.

        Properties can be any public attributes that are part of the 
        user record in LDAP. Refer to them by their LDAP attribute
        name or the name they have been mapped to in the LDAP User 
        Folder

        Permission - View

        """

    def getUserDN():
        """

        Retrieve the user object's Distinguished Name attribute.

        Permission - View

        """

    def notexpired():
        """

        Returns 1 if the user record has not expired, 0 otherwise.

        Permission - Always available

        """