Skip to content

Instantly share code, notes, and snippets.

@Casm82
Created October 3, 2019 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Casm82/ab39868e63099178d348de096ff64dad to your computer and use it in GitHub Desktop.
Save Casm82/ab39868e63099178d348de096ff64dad to your computer and use it in GitHub Desktop.
node_ad_1.2.9_search_utf8_ou
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Using username/password (nodejs@domain.org/********) to bind to ActiveDirectory (ldap://192.168.1.1).","time":"2019-10-03T10:27:52.852Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Referrals are disabled","time":"2019-10-03T10:27:52.855Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Default user attributes: [\"dn\",\"distinguishedName\",\"userPrincipalName\",\"sAMAccountName\",\"mail\",\"lockoutTime\",\"whenCreated\",\"pwdLastSet\",\"userAccountControl\",\"employeeID\",\"sn\",\"givenName\",\"initials\",\"cn\",\"displayName\",\"comment\",\"description\"]","time":"2019-10-03T10:27:52.855Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Default group attributes: [\"dn\",\"cn\",\"description\",\"distinguishedName\",\"objectCategory\"]","time":"2019-10-03T10:27:52.855Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"getGroupMembershipForUser({},user01)","time":"2019-10-03T10:27:52.856Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"getDistinguishedName({},user01)","time":"2019-10-03T10:27:52.857Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"getDistinguishedNames({},\"(&(objectCategory=User)(|(sAMAccountName=user01)(userPrincipalName=user01)))\")","time":"2019-10-03T10:27:52.857Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Adding PagedResultControl to search (DC=domain,DC=org) with filter \"(&(objectCategory=User)(|(sAMAccountName=user01)(userPrincipalName=user01)))\" for undefined","time":"2019-10-03T10:27:52.861Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Querying active directory (DC=domain,DC=org) with filter \"(&(objectCategory=User)(|(sAMAccountName=user01)(userPrincipalName=user01)))\" for []","time":"2019-10-03T10:27:52.862Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"onSearchEntry(entry)","time":"2019-10-03T10:27:52.884Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"parsing result for range attributes: {\"dn\":\"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\",\"objectClass\":[\"top\",\"person\",\"organizationalPerson\",\"user\"],\"cn\":\"user01\",\"sn\":\"SurName\",\"givenName\":\"FirstName\",\"distinguishedName\":\"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\",\"instanceType\":\"4\",\"whenCreated\":\"20191003092905.0Z\",\"whenChanged\":\"20191003102750.0Z\",\"displayName\":\"user01\",\"uSNCreated\":\"116332\",\"memberOf\":[\"CN=пользователи,OU=Departments,DC=domain,DC=org\",\"CN=Support,CN=Users,DC=domain,DC=org\"],\"uSNChanged\":\"116371\",\"name\":\"user01\",\"objectGUID\":\"P�\\u0003G^A\\u0018B�\\u0019�j\\f��\\u0002\",\"userAccountControl\":\"512\",\"badPwdCount\":\"0\",\"codePage\":\"0\",\"countryCode\":\"0\",\"badPasswordTime\":\"0\",\"lastLogoff\":\"0\",\"lastLogon\":\"0\",\"pwdLastSet\":\"0\",\"primaryGroupID\":\"513\",\"objectSid\":\"\\u0001\\u0005\\u0000\\u0000\\u0000\\u0000\\u0000\\u0005\\u0015\\u0000\\u0000\\u0000�s�<&‘��u˄\\u0004\\u0000\\u0000\",\"accountExpires\":\"9223372036854775807\",\"logonCount\":\"0\",\"sAMAccountName\":\"user01\",\"sAMAccountType\":\"805306368\",\"userPrincipalName\":\"user01@domain.org\",\"objectCategory\":\"CN=Person,CN=Schema,CN=Configuration,DC=domain,DC=org\",\"dSCorePropagationData\":[\"20191003102750.0Z\",\"20191003101109.0Z\",\"20191003101005.0Z\",\"20191003095948.0Z\",\"16010101000000.0Z\"]}","time":"2019-10-03T10:27:52.885Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Active directory search (DC=domain,DC=org) for \"(&(objectCategory=User)(|(sAMAccountName=user01)(userPrincipalName=user01)))\" returned NaN entries.","time":"2019-10-03T10:27:52.890Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"1 distinguishedName(s) found for LDAP query: \"(&(objectCategory=User)(|(sAMAccountName=user01)(userPrincipalName=user01)))\". Results: [{\"dn\":\"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\",\"objectClass\":[\"top\",\"person\",\"organizationalPerson\",\"user\"],\"cn\":\"user01\",\"sn\":\"SurName\",\"givenName\":\"FirstName\",\"distinguishedName\":\"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\",\"instanceType\":\"4\",\"whenCreated\":\"20191003092905.0Z\",\"whenChanged\":\"20191003102750.0Z\",\"displayName\":\"user01\",\"uSNCreated\":\"116332\",\"memberOf\":[\"CN=пользователи,OU=Departments,DC=domain,DC=org\",\"CN=Support,CN=Users,DC=domain,DC=org\"],\"uSNChanged\":\"116371\",\"name\":\"user01\",\"objectGUID\":\"S-80-3605058885698-1794513334-44737036\",\"userAccountControl\":\"512\",\"badPwdCount\":\"0\",\"codePage\":\"0\",\"countryCode\":\"0\",\"badPasswordTime\":\"0\",\"lastLogoff\":\"0\",\"lastLogon\":\"0\",\"pwdLastSet\":\"0\",\"primaryGroupID\":\"513\",\"objectSid\":\"S-1-5-21-1020294122-3113337382-2227926403-1151\",\"accountExpires\":\"9223372036854775807\",\"logonCount\":\"0\",\"sAMAccountName\":\"user01\",\"sAMAccountType\":\"805306368\",\"userPrincipalName\":\"user01@domain.org\",\"objectCategory\":\"CN=Person,CN=Schema,CN=Configuration,DC=domain,DC=org\",\"dSCorePropagationData\":[\"20191003102750.0Z\",\"20191003101109.0Z\",\"20191003101005.0Z\",\"20191003095948.0Z\",\"16010101000000.0Z\"]}]","time":"2019-10-03T10:27:52.890Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"1 distinguishedName(s) found for user: \"user01\". Returning first dn: \"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\"","time":"2019-10-03T10:27:52.890Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"getGroupMembershipForDN({},CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org)","time":"2019-10-03T10:27:52.891Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Adding PagedResultControl to search (DC=domain,DC=org) with filter \"(member=CN=user01,OU=OU-UTF8-\\\\410\\\\411\\\\412\\\\413,DC=domain,DC=org)\" for undefined","time":"2019-10-03T10:27:52.892Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Querying active directory (DC=domain,DC=org) with filter \"(member=CN=user01,OU=OU-UTF8-\\\\410\\\\411\\\\412\\\\413,DC=domain,DC=org)\" for [\"dn\",\"cn\",\"description\",\"distinguishedName\",\"objectCategory\",\"groupType\"]","time":"2019-10-03T10:27:52.893Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Active directory search (DC=domain,DC=org) for \"(member=CN=user01,OU=OU-UTF8-\\5c410\\5c411\\5c412\\5c413,DC=domain,DC=org)\" returned NaN entries.","time":"2019-10-03T10:27:52.899Z","v":0}
{"name":"ADDebug","hostname":"client02","pid":12858,"level":10,"msg":"Group \"CN=user01,OU=OU-UTF8-АБВГ,DC=domain,DC=org\" has 0 group(s). Groups: []","time":"2019-10-03T10:27:52.899Z","v":0}
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment