{"id":4,"date":"2008-08-10T06:30:34","date_gmt":"2008-08-10T06:30:34","guid":{"rendered":"http:\/\/192.168.50.22\/index.php\/2008\/08\/10\/gim-contacts-list-via-ldif\/"},"modified":"2026-03-17T21:25:38","modified_gmt":"2026-03-18T01:25:38","slug":"gim-contacts-list-via-ldif","status":"publish","type":"post","link":"https:\/\/smegnl.medina.oh.us\/?p=4","title":{"rendered":"GIM Contacts List via LDIF"},"content":{"rendered":"<p style=\"text-align: center;\"><span style=\"text-decoration: underline;\"><span style=\"font-size: large;\"><strong>GIM Contacts  List via LDIF<\/strong><\/span><\/span><\/p>\n<p><strong>Senario #1: Copying UserA list to everyone.<\/strong><\/p>\n<div>You must Export \/ Import contact attributes via ConsoleOne NDS  Import \/ Export (ICE)<br \/>\nFirst set up ONE user with all the contacts you  want the other users to have by adding or deleting contacts from the  GWIM client.<\/div>\n<div>We will then export an LDIF file for the users so that we can copy  the contacts from it when we create our Import file.<\/div>\n<div>1) Run ConsoleOne from the server  sys:\\PUBLIC\\mgmt\\ConsoleOne\\1.2\\bin to have a Wizard option on the tool  bar.<br \/>\n<em>NOTE: the Wizard seems to be missing form later versions of  ConsoleOne, V 1.3.7 +<\/em><\/div>\n<div>2) Highlight an NDS Organization and then select the Wizard |  Import \/ Export option from the top tool bar in ConsoleOne<\/div>\n<div>3) Select to Export LDIF file and choose Next<\/div>\n<div>4) Fill in the Ldap server IP and port 389 or 636<br \/>\n<em> NOTE: I  had some trouble getting it to connect on the non secured port 389. Gave  me a confidentialy error. I used 636<\/em><\/div>\n<div>5) Click the authenticated login arial button and Fill in the  cn=admin,o=XX<\/div>\n<div>6) On the next page fill in the container where userA resides IE:  O=msgusers and choose the arial button for &#8220;one level&#8221;<\/div>\n<div>7) Click the tab for filter and add the word user to replace the  astric IE: objectclass=<strong>U<\/strong>ser<\/div>\n<div>8) Leave the attribute tab at default IE: &#8220;All user-level  attributes&#8221; and click to the next page<\/div>\n<div>9) Enter C:\\export.txt to create the exported file we will use to  copy our needed contacts from<\/p>\n<div>10) Open the c:\\export.txt and find userA IE: dn:  cn=msguserA,o=msgusers<\/div>\n<div>11) Note userA attributes regarding the contacts he has IE:   nnmContactList: 1;0;0;2;;CN=mess1,O=messenger ;mess1;<\/div>\n<div>These are the attributes we will need to copy to our new Import.txt  file we will use for importing the contact list to the other users.<\/div>\n<p>12) create a new text file c:\\import.txt and add the following entries  by manually typing them in:<\/p>\n<div>dn: cn=msguserB,o=msgusers<\/div>\n<div>changetype: modify<br \/>\nadd: nnmContactList<br \/>\n13) Now copy from the  export file all the Contacts under userA<br \/>\nnnmContactList:  1;0;0;2;;CN=mess1,O=messenger ;mess1;<br \/>\nnnmContactList:  2;0;1;2;;CN=mess2,O=messenger ;mess2;<br \/>\n<em>Stop after the last  nmContactList. There will me more messenger stuff, but it is not part of  the contact list.<\/em><br \/>\n14)The file will appear something like this:<br \/>\ndn:  cn=msguserb,o=msgusers<br \/>\nchangetype: modify<br \/>\nadd: nnmContactList<br \/>\nnnmContactList: 1;0;0;2;;CN=mess1,O=messenger ;mess1;<br \/>\nnnmContactList: 2;0;1;2;;CN=mess2,O=messenger ;mess2;<\/div>\n<p>15) Save the import.txt<\/p>\n<div>16) use the NDS Import \/ Export utility to Import the attributes to  userB changing setting as needed regarding Import LDIF file and the  other users base DN where userB resides.<\/div>\n<div>The end result userB will now have all the contacts that you copied  from userA entries in the export file <strong>as well as userB orginals<\/strong>.<br \/>\n17) change the cn= for user B to user C and repeat. You can also  make one huge import txt with all the users in it with seperate copies  of the contact list.<br \/>\n<em>How to mass delete contats using LDIF is  below.<\/p>\n<p><\/em><em><\/em><strong>Senario #2: Resettting everyone to a default list.<br \/>\n<\/strong>1)  Create a text file that contains the following<br \/>\ndn:  cn=UserA,o=container<br \/>\nchangetype: modify<br \/>\ndelete: nnmContactList<\/p>\n<p>dn:  cn=UserB,o=container<br \/>\nchangetype: modify<br \/>\ndelete: nnmContactList<\/p>\n<p>ETC&#8230;<\/p>\n<div>1) Run ConsoleOne from the server  sys:\\PUBLIC\\mgmt\\ConsoleOne\\1.2\\bin to have a Wizard option on the tool  bar.<br \/>\n<em>NOTE: the Wizard seems to be missing form later versions of  ConsoleOne, V 1.3.7 +<\/em><\/div>\n<div>2) Highlight an NDS Organization and then select the Wizard |  Import \/ Export option from the top tool bar in ConsoleOne<br \/>\n3) use the  NDS Import \/ Export utility to Import the above text file.<br \/>\n4) Now  the next time the user logs in, they will receive the default Contact  list.<\/p>\n<p><em>NOTE: you must make sure everyone is a member of the  policy that contains the default contact list. It is possible for users  to have the ablity to chat (via the&nbsp; GWM scope) with out being a member  of any policy<\/em><br \/>\n<em>Failure to do so will result in users with a  blank contact list with a link to add a contact.<\/em><\/p>\n<p><strong>Senario  #3: Removing an ex employee from everyones list.<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><strong>Cont&#8230;<br \/>\n<\/strong><\/p>\n<\/div>\n<p><strong><br \/>\n<\/strong><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GIM Contacts List via LDIF Senario #1: Copying UserA list to everyone. You must Export \/ Import contact attributes via ConsoleOne NDS Import \/ Export (ICE) First set up ONE user with all the contacts you want the other users to have by adding or deleting contacts from the GWIM client. We will then export [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-4","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-figured-it-out"],"_links":{"self":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4"}],"version-history":[{"count":0,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/posts\/4\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=\/wp\/v2\/media\/3014"}],"wp:attachment":[{"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smegnl.medina.oh.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}