lib/generators/adauth/config/templates/config.rb.erb in adauth-1.2.1 vs lib/generators/adauth/config/templates/config.rb.erb in adauth-2.0.0pre
- old
+ new
@@ -3,55 +3,51 @@
#
# This is usually my_company.com or my_company.local
#
# If you don't know your domain contact your IT support,
# it will be the DNS suffix applied to your machines
- c.domain = "example.com"
-
+ c.domain = "example.com"
+
+ # Adauth needs a query user to interact with the domain.
+ # This user can be anything with domain access
+ #
+ # If Adauth doesn't work contact your IT support and make sure this account has full query access
+ c.query_user = "username"
+ c.query_password = "password"
+
# The IP address or Hostname of a DC (Domain Controller) on your network
#
# This could be anything and probably wont be 127.0.0.1
#
# Again contact your IT Support if you can't work this out
c.server = "127.0.0.1"
-
+
# The LDAP base of your domain/intended users
#
# For all users in your domain the base would be:
# dc=example, dc=com
# OUs can be prepeneded to restrict access to your app
c.base = "dc=example, dc=com"
-
+
# The port isn't always needed as Adauth defaults to 389 the LDAP Port
#
# If your DC is on the other side of a firewall you may need to change the port
+ # If your DC is using SSL, the port may be 636.
#c.port = 389
-
+
+ # If your DC is using SSL, set encryption to :simple_tls
+ #c.encryption = :simple_tls
+
# Windows Security groups to allow
#
# Only allow members of set windows security groups to login
- #
+ #
# Takes an array for group names
#c.allowed_groups = ["Group1", "Group2"]
-
+
# Windows Security groups to deny
#
# Only allow users who aren't in these groups to login
#
# Takes an array for group names
#c.denied_groups = ["Group1", "Group2"]
-
- # Additional single attributes to fetch
- #
- # Single Values to fetch from Active Directory for example phone number
- #
- # Takes a hash in the form { :method_on_Adauth::User => :field_in_ad }
- #c.ad_sv_attrs = { :phone => :telephonenumber }
-
- # Additional multi attributes to fetch
- #
- # Multiple Values to fetch from Active Directory
- #
- # Takes a hash in the form { :method_on_Adauth::User => [ :field_in_ad, Proc.new { |g| operations_to_turn_field_into_array } ] }
- # Example os for groups (already provided)
- #c.ad_mv_attrs(:groups => [ :memberof, Proc.new {|g| g.sub(/.*?CN=(.*?),.*/, '\1')} ])
end
\ No newline at end of file