{"id":2318,"date":"2013-10-15T10:50:02","date_gmt":"2013-10-15T16:50:02","guid":{"rendered":"http:\/\/allidm.com\/blog\/?p=2318"},"modified":"2013-10-14T22:55:08","modified_gmt":"2013-10-15T04:55:08","slug":"modify-ldap-attributes-after-a-password-change-in-open-source-password-self-service-for-ldap-directories-pwm","status":"publish","type":"post","link":"https:\/\/allidm.com\/blog\/modify-ldap-attributes-after-a-password-change-in-open-source-password-self-service-for-ldap-directories-pwm\/","title":{"rendered":"Modify LDAP attributes after a Password Change  in Open Source Password Self Service for LDAP directories (PWM)"},"content":{"rendered":"<p>Sometimes your requirements for a Change Password might include adding a ticket number or any other tracking information in other LDAP field after a Password change by the user. The Open Source Password Self Service \u2013 PWM &#8211; provides you this functionality thru the Section called Post Password Change Write Attributes.<\/p>\n<p>This section allows you to introduce attributes to be written to ldap when a user is created. These attributes will be written to the user object just after writing the password.<\/p>\n<p>To configure this feature you need:<\/p>\n<p>1. Go to the Configuration Editor and Select Modules &gt; Change Password<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png\"><img data-recalc-dims=\"1\" decoding=\"async\" data-attachment-id=\"2319\" data-permalink=\"https:\/\/allidm.com\/blog\/modify-ldap-attributes-after-a-password-change-in-open-source-password-self-service-for-ldap-directories-pwm\/open-source-password-self-service-pwm-1-3\/#main\" data-orig-file=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png?fit=758%2C731&amp;ssl=1\" data-orig-size=\"758,731\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Open-Source-Password-Self-Service-PWM-1\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png?fit=680%2C656&amp;ssl=1\" loading=\"lazy\" class=\"alignnone size-large wp-image-2319\" alt=\"Open-Source-Password-Self-Service-PWM-1\" src=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png?resize=673%2C649\" width=\"673\" height=\"649\" srcset=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png?w=758&amp;ssl=1 758w, https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-11.png?resize=300%2C289&amp;ssl=1 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/a><br \/>\n2. Scroll down in the Change Password configuration page and at the bottom you will see the section Called Post Password Change Write Attributes.<br \/>\n3. In this section introduce one or more attributes that you need to modify right after the password is changed for the user.<\/p>\n<p>The format is name=value pair, multiple attributes can be specified by separating with a comma.<\/p>\n<p>You can also use the PwmMacros here.<\/p>\n<p>4. In our example we will use the Description attribute and put a string there<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-21.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" alt=\"Open-Source-Password-Self-Service-PWM-2\" src=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-21.png?resize=673%2C703\" width=\"673\" height=\"703\" \/><\/a><br \/>\n5. Save your changes and test. After the user password is changed the Description will contain the information we specified in the Post Password Change Write Attributes.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-31.png\"><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" alt=\"Open-Source-Password-Self-Service-PWM-3\" src=\"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2013\/10\/Open-Source-Password-Self-Service-PWM-31.png?resize=643%2C452\" width=\"643\" height=\"452\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes your requirements for a Change Password might include adding a ticket number or any other tracking information in other LDAP field after a Password change by the user. The Open Source Password Self Service \u2013 PWM &#8211; provides you this functionality thru the Section called Post Password Change Write Attributes. This section allows you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1079,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[264,662],"tags":[714,498,1364,713,1373],"class_list":["post-2318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","category-pwm","tag-change-password-features","tag-iam-opensource","tag-open-source","tag-open-source-password-self-service-for-ldap-directories","tag-pwm"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/allidm.com\/blog\/wp-content\/uploads\/2012\/06\/Identity-Management-Technical-Allidm.jpg?fit=320%2C240&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p25vfy-Bo","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/2318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/comments?post=2318"}],"version-history":[{"count":2,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/2318\/revisions"}],"predecessor-version":[{"id":2323,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/posts\/2318\/revisions\/2323"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/media\/1079"}],"wp:attachment":[{"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/media?parent=2318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/categories?post=2318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/allidm.com\/blog\/wp-json\/wp\/v2\/tags?post=2318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}