blob: fae5b8b571987a933a0d21dfb8790441e7d7f109 [file] [log] [blame]
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -05001description: >
2 Implement to create LDAP name service daemon configuration file.
3
4methods:
5 - name: CreateConfig
6 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06007 This method always creates a new config file as well as a D-Bus object
8 to represent the config, it will destroy an existing one, if found. In
9 other words, this is not an update API. Individual properties can be
10 updated as per the
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -050011 xyz/openbmc_project/User/Ldap/Config.interface.yaml.
12 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050013 - name: LDAPServerURI
14 type: string
15 description: >
16 Specifies the LDAP URI of the server to connect to.
17 - name: LDAPBindDN
18 type: string
19 description: >
20 Specifies the distinguished name with which to bind to the
21 directory server for lookups.
22 - name: LDAPBaseDN
23 type: string
24 description: >
25 Specifies the base distinguished name to use as search base.
26 - name: LDAPBINDDNpassword
27 type: string
28 description: >
29 Specifies the clear text credentials with which to bind. This
30 option is only applicable when used with LDAPBindDN.
31 - name: LDAPSearchScope
32 type: enum[self.SearchScope]
33 description: >
34 Specifies the search scope:subtree, one level or base object.
35 - name: LDAPType
36 type: enum[self.Type]
37 description: >
38 Specifies the the configured server is ActiveDirectory(AD) or
39 OpenLdap. It's just an indication for the LDAP stack running on
Patrick Williamsa1347412022-12-06 10:56:22 -060040 the BMC, in case the app is implemented in such a way that it
41 has to react differently for AD vs openldap.
Patrick Williams8da396c2022-03-14 14:21:02 -050042 - name: GroupNameAttribute
43 type: string
44 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060045 Specifies the attribute name that contains the name of the Group
46 in the LDAP server.
Patrick Williams8da396c2022-03-14 14:21:02 -050047 - name: UsernameAttribute
48 type: string
49 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060050 Specifies the attribute name that contains the username in the
51 LDAP server.
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -050052 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050053 - name: path
54 type: string
55 description: >
56 The object path of the D-Bus object representing the config.
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -050057
58 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050059 - xyz.openbmc_project.Common.Error.InternalFailure
60 - xyz.openbmc_project.Common.Error.InvalidArgument
61 - xyz.openbmc_project.Common.Error.NoCACertificate
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -050062
63enumerations:
64 - name: SearchScope
65 description: >
66 Possible base scopes.
67 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050068 - name: sub
69 - name: one
70 - name: base
Nagaraju Gorugantic6cfd2c2018-08-10 00:57:41 -050071
72 - name: Type
73 description: >
74 Possible LDAP Types.
75 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050076 - name: ActiveDirectory
77 - name: OpenLdap