search for: ldap_opt_protocol_version

Displaying 12 results from an estimated 12 matches for "ldap_opt_protocol_version".

2006 May 19
3
Ruby LDAP
...;'t seem to find how to do this in Ruby and for example retrieve the elements, attributes, and change them. This is what I have done so far.... --- #!/appl/ruby/bin/ruby -w require ''ldap'' conn = LDAP::Conn.new( ''ldapserver'', 389 ) conn.set_option( LDAP::LDAP_OPT_PROTOCOL_VERSION, 3 ) res=conn.bind(''cn=Manager,dc=domain,dc=com'',''password'') printf("connected %s",res) conn.search(''ou=people,dc=domain,dc=com'',LDAP::LDAP_SCOPE_SUBTREE,''cn=*'',[''cn'']) do |entry| dn=entry....
2014 Jan 23
0
php script to migrate other attributes after running classicupgrade
...;very_secret'; $samba4_port = 389; $samba4_dn = 'CN=users,DC=smb,DC=domain'; $samba4_realm = 'SMB.DOMAIN'; // samba 3 init, accessed anonymously $samba3 = ldap_connect($samba3_server, $samba3_port) or die('Cannot Connect to $samba3_server'); ldap_set_option($samba3, LDAP_OPT_PROTOCOL_VERSION, 3); $samba3Bind = ldap_bind($samba3); if (!$samba3Bind) {die('Cannot Bind to samba3 ldap');} // samba 4 init, bind with a password, non-ssl $samba4 = ldap_connect($samba4_server, $samba4_port) or die('Cannot Connect to $samba4_server'); ldap_set_option($samba4, LDAP_OPT_PRO...
2002 Mar 01
3
--with-ldapsam Compile error on Solaris 8
...c passdb/pdb_ldap.c: In function `ldap_open_connection': passdb/pdb_ldap.c:75: `LDAP_OPT_X_TLS_HARD' undeclared (first use in this function) passdb/pdb_ldap.c:75: (Each undeclared identifier is reported only once passdb/pdb_ldap.c:75: for each function it appears in.) passdb/pdb_ldap.c:95: `LDAP_OPT_PROTOCOL_VERSION' undeclared (first use in this function) passdb/pdb_ldap.c:95: `LDAP_OPT_SUCCESS' undeclared (first use in this function) passdb/pdb_ldap.c:110: `LDAP_VERSION3' undeclared (first use in this function) passdb/pdb_ldap.c:127: `LDAP_OPT_X_TLS' undeclared (first use in this function) pa...
2015 May 02
2
LDAPS Configuration
Hi, I'm trying to convert my LDAP server into a LDAPS server to secure the users logins, but I don't know what's the procedure to do it. Someone knows any guide to do it? For now: - I've created a CA cert on the server - I've created the cert and key for the domain pdc - I've signed that cert with CA cert. - I've followed the post in samba wiki about
2020 Feb 27
2
samba AD directory and PHP
Am 27.02.20 um 11:32 schrieb L.P.H. van Belle via samba: > But your missing the important part. > > How ? > > Kerberos ? NTLM ? LDAP ? > > ;-) Ah ok Actually I want to use secure LDAP from a PHP docker container. So far no Kerberos involved as far as I see. (I have to dockerize a php app which is badly written ... and I want to clean up a bit, and let it bind
2006 Feb 21
9
Rails and Windows Active Directory Authentication?
Hello All, I know there is a component for integrating LDAP with Rails but is anyone doing any Windows Active Directory Authentication to a Rails app? I am rebuilding a site that was constructed out of asp and I would like to rebuild/improve it via rails. On the requirements side I will need to communicate with Active Directory and I will be required to use MSSQL for the database. Can anyone
2015 Jun 16
0
LDAPS Configuration
...STEN and i don't see any error in the log, but i can't use the TLS connection in applications like for example Horde. RSAT LDP works fine without TLS too, but with TLS give me an error trying to connect: ld = ldap_sslinit("pdc.nd.red", 636, 1); Error 81 = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, 3); Error 81 = ldap_connect(hLdap, NULL); Server error: <empty> Error <0x51>: Fail to connect to pdc.nd.red. and the openSSL test command of the wiki works too from another server: openssl s_client -showcerts -connect pdc.nd.red:636 CONNECTED(00000003) depth=0 C = ES, ST = Madrid, L...
2006 Mar 14
3
LDAP Authentication
I have to do user authentication for a project i''m working on. The trick is they want me to use the existing LDAP database for it. Does anyone know how to authenticate using LDAP in RoR? ~Rahul
2014 Mar 18
1
A record packet with illegal version was received.
...php script that tries to connect to the samba 4: <?php $ldap="samba.domain.com"; $usr="test at domain.com"; $pwd="s3cr3t"; $ds=ldap_connect($ldap); ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, 7); $ldapbind=false; if(ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3)) if(ldap_set_option($ds, LDAP_OPT_REFERRALS, 0)) if(ldap_start_tls($ds)) $ldapbind = ldap_bind($ds, $usr, $pwd); if(!$ldapbind) { echo "ERROR: "; echo ldap_error($ds); echo " (".ldap_errno($ds).")"; }...
2019 Apr 04
5
Migration to samba4 ad and sync to openldap.
I managed to do migration using "classicupgrade". Doing tests with debian buster 2:4.9.4+dfsg-4. For the moment using samba internal dns and sub-domain of ad.advocap.org. Had issue forwarding dns if I used main domain. When it comes to real production will use bind that I understand better but don't want to mess with my other dns servers now. Had a w10 box join samba4 ad
2006 Jul 21
6
pulling information from LDAP server using Ruby on Rails
Hello, I am currently working on a project using Ruby on Rails. So far, I have a well-populated mySQL database the RoR refers to and the basic scaffolding functions implemented. I also designed views/layouts that furthers the basic scaffolding interface. No problem and no big accomplishment by any means. Now, I want to pull user information from an already existing LDAP server and put that
2006 Mar 26
17
activeldap
Obviously I am missing something and I don''t know what it is... I am following the instructions at http://rubyforge.org/docman/view.php/381/114/activeldap_rb.html and also here... http://wiki.rubyonrails.org/rails/pages/HowtoAuthenticateViaLdap my model looks exactly like this... class LdapUser < ActiveRecord::Base ldap_mapping :dnattr => ''uid'', :prefix