I have the following line of code, but i don't think i am providing the right
syntax:
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER &
LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
Where
Public Const LDAP As String = "LDAP:"
I need to know how to format the remaining strings..
i.e
Public Const LDAP_DOMAIN_SERVER As String
Public Const LDAP_USERS As String =
Public Const LDAP_DOMAIN As String
Any ideas.. Thanks 8 1332
Dim oAllEntries As New
DirectoryServices.DirectoryEntry("LDAP://SERVERNAME/OU=Divisions,dc=MyCompanyName,dc=ca", "DomainName\MyUserID", "MyPassword")
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"BookerW" wrote: I have the following line of code, but i don't think i am providing the right syntax:
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER & LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
Where Public Const LDAP As String = "LDAP:" I need to know how to format the remaining strings.. i.e
Public Const LDAP_DOMAIN_SERVER As String Public Const LDAP_USERS As String = Public Const LDAP_DOMAIN As String
Any ideas.. Thanks
ok, one more specific question, my code is passing what is typed into the
username and password box as susername and sPassword
With that in mind, would this be an acceptable syntax
Dim oAllEntries As New
DirectoryEntry("Ldap://mgt-websrvr-01/OU=Staff,OU=People,DC=mgt,DC=gt,DC=buzz", "mgt\" & sUsername, sPassword)
Where I differ from your example is, i did not put the variables sUsername
and sPassword in quotes
I keep getting a server is not operational error, and i think it may be due
to my syntax..., maybe for testing purposes i'll just put in my id and
password like your example , just to make sure it is working
"Phillip Williams" wrote: Dim oAllEntries As New DirectoryServices.DirectoryEntry("LDAP://SERVERNAME/OU=Divisions,dc=MyCompanyName,dc=ca", "DomainName\MyUserID", "MyPassword") -- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"BookerW" wrote:
I have the following line of code, but i don't think i am providing the right syntax:
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER & LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
Where Public Const LDAP As String = "LDAP:" I need to know how to format the remaining strings.. i.e
Public Const LDAP_DOMAIN_SERVER As String Public Const LDAP_USERS As String = Public Const LDAP_DOMAIN As String
Any ideas.. Thanks
Also, server name does NOT have to be the domain controller, but the actual
name of the webserver where the code resides?
"Phillip Williams" wrote: Dim oAllEntries As New DirectoryServices.DirectoryEntry("LDAP://SERVERNAME/OU=Divisions,dc=MyCompanyName,dc=ca", "DomainName\MyUserID", "MyPassword") -- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"BookerW" wrote:
I have the following line of code, but i don't think i am providing the right syntax:
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER & LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
Where Public Const LDAP As String = "LDAP:" I need to know how to format the remaining strings.. i.e
Public Const LDAP_DOMAIN_SERVER As String Public Const LDAP_USERS As String = Public Const LDAP_DOMAIN As String
Any ideas.. Thanks
On Thu, 26 Jan 2006 10:17:02 -0800, BookerW wrote: Also, server name does NOT have to be the domain controller, but the actual name of the webserver where the code resides?
"Phillip Williams" wrote:
Dim oAllEntries As New DirectoryServices.DirectoryEntry("LDAP://SERVERNAME/OU=Divisions,dc=MyCompanyName,dc=ca", "DomainName\MyUserID", "MyPassword")
Actually, that should be "LDAP://domain.name/OU..." while you can specify a
server, specifying the domain name itself is more appropriate, since the
main domain controller might be down, and you might need to authenticate
against a secondary controller.
Thanks Erik...so defintely everything has to be in quotes ?
because i am wondering if my problem lies in the passing of the username and
password that is typed in to a textbox
"Erik Funkenbusch" wrote: On Thu, 26 Jan 2006 10:17:02 -0800, BookerW wrote:
Also, server name does NOT have to be the domain controller, but the actual name of the webserver where the code resides?
"Phillip Williams" wrote:
Dim oAllEntries As New DirectoryServices.DirectoryEntry("LDAP://SERVERNAME/OU=Divisions,dc=MyCompanyName,dc=ca", "DomainName\MyUserID", "MyPassword")
Actually, that should be "LDAP://domain.name/OU..." while you can specify a server, specifying the domain name itself is more appropriate, since the main domain controller might be down, and you might need to authenticate against a secondary controller.
On Thu, 26 Jan 2006 19:55:02 -0800, BookerW wrote: Thanks Erik...so defintely everything has to be in quotes ?
because i am wondering if my problem lies in the passing of the username and password that is typed in to a textbox
I'm not sure I understand. You only quote string literals.
Currently in another domain environment, this format below works:
Function Logon(ByVal sUserName As String, ByVal sPassword As String) As String
Dim sRetVal As String = ""
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER &
LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
where
Public Const LDAP As String = "LDAP:"
Public Const LDAP_DOMAIN_SERVER As String = "//test.ot.buzz/"
Public Const LDAP_USERS As String = "OU=Staff,OU=People,DC=test,DC=ot,DC=buzz"
Public Const LDAP_DOMAIN As String = "TEST.OT.BUZZ\"
In trying to translate this, it looks to me that the following line is being
built
LDAP://test.ot.buzz/ou=staff,ou=people,dc=test,dc=ot,dc=buzz,test.ot.b uzz\susername,spassword
and I am assuming that susername is coming in as jjohnson(example username)
and spassword is coming in as jjpassword
or is it coming in as "jjohnson" and the password as "jjpassword"
I am confused as to how the function is passing in the sUsername and
sPassword values.....
P.s, if you can't tell, i am new to this. I am taking some source code that
was already developed and trying to make it work in a new domain
"Erik Funkenbusch" wrote: On Thu, 26 Jan 2006 19:55:02 -0800, BookerW wrote:
Thanks Erik...so defintely everything has to be in quotes ?
because i am wondering if my problem lies in the passing of the username and password that is typed in to a textbox
I'm not sure I understand. You only quote string literals.
Final solution that seemed to work:
Ok, the quick rundown
Fixed the ldap references In the code
Replaced the username and passwords for accounts in our domain (Remember
this code came from a separate company)
Installed Oracle Client software on Server
Installed Oracle OLE DB connectivity software (ODAC) from Oracle’s website.
This seemed to resolve the error I got in regards to the Oracle Client not
being found
Finally, the account used to access the database did not have the right to
view specific tables. It could see the list of tables, but not specific
tables.
My DBA had to create synonyms for the account used to access the database to
mimic the account that had ownership of the tables in the database.
At this point, I can now connect, perform queries on the tables, etc ,etc..
Wallah, thanks for the journey,
Thanks for all of your help
"BookerW" wrote: Currently in another domain environment, this format below works:
Function Logon(ByVal sUserName As String, ByVal sPassword As String) As String
Dim sRetVal As String = ""
Dim oAllEntries As New DirectoryEntry(LDAP & LDAP_DOMAIN_SERVER & LDAP_USERS, LDAP_DOMAIN & sUserName, sPassword)
where Public Const LDAP As String = "LDAP:" Public Const LDAP_DOMAIN_SERVER As String = "//test.ot.buzz/" Public Const LDAP_USERS As String = "OU=Staff,OU=People,DC=test,DC=ot,DC=buzz" Public Const LDAP_DOMAIN As String = "TEST.OT.BUZZ\"
In trying to translate this, it looks to me that the following line is being built LDAP://test.ot.buzz/ou=staff,ou=people,dc=test,dc=ot,dc=buzz,test.ot.b uzz\susername,spassword
and I am assuming that susername is coming in as jjohnson(example username) and spassword is coming in as jjpassword
or is it coming in as "jjohnson" and the password as "jjpassword"
I am confused as to how the function is passing in the sUsername and sPassword values.....
P.s, if you can't tell, i am new to this. I am taking some source code that was already developed and trying to make it work in a new domain
"Erik Funkenbusch" wrote:
On Thu, 26 Jan 2006 19:55:02 -0800, BookerW wrote:
Thanks Erik...so defintely everything has to be in quotes ?
because i am wondering if my problem lies in the passing of the username and password that is typed in to a textbox
I'm not sure I understand. You only quote string literals. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: jiing |
last post by:
<?php
$ldapServer="ldap://192.168.1.211";
$ldapPort="389";
$ldapconn=ldap_connect($ldapServer,$ldapPort);
$ldaprdn="uid=root, ou=People, dc=aitc, dc=com, dc=tw";
$ldappass="abcd";
...
|
by: Christopher |
last post by:
We are using forms authentication in our web app and typically query our LDAP
Servers by binding to the user node in the LDAP Tree.
We usually see the following DN used as the DN for each user.....
|
by: Dennis Dobslaf |
last post by:
I try to do some authentication with LDAP. But it's a bit different to
the sample in msdn.
I wrote a class LdapAuthentication with a method
public bool IsAuthenticated(String domain, String...
|
by: Matrixinline |
last post by:
Hi
I have a application to search an entry in the LDAP server.
I tried to run this application and it runs perfectly. But the issue
is I am nnot able to Login to the server and searhc for the...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |