aboutsummaryrefslogtreecommitdiffstats
path: root/doc/bitlbee.schema
blob: 3322e0578bd4ee25a5bb3708de844bf7dc473608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
## LDAP Schema file for BitlBee
## Copyright (C) 2006 Jelmer Vernooij <jelmer@samba.org>
##
## We need the following object classes and related attributes:
##
## bitlBeeBuddy:
##  - nick
##  - handle

## each bitlBeeNick has zero or more bitlBeeAccount subentries
## and bitlBeeAccount entries contain zero or more bitlBeeBuddy entries

## The admin needs to setup the LDAP server to:
## - allow anonymous users to auth against bitlBeeNick objects on the 
##   password field
## - allow anonymous users to create new objects that start with nick=
## - allow read/write for a user that is authenticated only to his/her own 
##   object and subentries

##  - userid 
##  - userPassword
##  - setting (multiple values)
##  depends: top, account

attributetype ( 1.3.6.1.4.1.25873.2.1.1 NAME 'bitlBeeAutoConnect'
	DESC 'Autoconnect setting'
	EQUALITY booleanMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )

attributetype ( 1.3.6.1.4.1.25873.2.1.2 NAME 'bitlBeeAccountNo'
	DESC 'Account number'
	EQUALITY integerMatch
	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )

objectclass ( 1.3.6.1.4.1.25873.2.2.3 NAME 'bitlBeeAccount' SUP account STRUCTURAL
	DESC 'BitlBee User Account '
	MUST ( userid, userPassword )
	MAY ( ) )

## bitlBeeAccount:
##  - accountNo 1.3.6.1.4.1.1466.115.121.1.27
##  - protocol (msn, oscar, jabber, yahoo, ...)
##  - username
##  - password
##  - server name
##  - autoconnect (true/false) 1.3.6.1.4.1.1466.115.121.1.7
##  depends: top

objectclass ( 1.3.6.1.4.1.25873.2.2.1 NAME 'bitlBeeIMAccount' SUP account STRUCTURAL
	DESC 'BitlBee IM Account '
	MUST ( bitlBeeAccountNo, userid, userPassword )
	MAY ( host, bitlBeeAutoconnect ) )

objectclass ( 1.3.6.1.4.1.25873.2.2.2 NAME 'bitlBeeSetting' SUP top STRUCTURAL
	DESC 'BitlBee Configuration Setting'
	MUST ( bitlBeeSettingName )
	MAY ( bitlBeeSettingValue ) )

objectclass ( 1.3.6.1.4.1.25873.2.2.3 NAME 'bitlBeeBuddy' SUP top STRUCTURAL
	DESC 'BitlBee Nick Mapping'
	MUST ( bitlBeeBuddyHandle )
	MAY ( ircNick ) )
nt'>user_comment Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/lib/old_rubygems_patch.rb
blob: 3001a73815539464293e7bf66168a0b2a3195fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
if File.exist? File.join(File.dirname(__FILE__),'..','vendor','rails','railties','lib','rails','gem_dependency.rb')
  require File.join(File.dirname(__FILE__),'..','vendor','rails','railties','lib','rails','gem_dependency.rb')
else
  require 'rails/gem_dependency'
end

module Rails
  class GemDependency < Gem::Dependency
  
    # This definition of the requirement method is a patch
    if !method_defined?(:requirement)
      def requirement
        req = version_requirements
      end
    end
  
    def add_load_paths
      self.class.add_frozen_gem_path
      return if @loaded || @load_paths_added
      if framework_gem?
        @load_paths_added = @loaded = @frozen = true
        return
      end

      begin
        dep = Gem::Dependency.new(name, requirement)
        spec = Gem.source_index.find { |_,s| s.satisfies_requirement?(dep) }.last
        spec.activate           # a way that exists
      rescue
        begin 
          gem self.name, self.requirement # <  1.8 unhappy way
        # This second rescue is a patch - fall back to passing Rails::GemDependency to gem
        # for older rubygems
        rescue ArgumentError
          gem self
        end
      end

      @spec = Gem.loaded_specs[name]
      @frozen = @spec.loaded_from.include?(self.class.unpacked_path) if @spec
      @load_paths_added = true
    rescue Gem::LoadError
    end
  end
  
end