<feed xmlns='http://www.w3.org/2005/Atom'>
<title>phosphor-user-manager/test, branch master</title>
<subtitle>OpenBMC Phosphor user management daemon sources</subtitle>
<id>https://git.raptorcs.com/git/phosphor-user-manager/atom?h=master</id>
<link rel='self' href='https://git.raptorcs.com/git/phosphor-user-manager/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/'/>
<updated>2019-03-19T08:34:23+00:00</updated>
<entry>
<title>Removing unused SetPassword D-Bus API method</title>
<updated>2019-03-19T08:34:23+00:00</updated>
<author>
<name>Sumanth Bhat</name>
<email>sumanth.bhat@intel.com</email>
</author>
<published>2019-03-06T08:49:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=736648e25eb250d1e200cea961fe75bf791f1355'/>
<id>urn:sha1:736648e25eb250d1e200cea961fe75bf791f1355</id>
<content type='text'>
Password update is done through pam_chauthtok() API,
and don't use SetPassword. Removing the unused code.

Tested-by:
N/A.

Change-Id: I42a5b7c73bc2cb2404801df1c1cd057a94a1a924
Signed-off-by: Sumanth Bhat &lt;sumanth.bhat@intel.com&gt;
Signed-off-by: Richard Marian Thomaiyar &lt;richard.marian.thomaiyar@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>LDAP: Add the persistency for the "Enabled" property</title>
<updated>2019-03-11T06:40:22+00:00</updated>
<author>
<name>Ratan Gupta</name>
<email>ratagupt@linux.vnet.ibm.com</email>
</author>
<published>2019-02-18T15:04:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=95a2931473dfa61a30e7a65606dab15ab24cd5b4'/>
<id>urn:sha1:95a2931473dfa61a30e7a65606dab15ab24cd5b4</id>
<content type='text'>
This property will control that whether the LDAP service would
be started or not.

We are persisting this property using cereal, other properties
is being persisted through nslcd.conf, nslcd doesn't give us
a way to put this property under nslcd.conf.

Tested By:
      Test the persistency of enabled property.
        Verified that it was getting persisted across restart/reboot.

Change-Id: Id64b23b71865bac15d3be2d79abad615aa576bea
Signed-off-by: Ratan Gupta &lt;ratagupt@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>squash the following commits</title>
<updated>2019-03-11T06:30:02+00:00</updated>
<author>
<name>Ratan Gupta</name>
<email>ratagupt@linux.vnet.ibm.com</email>
</author>
<published>2019-02-11T10:41:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=aeaf9413a965d225d11ee1cd2c8ee9aa1f8dc862'/>
<id>urn:sha1:aeaf9413a965d225d11ee1cd2c8ee9aa1f8dc862</id>
<content type='text'>
LDAP: Adding support for extra properties
Implement GetUserInfo function in phosphor-user-manager

Squashing the commits due to phosphor-dbus-interfaces
dependency as the interface gets merged and it requires implementation
so it is a deadlock for both the commits.

Implement GetUserInfo function in phosphor-user-manager

There was need to have api which return privilege for ldap user.
it was discussed in this commit
https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-dbus-interfaces/+/12027/
and decided to have generic api.

-Checks if user is local user, then returns map of properties of
 local user like user privilege,list of user groups,user enabled
 state and user locked state.

-If its not local user, then it checks if its a ldap user,
 then get the privilege mapping for the LDAP group and returns.

TestedBy: 1) getUserInfo with local user
             verify user details.
          2) getUserInfo with ldap user having privilege mapper
             entry, verify user details.
          3) getUserInfo with no existing user.
              check for exception UserNameDoesNotExist.

Change-Id: I44af41953db60ff96b39498d72839c2ab64bc8bd
Signed-off-by: raviteja-b &lt;raviteja28031990@gmail.com&gt;

LDAP: Adding support for extra properties

This commit also decouple the ldap service(nslcd) start
with each property update,Now there is a D-bus property
ldap service enabled which controls that whether the LDAP
service will be restarted after each property update,so now user
have an option to disable the ldap service and do multi-
property update and then enable the service again.

TestedBy: 1) Create the config with new added properties
               Verify that it was getting reflected on the D-bus object.
          2) After making the change restarted the ldap-conf service
               Verify that new properties(usernameattr,groupnameattr) are correctly updated.
          3) Authenticaton test
               Verify that LDAP authentication worked fine.
          4) Set the enabled property to true
               Verify that it starts the nslcd service
          5) Set the enabled property to false
               Verify that it stops the nslcd.service
          6) Set the enabled property to true and change any other config property
               Verify that it starts the nslcd.service
          7) Set the enabled property to false which stops the nslcd service
                 and change any other config property.
               Verify that it doesn't start the nslcd service.

Change-Id: Ie3ca04a2adbbb1fe113764199348c4f7ac67f648
Signed-off-by: Ratan Gupta &lt;ratagupt@linux.vnet.ibm.com&gt;
</content>
</entry>
<entry>
<title>Add unit tests for ldap mapper application</title>
<updated>2018-11-26T14:33:39+00:00</updated>
<author>
<name>Tom Joseph</name>
<email>tomjoseph@in.ibm.com</email>
</author>
<published>2018-11-19T04:25:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=f870b48ec87c6f41e1f25343d6cf2f09c43a5647'/>
<id>urn:sha1:f870b48ec87c6f41e1f25343d6cf2f09c43a5647</id>
<content type='text'>
Change-Id: I2d75a4f2e27f6e6640e8a16cc7834116b260f547
Signed-off-by: Tom Joseph &lt;tomjoseph@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>phosphor-ldap-conf: nslcd restart service getting called twice</title>
<updated>2018-11-20T02:37:57+00:00</updated>
<author>
<name>Nagaraju Goruganti</name>
<email>ngorugan@in.ibm.com</email>
</author>
<published>2018-11-09T09:34:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=bc4f180c2f15cdca8489168fd796e92aeeb8f52b'/>
<id>urn:sha1:bc4f180c2f15cdca8489168fd796e92aeeb8f52b</id>
<content type='text'>
In the createconfig path nslcd restart service is getting called twice
in a row, which not needed.

Change-Id: Ib60d43110815758360aa6f0de0478ad784cf5a5a
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>React to nsswitch config file changes</title>
<updated>2018-11-20T02:37:57+00:00</updated>
<author>
<name>Deepak Kodihalli</name>
<email>dkodihal@in.ibm.com</email>
</author>
<published>2018-10-28T11:53:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=5088e54473b49b40e5ceab2fae2999619f31b7d3'/>
<id>urn:sha1:5088e54473b49b40e5ceab2fae2999619f31b7d3</id>
<content type='text'>
There's just one nsswitch config file now (instead of a default, an
_linux and an _ldap). Make fixes in code relevant to this.

Change-Id: I92362aac7a1f5e034cea06e9299f7e574dc2fab9
Signed-off-by: Deepak Kodihalli &lt;dkodihal@in.ibm.com&gt;
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>phosphor-ldap-conf: update nslcd.conf file with tls_cacertfile info</title>
<updated>2018-11-20T02:37:57+00:00</updated>
<author>
<name>Nagaraju Goruganti</name>
<email>ngorugan@in.ibm.com</email>
</author>
<published>2018-11-08T09:13:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=3b4d06a1812566d4095524f2242e272e0b9f449f'/>
<id>urn:sha1:3b4d06a1812566d4095524f2242e272e0b9f449f</id>
<content type='text'>
tls_cacertfile specifies the path to the X.509 certificate for
peer authentication.

Also updated the file with "tls_reqcert hard", to force the
behavior: if no certificate is provided, or a bad certificate
is provided, the session is immediately terminated.

Tested: tested using below given commands
1.curl -c cjar -b cjar -k -H "Content-Type: application/json" -X  POST -d \
  '{"data":[true,"ldaps://&lt;host_ip&gt;/","cn=&lt;user-id&gt;,dc=Corp,dc=ibm,dc=com",\
  "cn=Users,dc=Corp,dc=ibm,dc=com",  "&lt;password&gt;",\
  "xyz.openbmc_project.User.Ldap.Create.SearchScope.sub",\
  "xyz.openbmc_project.User.Ldap.Create.Type.ActiveDirectory"] \
}' https://$BMC_IP//xyz/openbmc_project/user/ldap/action/CreateConfig

2.curl -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data":true}'\
  https://$BMC_IP/xyz/openbmc_project/user/ldap/config/attr/SecureLDAP

3.curl -b cjar -k -H "Content-Type: application/json" -X PUT -d \
  '{"data":"ldap://&lt;host_ip&gt;/"}' \
  https://$BMC_IP/xyz/openbmc_project/ldap/config/attr/LDAPServerURI

when "/etc/ssl/certs/Root-CA.pem" doesn't exist on target, we get below
given exception(if we try to set SecureLDAP is true):
"DBusException: xyz.openbmc_project.Common.Error.NoCACertificate: \
Server's CA certificate has not been provided."

Change-Id: I56ffe8b08bb71307b4f2bfe9cf935b6113e4579a
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
Signed-off-by: Deepak Kodihalli &lt;dkodihal@in.ibm.com&gt;
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>phosphor-ldap-conf: add unit tests</title>
<updated>2018-11-20T02:37:57+00:00</updated>
<author>
<name>Nagaraju Goruganti</name>
<email>ngorugan@in.ibm.com</email>
</author>
<published>2018-11-08T09:07:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=d514e5dc3de8dcd305328783ae11ee8e56b27d9a'/>
<id>urn:sha1:d514e5dc3de8dcd305328783ae11ee8e56b27d9a</id>
<content type='text'>
Added uinit tests to create and to restore config file.

Change-Id: Idf5231d46542cda1ff84241aa67aadd91a4788d6
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
Signed-off-by: Deepak Kodihalli &lt;dkodihal@in.ibm.com&gt;
Signed-off-by: Nagaraju Goruganti &lt;ngorugan@in.ibm.com&gt;
</content>
</entry>
<entry>
<title>Basic support for User manager service</title>
<updated>2018-09-03T08:46:20+00:00</updated>
<author>
<name>Richard Marian Thomaiyar</name>
<email>richard.marian.thomaiyar@linux.intel.com</email>
</author>
<published>2018-05-24T05:19:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=9f630d9eb0ce1c103532a4304ea080066199094e'/>
<id>urn:sha1:9f630d9eb0ce1c103532a4304ea080066199094e</id>
<content type='text'>
Basic support for User Manager service methods
are implemented.

Change-Id: Id42432ec6dd421b99971268add931dcd70876f7c
Signed-off-by: Richard Marian Thomaiyar &lt;richard.marian.thomaiyar@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>Fix to use mkstemp for temp shadow file creation</title>
<updated>2018-01-19T06:17:03+00:00</updated>
<author>
<name>Richard Marian Thomaiyar</name>
<email>richard.marian.thomaiyar@linux.intel.com</email>
</author>
<published>2017-12-16T09:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/phosphor-user-manager/commit/?id=1f5a002f4b596522cf46eaad3cfd072a44b5848d'/>
<id>urn:sha1:1f5a002f4b596522cf46eaad3cfd072a44b5848d</id>
<content type='text'>
Do not rely on randomString() for tempShadowFile, as it uses '/' in random
set, and cause file creation error. Also, it's safe to use mkstemp to create
temp shadow file with random name suffixing shadow file name.

Change-Id: I0b80cc6d7c002e732e22f660e50b0701acac15fe
Signed-off-by: Richard Marian Thomaiyar &lt;richard.marian.thomaiyar@linux.intel.com&gt;
</content>
</entry>
</feed>
