Nagaraju Goruganti | c6cfd2c | 2018-08-10 00:57:41 -0500 | [diff] [blame] | 1 | description: > |
| 2 | Implement to create LDAP name service daemon configuration file. |
| 3 | |
| 4 | methods: |
| 5 | - name: CreateConfig |
| 6 | description: > |
| 7 | This method always creates a new config file as well as a D-Bus |
| 8 | object to represent the config, it will destroy an existing one, |
| 9 | if found. In other words, this is not an update API. Individual |
| 10 | properties can be updated as per the |
| 11 | xyz/openbmc_project/User/Ldap/Config.interface.yaml. |
| 12 | parameters: |
| 13 | - name: SecureLDAP |
| 14 | type: boolean |
| 15 | description: > |
| 16 | Specifies whether to use SSL or not. |
| 17 | - name: LDAPServerURI |
| 18 | type: string |
| 19 | description: > |
| 20 | Specifies the LDAP URI of the server to connect to. |
| 21 | - name: LDAPBindDN |
| 22 | type: string |
| 23 | description: > |
| 24 | Specifies the distinguished name with which to bind to the |
| 25 | directory server for lookups. |
| 26 | - name: LDAPBaseDN |
| 27 | type: string |
| 28 | description: > |
| 29 | Specifies the base distinguished name to use as search base. |
| 30 | - name: LDAPBINDDNpassword |
| 31 | type: string |
| 32 | description: > |
| 33 | Specifies the clear text credentials with which to bind. This |
| 34 | option is only applicable when used with LDAPBindDN. |
| 35 | - name: LDAPSearchScope |
| 36 | type: enum[self.SearchScope] |
| 37 | description: > |
| 38 | Specifies the search scope:subtree, one level or base object. |
| 39 | - name: LDAPType |
| 40 | type: enum[self.Type] |
| 41 | description: > |
| 42 | Specifies the the configured server is ActiveDirectory(AD) or |
| 43 | OpenLdap. It's just an indication for the LDAP stack running on |
| 44 | the BMC, in case the app is implemented in such a way that it has |
| 45 | to react differently for AD vs openldap. |
| 46 | returns: |
| 47 | - name: path |
| 48 | type: string |
| 49 | description: > |
| 50 | The object path of the D-Bus object representing the config. |
| 51 | |
| 52 | errors: |
| 53 | - xyz.openbmc_project.Common.Error.InternalFailure |
| 54 | - xyz.openbmc_project.Common.Error.InvalidArgument |
| 55 | |
| 56 | enumerations: |
| 57 | - name: SearchScope |
| 58 | description: > |
| 59 | Possible base scopes. |
| 60 | values: |
| 61 | - name: sub |
| 62 | - name: one |
| 63 | - name: base |
| 64 | |
| 65 | - name: Type |
| 66 | description: > |
| 67 | Possible LDAP Types. |
| 68 | values: |
| 69 | - name: ActiveDirectory |
| 70 | - name: OpenLdap |
| 71 | |
| 72 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |