search for: ldap_mapping

Displaying 7 results from an estimated 7 matches for "ldap_mapping".

Did you mean: dax_mapping
2006 Apr 07
3
activeLDAP - ldap_mapping - wildcard
...th activeLDAP. Here is an example of the tree structure of our LDAP server. The structure isn''t exactly like that, but is similare and I can already access almost any informations of a user when I''m logging as this user. The probleme come when using the belong_to, has_many and ldap_mapping has you will see in the rest of this message. -localhost | -groups || |-group01 ||| ||-subgroup01 ||-subgroup02 ||-subgroup03 || |-groupe02 || |-groupe03 | -users || |-labo01 ||| ||-user01 ||-user02 || |-labo02 ||| ||-section01 |||| |||-user03...
2006 Mar 18
6
ActiveLDAP and variable sub scope object writing
...=OxObjects,dc=example,dc=com I want to create the ou=addr,uid=user@example.com,PREFIX entry each time I create a user, but I can''t figure out how to get ActiveLDAP to let me do that. I had tried doing something like creating another model like this: class Addr < ActiveLDAP::Base ldap_mapping :dnattr => ''ou=addr,uid'', :prefix => USER_PREFIX, :classes => [ ''top'', ''organizationalUnit'' ] end And modifying the base.rb code for ActiveLDAP with a goofy hack to allow setting this sort of :dnattr value, but it picks up all th...
2006 Mar 26
17
activeldap
...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 => ''People'', :classes => [''top'',''account''] #belongs_to :groups, :class_name => ''Groups'', :foreign_key => ''memberUid'', :local_key => ''uid...
2009 Jan 22
0
ActiveLdap belongs_to and has_many associations
Hi, I am trying to use ActiveLdap for authentication in my rails app. But I am running into a problem with the "belongs_to" and "has_many" associations. Here ist how my models look like. class Person < ActiveLdap::Base ldap_mapping :dn_attribute => "uid", :prefix => "ou=People", :classes => [''top'', ''account'', ''posixAccount''] belongs_to :groups, :class => ''Group'', :many => ''memberU...
2006 Jul 18
0
Rails Error w/ ActiveLdap
...dc=earthlink,dc=net'', :bind_format => ''cn=root,dc=porteng,dc=earthlink,dc=net'', :password_block => Proc.new { ''letmein'' }, :allow_anonymous => false ) [/environment.rb] [user.rb] $ cat app/models/user.rb class User < ActiveLDAP::Base ldap_mapping :dnattr => ''uid'', :prefix => ''ou=People'', :classes => [ ''account'', ''posixAccount'', ''shadowAccount'', ''top'' ] end [/user.rb] [directoy.rb] $ cat app/mod...
2006 Jul 18
1
Rail w/ ActiveLdap
...dc=earthlink,dc=net'', :bind_format => ''cn=root,dc=porteng,dc=earthlink,dc=net'', :password_block => Proc.new { ''letmein'' }, :allow_anonymous => false ) [/environment.rb] [user.rb] $ cat app/models/user.rb class User < ActiveLDAP::Base ldap_mapping :dnattr => ''uid'', :prefix => ''ou=People'', :classes => [ ''account'', ''posixAccount'', ''shadowAccount'', ''top'' ] end [/user.rb] [directoy.rb] $ cat app/mod...
2006 Mar 05
2
ActiveLDAP maintain user connection
...9;'s in LDAP for each user will be used correctly as the various controller queries are made. I haven''t quite sorted out how to do that. Does anyone have any examples of code to do this, or a documentation pointer? <pre><code> class User < ActiveLDAP::Base ldap_mapping :dnattr => ''uid'', :prefix => USER_PREFIX, :classes => [ ''top'', ''shadowAccount'', ''posixAccount'', ''person'', ''inetOrgPerson'', ''OXUserObject...