NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<%@ Language=VBScript CODEPAGE=65001 %>
<% option explicit
%>

<!-- #include file="JSON_2.0.4.asp" -->
<!-- #include virtual="/sdccommon/inc/sdcconfig.inc" -->
<!-- #include virtual="/sdccommon/inc/sdclib2.inc" -->
<!-- #include virtual="/sdccommon/inc/db/dbsname.inc" -->
<!-- #include virtual="/sdccommon/inc/db/dbcommon.inc" -->




<%
On Error Resume Next
Err.Clear

dim userName, firstName, lastname, email, phone, oConnection,oCommand,rs, location, upi, employeeNumber

dim domain : domain = sdcRegistryGet_str("SoftwareSupportSoftChat", "Domain_name", "")

'Update this in UAT and Production
Dim ldapName : ldapName = "LDAP://" & domain

firstName = ""
lastname = ""
username = Request.QueryString("username")
if username <> "" then
' Create the connection and command object.
Set oConnection = CreateObject("ADODB.Connection")
Set oCommand = CreateObject("ADODB.Command")

' Open the connection.
oConnection.Provider = "ADsDSOObject" ' This is the ADSI OLE-DB provider name
oConnection.Open "Active Directory Provider"

' Create a command object for this connection.
Set oCommand.ActiveConnection = oConnection

oCommand.CommandText = "select givenname, sn, telephoneNumber, mail, Co, employeeNumber" & _
" from '" & ldapName & "' " & _
"WHERE objectCategory='Person' " & _
"AND objectClass='user' " & _
"AND sAMAccountName = '" & userName & "'"

Set rs = oCommand.Execute
If Err.Number <> 0 Then
firstName = ""
lastname = ""
email = ""
phone = ""
location = ""
upi = ""
employeeNumber = ""
else
While Not rs.EOF
firstName = rs.Fields("givenname")
lastname = rs.Fields("sn")
email = rs.Fields("mail")
phone = rs.Fields("telephoneNumber")
location = rs.Fields("Co")
employeeNumber = rsFields("employeeNumber")
upi = userName

rs.MoveNext
Wend
end if

rs.close
oConnection.close
oCommand.close
end if
Dim objRetJSON
Set objRetJSON = jsObject()

objRetJSON("upi") = upi
objRetJSON("firstname") = firstName
objRetJSON("lastname") = lastname
objRetJSON("email") = email
objRetJSON("phone") = phone
objRetJSON("location") = location
objRetJSON("employeeNumber") = employeeNumber


response.write objRetJSON.jsString

Set oConnection = nothing
Set oCommand = nothing
Set rs = nothing

%>

     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.