Debian Codegraph @

lib/modules/altSecurityIdentities.inc

raw
1 <?php
2
3 /*
4
5 This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
6 Copyright (C) 2024 Roland Gruber
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 /**
24 * Manages SSH public keys on Windows/Samba 4.
25 *
26 * @package modules
27 * @author Roland Gruber
28 */
29
30 /** include parent class */
31 include_once(__DIR__ . "/ldapPublicKey.inc");
32
33 /**
34 * Manages SSH public keys on Windows/Samba 4.
35 *
36 * @package modules
37 */
38 class altSecurityIdentities extends ldapPublicKey {
39
40 /**
41 * {@inheritDoc}
42 */
43 protected function getAttributeName(): string {
44 return 'altsecurityidentities';
45 }
46
47 /**
48 * {@inheritDoc}
49 */
50 protected function hasObjectClass(): bool {
51 return false;
52 }
53
54 /**
55 * {@inheritDoc}
56 */
57 public function get_metaData(): array {
58 $ret = parent::get_metaData();
59 $ret["alias"] = _("SSH public key (AD)");
60 return $ret;
61 }
62
63 }