1Ravada::Auth::LDAP(3) User Contributed Perl DocumentationRavada::Auth::LDAP(3)
2
3
4
6 Ravada::Auth::LDAP - LDAP library for Ravada
7
8 BUILD
9 Internal OO build
10
11 add_user
12 Adds a new user in the LDAP directory
13
14 Ravada::Auth::LDAP::add_user($name, $password, $is_admin);
15
16 add_user_posix
17 Adds a new user in the LDAP directory
18
19 Ravada::Auth::LDAP::add_user_posix($name, $password);
20
21 remove_user
22 Removes the user
23
24 Ravada::Auth::LDAP::remove_user($name);
25
26 search_user
27 Search user by uid
28
29 my $entry = Ravada::Auth::LDAP::search_user($uid);
30
31 add_group
32 Add a group to the LDAP
33
34 remove_group
35 Removes the group from the LDAP directory. Use with caution
36
37 Ravada::Auth::LDAP::remove_group($name, $base);
38
39 search_group
40 Search group by name
41
42 search_group_members
43 add_to_group
44 Adds user to group
45
46 add_to_group($dn, $group_name);
47
48 remove_from_group
49 Removes user from group
50
51 add_to_group($dn, $group_name);
52
53 login
54 $user->login($name, $password);
55
56 group_members
57 Returns a list of the group members
58
59 ldap_entry
60 Returns the ldap entry as a Net::LDAP::Entry of the user if it has LDAP
61 external authentication
62
63 is_admin
64 Returns wether an user is admin
65
66 is_member
67 Returns if an user is member of a group
68
69 if (is_member($group, $cn)) {
70 }
71
72 is_external
73 Returns true if the user authentication is external to SQL, so true for
74 LDAP users always
75
76 init
77 LDAP init, don't call, does nothing
78
79
80
81perl v5.36.0 2022-12-28 Ravada::Auth::LDAP(3)