rubynas 0.1.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +23 -0
- data/.gitmodules +3 -0
- data/.rspec +2 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +196 -0
- data/Guardfile +8 -0
- data/LICENSE.txt +7 -0
- data/Procfile +2 -0
- data/README.md +151 -0
- data/Rakefile +14 -0
- data/Vagrantfile +99 -0
- data/bin/rubynas +63 -0
- data/config.ru +5 -0
- data/doc/README_FOR_APP +2 -0
- data/doc/macosx_shares.png +0 -0
- data/doc/shares_overview.png +0 -0
- data/lib/rubynas.rb +35 -0
- data/lib/rubynas/apis/group_api.rb +51 -0
- data/lib/rubynas/apis/system_information_api.rb +13 -0
- data/lib/rubynas/apis/user_api.rb +85 -0
- data/lib/rubynas/apis/volume_api.rb +50 -0
- data/lib/rubynas/config.rb +63 -0
- data/lib/rubynas/db/migrate/20130302164415_devise_create_users.rb +46 -0
- data/lib/rubynas/db/migrate/20130322143040_create_volumes.rb +10 -0
- data/lib/rubynas/db/migrate/20130331102556_create_shared_folders.rb +10 -0
- data/lib/rubynas/db/migrate/20130331103034_create_shared_folder_services.rb +11 -0
- data/lib/rubynas/installers/base_installer.rb +70 -0
- data/lib/rubynas/installers/debian_installer.rb +199 -0
- data/lib/rubynas/installers/ubuntu_installer.rb +2 -0
- data/lib/rubynas/installers/ubuntu_precise_installer.rb +2 -0
- data/lib/rubynas/models/.gitkeep +0 -0
- data/lib/rubynas/models/ldap_group.rb +21 -0
- data/lib/rubynas/models/ldap_org_unit.rb +13 -0
- data/lib/rubynas/models/ldap_user.rb +31 -0
- data/lib/rubynas/models/shared_folder.rb +32 -0
- data/lib/rubynas/models/shared_folder_service.rb +15 -0
- data/lib/rubynas/models/volume.rb +16 -0
- data/lib/rubynas/services/afp_share_service.rb +9 -0
- data/lib/rubynas/services/service.rb +4 -0
- data/lib/rubynas/services/share_service.rb +3 -0
- data/lib/rubynas/version.rb +3 -0
- data/rubynas.gemspec +69 -0
- data/rubynas.ini +24 -0
- data/sandbox/ldap/base.ldif +50 -0
- data/sandbox/ldap/data/.gitkeep +0 -0
- data/sandbox/ldap/data/dc=rubynas,dc=com.ldif +14 -0
- data/sandbox/ldap/local.schema +6 -0
- data/sandbox/ldap/schema/README +80 -0
- data/sandbox/ldap/schema/apple.schema +1727 -0
- data/sandbox/ldap/schema/apple_auxillary.schema +20 -0
- data/sandbox/ldap/schema/collective.ldif +48 -0
- data/sandbox/ldap/schema/collective.schema +190 -0
- data/sandbox/ldap/schema/corba.ldif +42 -0
- data/sandbox/ldap/schema/corba.schema +239 -0
- data/sandbox/ldap/schema/core.ldif +591 -0
- data/sandbox/ldap/schema/core.schema +610 -0
- data/sandbox/ldap/schema/cosine.ldif +200 -0
- data/sandbox/ldap/schema/cosine.schema +2571 -0
- data/sandbox/ldap/schema/duaconf.ldif +83 -0
- data/sandbox/ldap/schema/duaconf.schema +261 -0
- data/sandbox/ldap/schema/dyngroup.ldif +71 -0
- data/sandbox/ldap/schema/dyngroup.schema +91 -0
- data/sandbox/ldap/schema/fmserver.schema +60 -0
- data/sandbox/ldap/schema/inetorgperson.ldif +69 -0
- data/sandbox/ldap/schema/inetorgperson.schema +155 -0
- data/sandbox/ldap/schema/java.ldif +59 -0
- data/sandbox/ldap/schema/java.schema +403 -0
- data/sandbox/ldap/schema/krb5-kdc.schema +134 -0
- data/sandbox/ldap/schema/microsoft.ext.schema +5383 -0
- data/sandbox/ldap/schema/microsoft.schema +4835 -0
- data/sandbox/ldap/schema/microsoft.std.schema +480 -0
- data/sandbox/ldap/schema/misc.ldif +45 -0
- data/sandbox/ldap/schema/misc.schema +75 -0
- data/sandbox/ldap/schema/netinfo.schema +240 -0
- data/sandbox/ldap/schema/nis.ldif +120 -0
- data/sandbox/ldap/schema/nis.schema +241 -0
- data/sandbox/ldap/schema/openldap.ldif +88 -0
- data/sandbox/ldap/schema/openldap.schema +54 -0
- data/sandbox/ldap/schema/pmi.ldif +123 -0
- data/sandbox/ldap/schema/pmi.schema +464 -0
- data/sandbox/ldap/schema/ppolicy.ldif +75 -0
- data/sandbox/ldap/schema/ppolicy.schema +531 -0
- data/sandbox/ldap/schema/samba.schema +179 -0
- data/sandbox/ldap/slapd.conf +99 -0
- data/spec/apis/group_api_spec.rb +97 -0
- data/spec/apis/system_information_api_spec.rb +27 -0
- data/spec/apis/user_api_spec.rb +113 -0
- data/spec/apis/volume_api_spec.rb +98 -0
- data/spec/factories/ldap_group.rb +16 -0
- data/spec/factories/ldap_users.rb +24 -0
- data/spec/factories/shared_folder_services.rb +9 -0
- data/spec/factories/shared_folders.rb +15 -0
- data/spec/factories/users.rb +8 -0
- data/spec/factories/volumes.rb +10 -0
- data/spec/installer/base_installer_spec.rb +35 -0
- data/spec/installer/debian_installer_spec.rb +86 -0
- data/spec/models/ldap_group_spec.rb +21 -0
- data/spec/models/ldap_org_unit_spec.rb +19 -0
- data/spec/models/ldap_user_spec.rb +19 -0
- data/spec/models/shared_folder_service_spec.rb +25 -0
- data/spec/models/shared_folder_spec.rb +27 -0
- data/spec/models/volume_spec.rb +5 -0
- data/spec/services/afp_share_service_spec.rb +5 -0
- data/spec/services/service_spec.rb +5 -0
- data/spec/services/share_service_spec.rb +5 -0
- data/spec/spec_helper.rb +30 -0
- data/spec/support/db_cleaner.rb +16 -0
- data/spec/support/factory_girl.rb +7 -0
- data/spec/support/logger.rb +1 -0
- data/spec/support/rack-test.rb +6 -0
- metadata +633 -0
@@ -0,0 +1,45 @@
|
|
1
|
+
# misc.ldif -- assorted schema definitions
|
2
|
+
# $OpenLDAP$
|
3
|
+
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
4
|
+
##
|
5
|
+
## Copyright 1998-2011 The OpenLDAP Foundation.
|
6
|
+
## All rights reserved.
|
7
|
+
##
|
8
|
+
## Redistribution and use in source and binary forms, with or without
|
9
|
+
## modification, are permitted only as authorized by the OpenLDAP
|
10
|
+
## Public License.
|
11
|
+
##
|
12
|
+
## A copy of this license is available in the file LICENSE in the
|
13
|
+
## top-level directory of the distribution or, alternatively, at
|
14
|
+
## <http://www.OpenLDAP.org/license.html>.
|
15
|
+
#
|
16
|
+
# Assorted definitions from several sources, including
|
17
|
+
# ''works in progress''. Contents of this file are
|
18
|
+
# subject to change (including deletion) without notice.
|
19
|
+
#
|
20
|
+
# Not recommended for production use!
|
21
|
+
# Use with extreme caution!
|
22
|
+
#
|
23
|
+
# This file was automatically generated from misc.schema; see that file
|
24
|
+
# for complete references.
|
25
|
+
#
|
26
|
+
dn: cn=misc,cn=schema,cn=config
|
27
|
+
objectClass: olcSchemaConfig
|
28
|
+
cn: misc
|
29
|
+
olcAttributeTypes: {0}( 2.16.840.1.113730.3.1.13 NAME 'mailLocalAddress' DESC
|
30
|
+
'RFC822 email address of this recipient' EQUALITY caseIgnoreIA5Match SYNTAX 1
|
31
|
+
.3.6.1.4.1.1466.115.121.1.26{256} )
|
32
|
+
olcAttributeTypes: {1}( 2.16.840.1.113730.3.1.18 NAME 'mailHost' DESC 'FQDN of
|
33
|
+
the SMTP/MTA of this recipient' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4
|
34
|
+
.1.1466.115.121.1.26{256} SINGLE-VALUE )
|
35
|
+
olcAttributeTypes: {2}( 2.16.840.1.113730.3.1.47 NAME 'mailRoutingAddress' DES
|
36
|
+
C 'RFC822 routing address of this recipient' EQUALITY caseIgnoreIA5Match SYNT
|
37
|
+
AX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )
|
38
|
+
olcAttributeTypes: {3}( 1.3.6.1.4.1.42.2.27.2.1.15 NAME 'rfc822MailMember' DES
|
39
|
+
C 'rfc822 mail address of group member(s)' EQUALITY caseIgnoreIA5Match SYNTAX
|
40
|
+
1.3.6.1.4.1.1466.115.121.1.26 )
|
41
|
+
olcObjectClasses: {0}( 2.16.840.1.113730.3.2.147 NAME 'inetLocalMailRecipient'
|
42
|
+
DESC 'Internet local mail recipient' SUP top AUXILIARY MAY ( mailLocalAddres
|
43
|
+
s $ mailHost $ mailRoutingAddress ) )
|
44
|
+
olcObjectClasses: {1}( 1.3.6.1.4.1.42.2.27.1.2.5 NAME 'nisMailAlias' DESC 'NIS
|
45
|
+
mail alias' SUP top STRUCTURAL MUST cn MAY rfc822MailMember )
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# misc.schema -- assorted schema definitions
|
2
|
+
# $OpenLDAP$
|
3
|
+
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
4
|
+
##
|
5
|
+
## Copyright 1998-2011 The OpenLDAP Foundation.
|
6
|
+
## All rights reserved.
|
7
|
+
##
|
8
|
+
## Redistribution and use in source and binary forms, with or without
|
9
|
+
## modification, are permitted only as authorized by the OpenLDAP
|
10
|
+
## Public License.
|
11
|
+
##
|
12
|
+
## A copy of this license is available in the file LICENSE in the
|
13
|
+
## top-level directory of the distribution or, alternatively, at
|
14
|
+
## <http://www.OpenLDAP.org/license.html>.
|
15
|
+
#
|
16
|
+
# Assorted definitions from several sources, including
|
17
|
+
# ''works in progress''. Contents of this file are
|
18
|
+
# subject to change (including deletion) without notice.
|
19
|
+
#
|
20
|
+
# Not recommended for production use!
|
21
|
+
# Use with extreme caution!
|
22
|
+
|
23
|
+
#-----------------------------------------------------------
|
24
|
+
# draft-lachman-laser-ldap-mail-routing-02.txt !!!EXPIRED!!!
|
25
|
+
# (a work in progress)
|
26
|
+
#
|
27
|
+
attributetype ( 2.16.840.1.113730.3.1.13
|
28
|
+
NAME 'mailLocalAddress'
|
29
|
+
DESC 'RFC822 email address of this recipient'
|
30
|
+
EQUALITY caseIgnoreIA5Match
|
31
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
|
32
|
+
|
33
|
+
attributetype ( 2.16.840.1.113730.3.1.18
|
34
|
+
NAME 'mailHost'
|
35
|
+
DESC 'FQDN of the SMTP/MTA of this recipient'
|
36
|
+
EQUALITY caseIgnoreIA5Match
|
37
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
38
|
+
SINGLE-VALUE )
|
39
|
+
|
40
|
+
attributetype ( 2.16.840.1.113730.3.1.47
|
41
|
+
NAME 'mailRoutingAddress'
|
42
|
+
DESC 'RFC822 routing address of this recipient'
|
43
|
+
EQUALITY caseIgnoreIA5Match
|
44
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256}
|
45
|
+
SINGLE-VALUE )
|
46
|
+
|
47
|
+
# I-D leaves this OID TBD.
|
48
|
+
# iPlanet uses 2.16.840.1.113.730.3.2.147 but that is an
|
49
|
+
# improperly delegated OID. A typo is likely.
|
50
|
+
objectclass ( 2.16.840.1.113730.3.2.147
|
51
|
+
NAME 'inetLocalMailRecipient'
|
52
|
+
DESC 'Internet local mail recipient'
|
53
|
+
SUP top AUXILIARY
|
54
|
+
MAY ( mailLocalAddress $ mailHost $ mailRoutingAddress ) )
|
55
|
+
|
56
|
+
#-----------------------------------------------------------
|
57
|
+
# draft-srivastava-ldap-mail-00.txt !!!EXPIRED!!!
|
58
|
+
# (a work in progress)
|
59
|
+
#
|
60
|
+
attributetype ( 1.3.6.1.4.1.42.2.27.2.1.15
|
61
|
+
NAME 'rfc822MailMember'
|
62
|
+
DESC 'rfc822 mail address of group member(s)'
|
63
|
+
EQUALITY caseIgnoreIA5Match
|
64
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
65
|
+
|
66
|
+
#-----------------------------------------------------------
|
67
|
+
# !!!no I-D!!!
|
68
|
+
# (a work in progress)
|
69
|
+
#
|
70
|
+
objectclass ( 1.3.6.1.4.1.42.2.27.1.2.5
|
71
|
+
NAME 'nisMailAlias'
|
72
|
+
DESC 'NIS mail alias'
|
73
|
+
SUP top STRUCTURAL
|
74
|
+
MUST cn
|
75
|
+
MAY rfc822MailMember )
|
@@ -0,0 +1,240 @@
|
|
1
|
+
#ident $Id: netinfo.schema,v 1.21.32.2 2006/06/01 02:27:04 sjones Exp $
|
2
|
+
#
|
3
|
+
# NetInfo attribute mapping schema.
|
4
|
+
#
|
5
|
+
|
6
|
+
#
|
7
|
+
# Schema mapping for NetInfo users.
|
8
|
+
#
|
9
|
+
objectclassmap /users inetOrgPerson posixAccount shadowAccount apple-user extensibleObject
|
10
|
+
attributemap /users name uid
|
11
|
+
attributemap /users realname cn
|
12
|
+
attributemap /users uid uidNumber
|
13
|
+
attributemap /users gid gidNumber
|
14
|
+
attributemap /users home homeDirectory
|
15
|
+
attributemap /users shell loginShell
|
16
|
+
attributemap /users expire shadowExpire
|
17
|
+
attributemap /users change shadowLastChange
|
18
|
+
#attributemap /users principal krbName
|
19
|
+
attributemap /users class apple-user-class
|
20
|
+
attributemap /users home_loc apple-user-homeurl
|
21
|
+
attributemap /users homedirectoryquota apple-user-homequota
|
22
|
+
attributemap /users homedirectorysoftquota apple-user-homesoftquota
|
23
|
+
attributemap /users applemail apple-user-mailattribute
|
24
|
+
attributemap /users appleprintservice apple-user-printattribute
|
25
|
+
attributemap /users admin_limits apple-user-adminlimits
|
26
|
+
attributemap /users picture apple-user-picture
|
27
|
+
attributemap /users hint apple-user-authenticationhint
|
28
|
+
attributemap /users passwordpolicyoptions apple-user-passwordpolicy
|
29
|
+
attributemap /users authentication_authority authAuthority
|
30
|
+
attributemap /users lastname sn
|
31
|
+
attributemap /users firstname givenName
|
32
|
+
attributemap /users state stateOrProvinceName
|
33
|
+
attributemap /users zip postalCode
|
34
|
+
attributemap /users address1 streetAddress
|
35
|
+
attributemap /users phonenumber telephoneNumber
|
36
|
+
attributemap /users imhandle apple-imhandle
|
37
|
+
attributemap /users comment description
|
38
|
+
attributemap /users smb_acctFlags acctFlags
|
39
|
+
attributemap /users smb_pwd_last_set pwdLastSet
|
40
|
+
attributemap /users smb_logon_time logonTime
|
41
|
+
attributemap /users smb_logoff_time logoffTime
|
42
|
+
attributemap /users smb_kickoff_time kickoffTime
|
43
|
+
attributemap /users smb_home_drive homeDrive
|
44
|
+
attributemap /users smb_script_path scriptPath
|
45
|
+
attributemap /users smb_profile_path profilePath
|
46
|
+
attributemap /users smb_user_workstations userWorkstations
|
47
|
+
attributemap /users smb_home smbHome
|
48
|
+
attributemap /users smb_rid rid
|
49
|
+
attributemap /users smb_group_rid primaryGroupID
|
50
|
+
|
51
|
+
#
|
52
|
+
# Schema mapping for NetInfo groups.
|
53
|
+
#
|
54
|
+
objectclassmap /groups posixGroup apple-group extensibleObject
|
55
|
+
attributemap /groups users memberUid
|
56
|
+
attributemap /groups gid gidNumber
|
57
|
+
attributemap /groups realname apple-group-realname
|
58
|
+
attributemap /groups home_loc apple-group-homeurl
|
59
|
+
attributemap /groups home_loc_owner apple-group-homeowner
|
60
|
+
attributemap /groups picture apple-user-picture
|
61
|
+
|
62
|
+
#
|
63
|
+
# Schema mapping for NetInfo hosts.
|
64
|
+
#
|
65
|
+
objectclassmap /machines device ipHost ieee802Device bootableDevice apple-machine
|
66
|
+
attributemap /machines name cn
|
67
|
+
attributemap /machines ip_address ipHostNumber
|
68
|
+
#attributemap /machines ipv6_address ipHostNumber
|
69
|
+
attributemap /machines en_address macAddress
|
70
|
+
attributemap /machines bootfile bootFile
|
71
|
+
attributemap /machines bootparams bootParameter
|
72
|
+
attributemap /machines serves apple-machine-serves
|
73
|
+
attributemap /machines suffix apple-machine-suffix
|
74
|
+
attributemap /machines hardware apple-machine-hardware
|
75
|
+
attributemap /machines software apple-machine-software
|
76
|
+
attributemap /machines owner apple-machine-contactperson
|
77
|
+
|
78
|
+
#
|
79
|
+
# Schema mapping for NetInfo protocols.
|
80
|
+
#
|
81
|
+
objectclassmap /protocols ipProtocol
|
82
|
+
attributemap /protocols number ipProtocolNumber
|
83
|
+
|
84
|
+
#
|
85
|
+
# Schema mapping for NetInfo RPCs.
|
86
|
+
#
|
87
|
+
objectclassmap /rpcs oncRpc
|
88
|
+
attributemap /rpcs number oncRpcNumber
|
89
|
+
|
90
|
+
#
|
91
|
+
# Schema mapping for NetInfo services.
|
92
|
+
#
|
93
|
+
objectclassmap /services ipService
|
94
|
+
attributemap /services port ipServicePort
|
95
|
+
attributemap /services protocol ipServiceProtocol
|
96
|
+
|
97
|
+
#
|
98
|
+
# Schema mapping for NetInfo networks.
|
99
|
+
#
|
100
|
+
objectclassmap /networks ipNetwork
|
101
|
+
attributemap /networks address ipNetworkNumber
|
102
|
+
attributemap /networks netmask ipNetmaskNumber
|
103
|
+
|
104
|
+
#
|
105
|
+
# Schema mapping for NetInfo mounts.
|
106
|
+
#
|
107
|
+
objectclassmap /mounts mount
|
108
|
+
attributemap /mounts dir mountDirectory
|
109
|
+
attributemap /mounts vfstype mountType
|
110
|
+
attributemap /mounts opts mountOption
|
111
|
+
attributemap /mounts dump_freq mountDumpFrequency
|
112
|
+
attributemap /mounts passno mountPassNo
|
113
|
+
|
114
|
+
#
|
115
|
+
# Schema mapping for NetInfo printers.
|
116
|
+
#
|
117
|
+
objectclassmap /printers apple-printer
|
118
|
+
attributemap /printers attributes apple-printer-attributes
|
119
|
+
attributemap /printers rm apple-printer-lprhost
|
120
|
+
attributemap /printers rp apple-printer-lprqueue
|
121
|
+
attributemap /printers ty apple-printer-type
|
122
|
+
attributemap /printers note apple-printer-note
|
123
|
+
|
124
|
+
#
|
125
|
+
# Schema mapping for NetInfo mail aliases.
|
126
|
+
#
|
127
|
+
objectclassmap /aliases nisMailAlias
|
128
|
+
attributemap /aliases members rfc822MailMember
|
129
|
+
|
130
|
+
#
|
131
|
+
# Schema mapping for NetInfo computers.
|
132
|
+
#
|
133
|
+
objectclassmap /computers apple-computer
|
134
|
+
attributemap /computers realname apple-realname
|
135
|
+
attributemap /computers comment description
|
136
|
+
attributemap /computers en_address macAddress
|
137
|
+
attributemap /computers groups apple-computer-list-groups
|
138
|
+
attributemap /computers uid uidNumber
|
139
|
+
attributemap /computers gid gidNumber
|
140
|
+
attributemap /computers authentication_authority authAuthority
|
141
|
+
attributemap /computers smb_acctFlags acctFlags
|
142
|
+
attributemap /computers smb_pwd_last_set pwdLastSet
|
143
|
+
attributemap /computers smb_logon_time logonTime
|
144
|
+
attributemap /computers smb_logoff_time logoffTime
|
145
|
+
attributemap /computers smb_kickoff_time kickoffTime
|
146
|
+
attributemap /computers smb_rid rid
|
147
|
+
attributemap /computers smb_group_rid primaryGroupID
|
148
|
+
attributemap /computers XMLPlist apple-xmlplist
|
149
|
+
|
150
|
+
#
|
151
|
+
# Schema mapping for NetInfo computer lists.
|
152
|
+
#
|
153
|
+
objectclassmap /computer_lists apple-computer-list
|
154
|
+
attributemap /computer_lists computers apple-computers
|
155
|
+
attributemap /computer_lists groups apple-computer-list-groups
|
156
|
+
|
157
|
+
#
|
158
|
+
# Schema mapping for NetInfo configurations.
|
159
|
+
#
|
160
|
+
objectclassmap /config apple-configuration extensibleObject
|
161
|
+
attributemap /config passwordserverlocation apple-password-server-location
|
162
|
+
attributemap /config realname apple-config-realname
|
163
|
+
attributemap /config data_stamp apple-data-stamp
|
164
|
+
attributemap /config passwordserverlist apple-password-server-list
|
165
|
+
attributemap /config kdcauthkey apple-kdc-authkey
|
166
|
+
attributemap /config kdcconfigdata apple-kdc-configdata
|
167
|
+
attributemap /config XMLPlist apple-xmlplist
|
168
|
+
|
169
|
+
#
|
170
|
+
# Schema mapping for NetInfo preset computer lists.
|
171
|
+
#
|
172
|
+
objectclassmap /presets_computer_lists apple-preset-computer-list
|
173
|
+
attributemap /presets_computer_lists groups apple-computer-list-groups
|
174
|
+
|
175
|
+
#
|
176
|
+
# Schema mapping for NetInfo preset groups.
|
177
|
+
#
|
178
|
+
objectclassmap /presets_groups apple-preset-group
|
179
|
+
attributemap /presets_groups realname apple-group-realname
|
180
|
+
attributemap /presets_groups gid gidNumber
|
181
|
+
attributemap /presets_groups home_loc apple-group-homeurl
|
182
|
+
attributemap /presets_groups home_loc_owner apple-group-homeowner
|
183
|
+
|
184
|
+
#
|
185
|
+
# Schema mapping for NetInfo preset users.
|
186
|
+
#
|
187
|
+
objectclassmap /presets_users apple-preset-user
|
188
|
+
attributemap /presets_users users memberUid
|
189
|
+
attributemap /presets_users gid gidNumber
|
190
|
+
attributemap /presets_users home homeDirectory
|
191
|
+
attributemap /presets_users homedirectoryquota apple-user-homequota
|
192
|
+
attributemap /presets_users homedirectorysoftquota apple-user-homesoftquota
|
193
|
+
attributemap /presets_users applemail apple-user-mailattribute
|
194
|
+
attributemap /presets_users appleprintservice apple-user-printattribute
|
195
|
+
attributemap /presets_users admin_limits apple-user-adminlimits
|
196
|
+
attributemap /presets_users passwordpolicyoptions apple-user-passwordpolicy
|
197
|
+
attributemap /presets_users picture apple-user-picture
|
198
|
+
attributemap /presets_users shell loginShell
|
199
|
+
attributemap /presets_users change shadowLastChange
|
200
|
+
attributemap /presets_users expire shadowExpire
|
201
|
+
attributemap /presets_users authentication_authority authAuthority
|
202
|
+
attributemap /presets_users preset_user_is_admin apple-preset-user-is-admin
|
203
|
+
|
204
|
+
objectclassmap /people inetOrgPerson
|
205
|
+
|
206
|
+
#
|
207
|
+
# Schema mapping for NetInfo Server Assistant configs.
|
208
|
+
#
|
209
|
+
objectclassmap /autoserversetup apple-serverassistant-config
|
210
|
+
attributemap /autoserversetup XMLPlist apple-xmlplist
|
211
|
+
|
212
|
+
#
|
213
|
+
# Schema mapping for NetInfo locations.
|
214
|
+
#
|
215
|
+
objectclassmap /locations apple-location
|
216
|
+
attributemap /locations domain apple-dns-domain
|
217
|
+
attributemap /locations nameserver apple-dns-nameserver
|
218
|
+
|
219
|
+
#
|
220
|
+
# Top-level directories are mapped the "container"
|
221
|
+
# object class.
|
222
|
+
#
|
223
|
+
objectclassmap / container
|
224
|
+
|
225
|
+
#
|
226
|
+
# The "passwd" NetInfo property is mapped to comply
|
227
|
+
# with RFC 2307.
|
228
|
+
#
|
229
|
+
attributemap passwd userPassword appendPrefixTransform:{CRYPT} removePrefixTransform:{CRYPT}
|
230
|
+
|
231
|
+
#
|
232
|
+
# The "cn" LDAP attribute is mapped to NetInfo property
|
233
|
+
# "name" for compatibility with existing NetInfo clients.
|
234
|
+
#
|
235
|
+
attributemap name cn
|
236
|
+
|
237
|
+
attributemap mcx_flags apple-mcxflags
|
238
|
+
attributemap mcx_settings apple-mcxsettings
|
239
|
+
attributemap keywords apple-keyword
|
240
|
+
attributemap generateduid apple-generateduid
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# NIS (RFC2307)
|
2
|
+
# $OpenLDAP$
|
3
|
+
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
|
4
|
+
##
|
5
|
+
## Copyright 1998-2011 The OpenLDAP Foundation.
|
6
|
+
## All rights reserved.
|
7
|
+
##
|
8
|
+
## Redistribution and use in source and binary forms, with or without
|
9
|
+
## modification, are permitted only as authorized by the OpenLDAP
|
10
|
+
## Public License.
|
11
|
+
##
|
12
|
+
## A copy of this license is available in the file LICENSE in the
|
13
|
+
## top-level directory of the distribution or, alternatively, at
|
14
|
+
## <http://www.OpenLDAP.org/license.html>.
|
15
|
+
#
|
16
|
+
# Definitions from RFC2307 (Experimental)
|
17
|
+
# An Approach for Using LDAP as a Network Information Service
|
18
|
+
#
|
19
|
+
# Depends upon core.ldif and cosine.ldif
|
20
|
+
#
|
21
|
+
# This file was automatically generated from nis.schema; see that file
|
22
|
+
# for complete references.
|
23
|
+
#
|
24
|
+
dn: cn=nis,cn=schema,cn=config
|
25
|
+
objectClass: olcSchemaConfig
|
26
|
+
cn: nis
|
27
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.2 NAME 'gecos' DESC 'The GECOS field; th
|
28
|
+
e common name' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatc
|
29
|
+
h SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
|
30
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.3 NAME 'homeDirectory' DESC 'The absolut
|
31
|
+
e path to the home directory' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1
|
32
|
+
466.115.121.1.26 SINGLE-VALUE )
|
33
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.4 NAME 'loginShell' DESC 'The path to th
|
34
|
+
e login shell' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.2
|
35
|
+
6 SINGLE-VALUE )
|
36
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange' EQUALITY integ
|
37
|
+
erMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
38
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.6 NAME 'shadowMin' EQUALITY integerMatch
|
39
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
40
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.7 NAME 'shadowMax' EQUALITY integerMatch
|
41
|
+
SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
42
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.8 NAME 'shadowWarning' EQUALITY integerM
|
43
|
+
atch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
44
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.9 NAME 'shadowInactive' EQUALITY integer
|
45
|
+
Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
46
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.10 NAME 'shadowExpire' EQUALITY integerM
|
47
|
+
atch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
48
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag' EQUALITY integerMat
|
49
|
+
ch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
50
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.12 NAME 'memberUid' EQUALITY caseExactI
|
51
|
+
A5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.
|
52
|
+
26 )
|
53
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup' EQUALITY ca
|
54
|
+
seExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.11
|
55
|
+
5.121.1.26 )
|
56
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.14 NAME 'nisNetgroupTriple' DESC 'Netgr
|
57
|
+
oup triple' SYNTAX 1.3.6.1.1.1.0.0 )
|
58
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.15 NAME 'ipServicePort' EQUALITY intege
|
59
|
+
rMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
60
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.16 NAME 'ipServiceProtocol' SUP name )
|
61
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.17 NAME 'ipProtocolNumber' EQUALITY int
|
62
|
+
egerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
63
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.18 NAME 'oncRpcNumber' EQUALITY integer
|
64
|
+
Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
65
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber' DESC 'IP address
|
66
|
+
' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
|
67
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.20 NAME 'ipNetworkNumber' DESC 'IP netw
|
68
|
+
ork' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SI
|
69
|
+
NGLE-VALUE )
|
70
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.21 NAME 'ipNetmaskNumber' DESC 'IP netm
|
71
|
+
ask' EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} SI
|
72
|
+
NGLE-VALUE )
|
73
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.22 NAME 'macAddress' DESC 'MAC address'
|
74
|
+
EQUALITY caseIgnoreIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
|
75
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.23 NAME 'bootParameter' DESC 'rpc.bootp
|
76
|
+
aramd parameter' SYNTAX 1.3.6.1.1.1.0.1 )
|
77
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.24 NAME 'bootFile' DESC 'Boot image nam
|
78
|
+
e' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
|
79
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.26 NAME 'nisMapName' SUP name )
|
80
|
+
olcAttributeTypes: ( 1.3.6.1.1.1.1.27 NAME 'nisMapEntry' EQUALITY caseExac
|
81
|
+
tIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.
|
82
|
+
1.26{1024} SINGLE-VALUE )
|
83
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' DESC 'Abstraction o
|
84
|
+
f an account with POSIX attributes' SUP top AUXILIARY MUST ( cn $ uid $ uidNu
|
85
|
+
mber $ gidNumber $ homeDirectory ) MAY ( userPassword $ loginShell $ gecos $
|
86
|
+
description ) )
|
87
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount' DESC 'Additional a
|
88
|
+
ttributes for shadow passwords' SUP top AUXILIARY MUST uid MAY ( userPassword
|
89
|
+
$ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive
|
90
|
+
$ shadowExpire $ shadowFlag $ description ) )
|
91
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.2 NAME 'posixGroup' DESC 'Abstraction of
|
92
|
+
a group of accounts' SUP top STRUCTURAL MUST ( cn $ gidNumber ) MAY ( userPas
|
93
|
+
sword $ memberUid $ description ) )
|
94
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.3 NAME 'ipService' DESC 'Abstraction an I
|
95
|
+
nternet Protocol service' SUP top STRUCTURAL MUST ( cn $ ipServicePort $ ipSe
|
96
|
+
rviceProtocol ) MAY description )
|
97
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.4 NAME 'ipProtocol' DESC 'Abstraction of
|
98
|
+
an IP protocol' SUP top STRUCTURAL MUST ( cn $ ipProtocolNumber $ description
|
99
|
+
) MAY description )
|
100
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.5 NAME 'oncRpc' DESC 'Abstraction of an O
|
101
|
+
NC/RPC binding' SUP top STRUCTURAL MUST ( cn $ oncRpcNumber $ description ) M
|
102
|
+
AY description )
|
103
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.6 NAME 'ipHost' DESC 'Abstraction of a ho
|
104
|
+
st, an IP device' SUP top AUXILIARY MUST ( cn $ ipHostNumber ) MAY ( l $ desc
|
105
|
+
ription $ manager ) )
|
106
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork' DESC 'Abstraction of a
|
107
|
+
n IP network' SUP top STRUCTURAL MUST ( cn $ ipNetworkNumber ) MAY ( ipNetmas
|
108
|
+
kNumber $ l $ description $ manager ) )
|
109
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.8 NAME 'nisNetgroup' DESC 'Abstraction of
|
110
|
+
a netgroup' SUP top STRUCTURAL MUST cn MAY ( nisNetgroupTriple $ memberNisNe
|
111
|
+
tgroup $ description ) )
|
112
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.9 NAME 'nisMap' DESC 'A generic abstracti
|
113
|
+
on of a NIS map' SUP top STRUCTURAL MUST nisMapName MAY description )
|
114
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.10 NAME 'nisObject' DESC 'An entry in a
|
115
|
+
NIS map' SUP top STRUCTURAL MUST ( cn $ nisMapEntry $ nisMapName ) MAY descri
|
116
|
+
ption )
|
117
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device' DESC 'A device w
|
118
|
+
ith a MAC address' SUP top AUXILIARY MAY macAddress )
|
119
|
+
olcObjectClasses: ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice' DESC 'A device
|
120
|
+
with boot parameters' SUP top AUXILIARY MAY ( bootFile $ bootParameter ) )
|