search for: ldap_scope_subtree

Displaying 15 results from an estimated 15 matches for "ldap_scope_subtree".

2012 Aug 07
0
spatial_adapter and ruby_ldap
...= [] unless login.blank? filter = "(&(objectClass=#{user_object_class})" + "(#{user_login_attribute}=#{login}))" Comp::Directory::LdapServer.as_anonymous do | conn | puts conn.perror("bind") conn.search(userbase, LDAP::LDAP_SCOPE_SUBTREE, filter) do |e| users << LdapUser.new(e.to_hash) end puts conn.perror("search") end end Rails reports error "failed to allocate memory" but running free -m -s1 in another window does not indicate memory loss. Running rails console wi...
2006 Jan 12
8
''stack level too deep'' error message
Hi, I''m trying to pull info from my company''s ldap server. I can''t use ActiveLDAP because our servers don''t support schema queries. I''ve created the model and the controller can pull the information (I''ve verified this from the log). However, when it comes time for the view to query the LDAP::Entry object, I keep getting ''stack
2006 May 19
3
Ruby LDAP
...P::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.get_dn printf("dn: %s\n",dn) end --- How could I get then the details of an entry, and modify them? Any help would be greatly appreciated. Stephane
2006 Apr 20
1
ruby-ldap crashing WEBrick server
...ap though, it is quite a different matter. We''ve tried using Ruby-ldap within irb, and all seems well. The basic scenario is: conn = LDAP::Conn.new(''server_name'', 389) conn.bind(account_here, password_here) my_results = conn.search2(''base_here'', LDAP::LDAP_SCOPE_SUBTREE, filter_here, attrs=nil) When the third line is executed we get (again, all works fine in irb): WEBrick server error: Assertion failed: LDAP_VALID( ld ), file error.c, line 257 [2006-04-20 14:38:15] INFO WEBrick 1.3.1 [2006-04-20 14:38:15] INFO ruby 1.8.4 (2005-12-24) [sparc-solaris2.8] [2006...
2018 May 01
1
cannot compile 4-8-stable or 4-8-test
...o.c:340:11: warning: implicit declaration of function ‘ads_do_search_all’; did you mean ‘ads_do_search_all_fn’? [-Wimplicit-function-declaration] status = ads_do_search_all(ads, ads->config.bind_path, ^~~~~~~~~~~~~~~~~ ads_do_search_all_fn ../libgpo/pygpo.c:341:8: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function); did you mean ‘LDAP_OPT_SUCCESS’? LDAP_SCOPE_SUBTREE, filter, attrs, &res); ^~~~~~~~~~~~~~~~~~ LDAP_OPT_SUCCESS ../libgpo/pygpo.c:341:8: note: each undeclared identifier is reported only once for each function it appears in In fil...
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
2010 Oct 20
0
No subject
...Directory Server Diagnosis Performing initial setup: * Connecting to directory service on server base.mytestdomain.ca. * Identified AD Forest. Collecting AD specific global data * Collecting site info. Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=mytestdomain,DC=ca,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),....... The previous call succeeded Iterating through the sites Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mytestdomain,DC=ca Getting ISTG and options for the site * Identifying all serv...
2010 Oct 20
0
No subject
...Directory Server Diagnosis Performing initial setup: * Connecting to directory service on server base.mytestdomain.ca. * Identified AD Forest. Collecting AD specific global data * Collecting site info. Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=mytestdomain,DC=ca,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),....... The previous call succeeded Iterating through the sites Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=mytestdomain,DC=ca Getting ISTG and options for the site * Identifying all serv...
2011 Jan 24
2
The RPC server is unavailable
I have used the Samba4 Howto as a guide. I am using OpenSuse 11.3 and the Samba version is: 4.0.0alpha15-GIT-61f7d7c. Everything was working as intended after installation. I did a fresh install on another computer of Windows 7. Joined my freshly made domain. Installed the remote administration tools. Created three users for testing with the remote admin tool - "Active Directory Users and
2009 Oct 22
39
[Bug 1663] New: Allow to use agent for distribution of public keys.
https://bugzilla.mindrot.org/show_bug.cgi?id=1663 Summary: Allow to use agent for distribution of public keys. Product: Portable OpenSSH Version: 5.3p1 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: sshd AssignedTo: unassigned-bugs at mindrot.org
2003 Feb 12
2
rsync & ldap authentication
...quot;ldap: init failed (%s:%d)\n", lp_ldap_server(), lp_ldap_port()); + } else { + if (ldap_simple_bind_s(ld, lp_ldap_root(), lp_ldap_root_passwd()) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: bind failed %s\n", lp_ldap_root()); + } else { + if (ldap_search_s(ld, lp_ldap_suffix(), LDAP_SCOPE_SUBTREE, filter, attrs, 0, &result) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: search_s failed\n"); + } else { + if (!(entry=ldap_first_entry(ld, result))) { + rprintf(FERROR,"ldap: first_entry failed or no user found\n"); + } else { + if (!(dn=ldap_get_dn(ld, entry))) { + r...
2003 May 03
0
Storing rsync secrets in LDAP
..._ldap_port()); + } else { + if (ldap_simple_bind_s(ld, lp_ldap_root(), lp_ldap_root_passwd()) != +LDAP_SUCCESS) { + rprintf(FERROR,"ldap: bind failed %s\n", lp_ldap_root()); + } else { + if (ldap_search_s(ld, lp_ldap_suffix(), LDAP_SCOPE_SUBTREE, filter, +attrs, 0, &result) != LDAP_SUCCESS) { + rprintf(FERROR,"ldap: search_s failed\n"); + } else { + if (!(entry=ldap_first_entry(ld, result))) { + rprintf(FERROR,"ldap: first_entry failed or no user found\n&qu...
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
2013 Jan 28
1
The RPC server is unavailable on Samba 4 clients
...s:gaara Directory Server Diagnosis Performing initial setup: * Connecting to directory service on server gaara. * Identified AD Forest. Collecting AD specific global data * Collecting site info. Calling ldap_search_init_page(hld,CN=Sites,CN=Configuration,DC=gaara,DC=sandbo x,DC=net,LDAP_SCOPE_SUBTREE,(objectCategory=ntDSSiteSettings),....... The previous call succeeded Iterating through the sites Looking at base site object: CN=NTDS Site Settings,CN=Default-First-Site-Name ,CN=Sites,CN=Configuration,DC=gaara,DC=kazekage,DC=net Getting ISTG and options for the site * Identifying a...
2015 Feb 25
2
DCdiag tests
Hey all, has anyone done dcdiag against his DC yet? It's made from a windows client on command line: dcdiag /s:<servername> What are your results? With me some of the tests were not successful, e.g. ForestDNSDomain. My dcdiag is German so its output would not be so helpful for the mailing list. So somebody else can do a check to compare? Thanks in advance Tim