Advertisement
sjnewman

login problem

Jan 15th, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.77 KB | None | 0 0
  1. Cobbler 2.4.0.1 on RHEL 6.5
  2.  
  3. The cobbler web interface rejects my login via LDAP.
  4.  
  5. Snippet of the cobbler log:
  6.  
  7. Wed Jan 15 19:27:33 2014 - DEBUG | REMOTE expiring token; user(<DIRECT>)
  8. Wed Jan 15 19:27:33 2014 - INFO | REMOTE invalid token; user(???)
  9. Wed Jan 15 19:27:43 2014 - INFO | Exception occurred: <type 'exceptions.IOError'>
  10. Wed Jan 15 19:27:43 2014 - INFO | Exception value: [Errno 9] Bad file descriptor
  11. Wed Jan 15 19:27:43 2014 - INFO | Exception Info:
  12. File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 2049, in _dispatch
  13. return method_handle(*params)
  14. File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1840, in login
  15. if self.__validate_user(login_user,login_password):
  16. File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1737, in __validate_user
  17. return self.api.authenticate(input_user,input_password)
  18. File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 1012, in authenticate
  19. rc = self.authn.authenticate(self,user,password)
  20. File "/usr/lib/python2.6/site-packages/cobbler/modules/authn_ldap.py", line 104, in authenticate
  21. traceback.print_exc()
  22. File "/usr/lib64/python2.6/traceback.py", line 233, in print_exc
  23. print_exception(etype, value, tb, limit, file)
  24. File "/usr/lib64/python2.6/traceback.py", line 124, in print_exception
  25. _print(file, 'Traceback (most recent call last):')
  26. File "/usr/lib64/python2.6/traceback.py", line 13, in _print
  27. file.write(str+terminator)
  28.  
  29.  
  30. The settings are:
  31.  
  32. ---
  33. # cobbler settings file
  34. # restart cobblerd and run "cobbler sync" after making changes
  35. # This config file is in YAML 1.0 format
  36. # see http://yaml.org
  37. # ==========================================================
  38. # if 1, cobbler will allow insertions of system records that duplicate
  39. # the --dns-name information of other system records. In general,
  40. # this is undesirable and should be left 0.
  41. allow_duplicate_hostnames: 0
  42.  
  43. # if 1, cobbler will allow insertions of system records that duplicate
  44. # the ip address information of other system records. In general,
  45. # this is undesirable and should be left 0.
  46. allow_duplicate_ips: 0
  47.  
  48. # if 1, cobbler will allow insertions of system records that duplicate
  49. # the mac address information of other system records. In general,
  50. # this is undesirable.
  51. allow_duplicate_macs: 0
  52.  
  53. # if 1, cobbler will allow settings to be changed dynamically without
  54. # a restart of the cobblerd daemon. You can only change this variable
  55. # by manually editing the settings file, and you MUST restart cobblerd
  56. # after changing it.
  57. allow_dynamic_settings: 1
  58.  
  59. # by default, installs are *not* set to send installation logs to the cobbler
  60. # # # server. With 'anamon_enabled', kickstart templates may use the pre_anamon
  61. # # # snippet to allow remote live monitoring of their installations from the
  62. # # # cobbler server. Installation logs will be stored under
  63. # # # /var/log/cobbler/anamon/. NOTE: This does allow an xmlrpc call to send logs
  64. # # # to this directory, without authentication, so enable only if you are
  65. # # # ok with this limitation.
  66. anamon_enabled: 0
  67.  
  68. # If using authn_pam in the modules.conf, this can be configured
  69. # to change the PAM service authentication will be tested against.
  70. # The default value is "login".
  71. authn_pam_service: "login"
  72.  
  73. # Email out a report when cobbler finishes installing a system.
  74. # enabled: set to 1 to turn this feature on
  75. # sender: optional
  76. # email: which addresses to email
  77. # smtp_server: used to specify another server for an MTA
  78. # subject: use the default subject unless overridden
  79. build_reporting_enabled: 0
  80. build_reporting_sender: ""
  81. build_reporting_email: [ 'root@gs-444-e10285-t' ]
  82. build_reporting_smtp_server: "gs-444-e10285-t"
  83. build_reporting_subject: ""
  84.  
  85. # Cheetah-language kickstart templates can import Python modules.
  86. # while this is a useful feature, it is not safe to allow them to
  87. # import anything they want. This whitelists which modules can be
  88. # imported through Cheetah. Users can expand this as needed but
  89. # should never allow modules such as subprocess or those that
  90. # allow access to the filesystem as Cheetah templates are evaluated
  91. # by cobblerd as code.
  92. cheetah_import_whitelist:
  93. - "random"
  94. - "re"
  95. - "time"
  96.  
  97. # Default createrepo_flags to use for new repositories. If you have
  98. # createrepo >= 0.4.10, consider "-c cache --update -C", which can
  99. # dramatically improve your "cobbler reposync" time. "-s sha"
  100. # enables working with Fedora repos from F11/F12 from EL-4 or
  101. # EL-5 without python-hashlib installed (which is not available
  102. # on EL-4)
  103. createrepo_flags: "-c cache -s sha"
  104.  
  105. # if no kickstart is specified to profile add, use this template
  106. default_kickstart: /var/lib/cobbler/kickstarts/default.ks
  107.  
  108. # configure all installed systems to use these nameservers by default
  109. # unless defined differently in the profile. For DHCP configurations
  110. # you probably do /not/ want to supply this.
  111. default_name_servers: []
  112.  
  113. # if using the authz_ownership module (see the Wiki), objects
  114. # created without specifying an owner are assigned to this
  115. # owner and/or group. Can be a comma seperated list.
  116. default_ownership:
  117. - "admin"
  118.  
  119. # cobbler has various sample kickstart templates stored
  120. # in /var/lib/cobbler/kickstarts/. This controls
  121. # what install (root) password is set up for those
  122. # systems that reference this variable. The factory
  123. # default is "cobbler" and cobbler check will warn if
  124. # this is not changed.
  125. # The simplest way to change the password is to run
  126. # openssl passwd -1
  127. # and put the output between the "" below.
  128. default_password_crypted:
  129.  
  130. # the default template type to use in the absence of any
  131. # other detected template. If you do not specify the template
  132. # with '#template=<template_type>' on the first line of your
  133. # templates/snippets, cobbler will assume try to use the
  134. # following template engine to parse the templates.
  135. #
  136. # Current valid values are: cheetah, jinja2
  137. default_template_type: "cheetah"
  138.  
  139. # for libvirt based installs in koan, if no virt bridge
  140. # is specified, which bridge do we try? For EL 4/5 hosts
  141. # this should be xenbr0, for all versions of Fedora, try
  142. # "virbr0". This can be overriden on a per-profile
  143. # basis or at the koan command line though this saves
  144. # typing to just set it here to the most common option.
  145. default_virt_bridge: xenbr0
  146.  
  147. # use this as the default disk size for virt guests (GB)
  148. default_virt_file_size: 5
  149.  
  150. # use this as the default memory size for virt guests (MB)
  151. default_virt_ram: 512
  152.  
  153. # if koan is invoked without --virt-type and no virt-type
  154. # is set on the profile/system, what virtualization type
  155. # should be assumed? Values: xenpv, xenfv, qemu, vmware
  156. # (NOTE: this does not change what virt_type is chosen by import)
  157. default_virt_type: xenpv
  158.  
  159. # enable gPXE booting? Enabling this option will cause cobbler
  160. # to copy the undionly.kpxe file to the tftp root directory,
  161. # and if a profile/system is configured to boot via gpxe it will
  162. # chain load off pxelinux.0.
  163. # Default: 0
  164. enable_gpxe: 0
  165.  
  166. # controls whether cobbler will add each new profile entry to the default
  167. # PXE boot menu. This can be over-ridden on a per-profile
  168. # basis when adding/editing profiles with --enable-menu=0/1. Users
  169. # should ordinarily leave this setting enabled unless they are concerned
  170. # with accidental reinstalls from users who select an entry at the PXE
  171. # boot menu. Adding a password to the boot menus templates
  172. # may also be a good solution to prevent unwanted reinstallations
  173. enable_menu: 1
  174.  
  175. # enable Func-integration? This makes sure each installed machine is set up
  176. # to use func out of the box, which is a powerful way to script and control
  177. # remote machines.
  178. # Func lives at http://fedorahosted.org/func
  179. # read more at https://github.com/cobbler/cobbler/wiki/Func-integration
  180. # you will need to mirror Fedora/EPEL packages for this feature, so see
  181. # https://github.com/cobbler/cobbler/wiki/Manage-yum-repos if you want cobbler
  182. # to help you with this
  183. func_auto_setup: 0
  184. func_master: overlord.example.org
  185.  
  186. # change this port if Apache is not running plaintext on port
  187. # 80. Most people can leave this alone.
  188. http_port: 80
  189.  
  190. # kernel options that should be present in every cobbler installation.
  191. # kernel options can also be applied at the distro/profile/system
  192. # level.
  193. kernel_options:
  194. ksdevice: bootif
  195. lang: ' '
  196. text: ~
  197.  
  198. # s390 systems require additional kernel options in addition to the
  199. # above defaults
  200. kernel_options_s390x:
  201. RUNKS: 1
  202. ramdisk_size: 40000
  203. root: /dev/ram0
  204. ro: ~
  205. ip: off
  206. vnc: ~
  207.  
  208. # configuration options if using the authn_ldap module. See the
  209. # the Wiki for details. This can be ignored if you are not using
  210. # LDAP for WebUI/XMLRPC authentication.
  211. ldap_server: "mercedes.nascom.nasa.gov svx.nascom.nasa.gov"
  212. ldap_base_dn: "DC=nascom,DC=nasa,DC=gov"
  213. ldap_port: 389
  214. ldap_tls: 1
  215. ldap_anonymous_bind: 1
  216. ldap_search_bind_dn: ''
  217. ldap_search_passwd: ''
  218. ldap_search_prefix: 'uid='
  219. ldap_tls_cacertfile: ''
  220. ldap_tls_keyfile: ''
  221. ldap_tls_certfile: ''
  222.  
  223. # cobbler has a feature that allows for integration with config management
  224. # systems such as Puppet. The following parameters work in conjunction with
  225. # --mgmt-classes and are described in furhter detail at:
  226. # https://github.com/cobbler/cobbler/wiki/Using-cobbler-with-a-configuration-management-system
  227. mgmt_classes: []
  228. mgmt_parameters:
  229. from_cobbler: 1
  230.  
  231. # if enabled, this setting ensures that puppet is installed during
  232. # machine provision, a client certificate is generated and a
  233. # certificate signing request is made with the puppet master server
  234. puppet_auto_setup: 0
  235.  
  236. # when puppet starts on a system after installation it needs to have
  237. # its certificate signed by the puppet master server. Enabling the
  238. # following feature will ensure that the puppet server signs the
  239. # certificate after installation if the puppet master server is
  240. # running on the same machine as cobbler. This requires
  241. # puppet_auto_setup above to be enabled
  242. sign_puppet_certs_automatically: 0
  243.  
  244. # location of the puppet executable, used for revoking certificates
  245. puppetca_path: "/usr/bin/puppet"
  246.  
  247. # when a puppet managed machine is reinstalled it is necessary to
  248. # remove the puppet certificate from the puppet master server before a
  249. # new certificate is signed (see above). Enabling the following
  250. # feature will ensure that the certificate for the machine to be
  251. # installed is removed from the puppet master server if the puppet
  252. # master server is running on the same machine as cobbler. This
  253. # requires puppet_auto_setup above to be enabled
  254. remove_old_puppet_certs_automatically: 0
  255.  
  256. # choose a --server argument when running puppetd/puppet agent during kickstart
  257. #puppet_server: 'puppet'
  258.  
  259. # let cobbler know that you're using a newer version of puppet
  260. # choose version 3 to use: 'puppet agent'; version 2 uses status quo: 'puppetd'
  261. #puppet_version: 2
  262.  
  263. # choose whether to enable puppet parameterized classes or not.
  264. # puppet versions prior to 2.6.5 do not support parameters
  265. #puppet_parameterized_classes: 1
  266.  
  267. # set to 1 to enable Cobbler's DHCP management features.
  268. # the choice of DHCP management engine is in /etc/cobbler/modules.conf
  269. manage_dhcp: 1
  270.  
  271. # set to 1 to enable Cobbler's DNS management features.
  272. # the choice of DNS mangement engine is in /etc/cobbler/modules.conf
  273. manage_dns: 0
  274.  
  275. # set to path of bind chroot to create bind-chroot compatible bind
  276. # configuration files. This should be automatically detected.
  277. bind_chroot_path: ""
  278.  
  279. # set to the ip address of the master bind DNS server for creating secondary
  280. # bind configuration files
  281. bind_master: 127.0.0.1
  282.  
  283. # set to 1 to enable Cobbler's TFTP management features.
  284. # the choice of TFTP mangement engine is in /etc/cobbler/modules.conf
  285. manage_tftpd: 1
  286.  
  287. # set to 1 to enable Cobbler's RSYNC management features.
  288. manage_rsync: 0
  289.  
  290. # if using BIND (named) for DNS management in /etc/cobbler/modules.conf
  291. # and manage_dns is enabled (above), this lists which zones are managed
  292. # See the Wiki (https://github.com/cobbler/cobbler/wiki/Dns-management) for more info
  293. manage_forward_zones: []
  294. manage_reverse_zones: []
  295.  
  296. # if using cobbler with manage_dhcp, put the IP address
  297. # of the cobbler server here so that PXE booting guests can find it
  298. # if you do not set this correctly, this will be manifested in TFTP open timeouts.
  299. next_server: 192.168.10.99
  300.  
  301. # settings for power management features. optional.
  302. # see https://github.com/cobbler/cobbler/wiki/Power-management to learn more
  303. # choices (refer to codes.py):
  304. # apc_snmp bladecenter bullpap drac ether_wake ilo integrity
  305. # ipmilan ipmitool lpar rsa virsh wti
  306. power_management_default_type: 'ipmitool'
  307.  
  308. # the commands used by the power management module are sourced
  309. # from what directory?
  310. power_template_dir: "/etc/cobbler/power"
  311.  
  312. # if this setting is set to 1, cobbler systems that pxe boot
  313. # will request at the end of their installation to toggle the
  314. # --netboot-enabled record in the cobbler system record. This eliminates
  315. # the potential for a PXE boot loop if the system is set to PXE
  316. # first in it's BIOS order. Enable this if PXE is first in your BIOS
  317. # boot order, otherwise leave this disabled. See the manpage
  318. # for --netboot-enabled.
  319. pxe_just_once: 1
  320.  
  321. # the templates used for PXE config generation are sourced
  322. # from what directory?
  323. pxe_template_dir: "/etc/cobbler/pxe"
  324.  
  325. # Path to where system consoles are
  326. consoles: "/var/consoles"
  327.  
  328. # Are you using a Red Hat management platform in addition to Cobbler?
  329. # Cobbler can help you register to it. Choose one of the following:
  330. # "off" : I'm not using Red Hat Network, Satellite, or Spacewalk
  331. # "hosted" : I'm using Red Hat Network
  332. # "site" : I'm using Red Hat Satellite Server or Spacewalk
  333. # You will also want to read: https://github.com/cobbler/cobbler/wiki/Tips-for-RHN
  334. redhat_management_type: "off"
  335.  
  336. # if redhat_management_type is enabled, choose your server
  337. # "management.example.org" : For Satellite or Spacewalk
  338. # "xmlrpc.rhn.redhat.com" : For Red Hat Network
  339. # This setting is also used by the code that supports using Spacewalk/Satellite users/passwords
  340. # within Cobbler Web and Cobbler XMLRPC. Using RHN Hosted for this is not supported.
  341. # This feature can be used even if redhat_management_type is off, you just have
  342. # to have authn_spacewalk selected in modules.conf
  343. redhat_management_server: "xmlrpc.rhn.redhat.com"
  344.  
  345. # specify the default Red Hat authorization key to use to register
  346. # system. If left blank, no registration will be attempted. Similarly
  347. # you can set the --redhat-management-key to blank on any system to
  348. # keep it from trying to register.
  349. redhat_management_key: ""
  350.  
  351. # if using authn_spacewalk in modules.conf to let cobbler authenticate
  352. # against Satellite/Spacewalk's auth system, by default it will not allow per user
  353. # access into Cobbler Web and Cobbler XMLRPC.
  354. # in order to permit this, the following setting must be enabled HOWEVER
  355. # doing so will permit all Spacewalk/Satellite users of certain types to edit all
  356. # of cobbler's configuration.
  357. # these roles are: config_admin and org_admin
  358. # users should turn this on only if they want this behavior and
  359. # do not have a cross-multi-org seperation concern. If you have
  360. # a single org in your satellite, it's probably safe to turn this
  361. # on and then you can use CobblerWeb alongside a Satellite install.
  362. redhat_management_permissive: 0
  363.  
  364. # if set to 1, allows /usr/bin/cobbler-register (part of the koan package)
  365. # to be used to remotely add new cobbler system records to cobbler.
  366. # this effectively allows for registration of new hardware from system
  367. # records.
  368. register_new_installs: 0
  369.  
  370. # Flags to use for yum's reposync. If your version of yum reposync
  371. # does not support -l, you may need to remove that option.
  372. reposync_flags: "-l -n -d"
  373.  
  374. # These options will be used for an rsync initiated by cobbler replicate
  375. replicate_rsync_options: "-avzH"
  376.  
  377. # when DHCP and DNS management are enabled, cobbler sync can automatically
  378. # restart those services to apply changes. The exception for this is
  379. # if using ISC for DHCP, then omapi eliminates the need for a restart.
  380. # omapi, however, is experimental and not recommended for most configurations.
  381. # If DHCP and DNS are going to be managed, but hosted on a box that
  382. # is not on this server, disable restarts here and write some other
  383. # script to ensure that the config files get copied/rsynced to the destination
  384. # box. This can be done by modifying the restart services trigger.
  385. # Note that if manage_dhcp and manage_dns are disabled, the respective
  386. # parameter will have no effect. Most users should not need to change
  387. # this.
  388. restart_dns: 1
  389. restart_dhcp: 1
  390.  
  391. # install triggers are scripts in /var/lib/cobbler/triggers/install
  392. # that are triggered in kickstart pre and post sections. Any
  393. # executable script in those directories is run. They can be used
  394. # to send email or perform other actions. They are currently
  395. # run as root so if you do not need this functionality you can
  396. # disable it, though this will also disable "cobbler status" which
  397. # uses a logging trigger to audit install progress.
  398. run_install_triggers: 1
  399.  
  400. # enables a trigger which version controls all changes to /var/lib/cobbler
  401. # when add, edit, or sync events are performed. This can be used
  402. # to revert to previous database versions, generate RSS feeds, or for
  403. # other auditing or backup purposes. "git" and "hg" are currently suported,
  404. # but git is the recommend SCM for use with this feature.
  405. scm_track_enabled: 0
  406. scm_track_mode: "git"
  407.  
  408. # this is the address of the cobbler server -- as it is used
  409. # by systems during the install process, it must be the address
  410. # or hostname of the system as those systems can see the server.
  411. # if you have a server that appears differently to different subnets
  412. # (dual homed, etc), you need to read the --server-override section
  413. # of the manpage for how that works.
  414. server: 192.168.10.99
  415.  
  416. # If set to 1, all commands will be forced to use the localhost address
  417. # instead of using the above value which can force commands like
  418. # cobbler sync to open a connection to a remote address if one is in the
  419. # configuration and would traceback.
  420. client_use_localhost: 0
  421.  
  422. # If set to 1, all commands to the API (not directly to the XMLRPC
  423. # server) will go over HTTPS instead of plaintext. Be sure to change
  424. # the http_port setting to the correct value for the web server
  425. client_use_https: 0
  426.  
  427. # this is a directory of files that cobbler uses to make
  428. # templating easier. See the Wiki for more information. Changing
  429. # this directory should not be required.
  430. snippetsdir: /var/lib/cobbler/snippets
  431.  
  432. # Normally if a kickstart is specified at a remote location, this
  433. # URL will be passed directly to the kickstarting system, thus bypassing
  434. # the usual snippet templating Cobbler does for local kickstart files. If
  435. # this option is enabled, Cobbler will fetch the file contents internally
  436. # and serve a templated version of the file to the client.
  437. template_remote_kickstarts: 0
  438.  
  439. # should new profiles for virtual machines default to auto booting with the physical host when the physical host reboots?
  440. # this can be overridden on each profile or system object.
  441. virt_auto_boot: 1
  442.  
  443. # cobbler's web directory. Don't change this setting -- see the
  444. # Wiki on "relocating your cobbler install" if your /var partition
  445. # is not large enough.
  446. webdir: /var/www/cobbler
  447.  
  448. # cobbler's public XMLRPC listens on this port. Change this only
  449. # if absolutely needed, as you'll have to start supplying a new
  450. # port option to koan if it is not the default.
  451. xmlrpc_port: 25151
  452.  
  453. # "cobbler repo add" commands set cobbler up with repository
  454. # information that can be used during kickstart and is automatically
  455. # set up in the cobbler kickstart templates. By default, these
  456. # are only available at install time. To make these repositories
  457. # usable on installed systems (since cobbler makes a very convient)
  458. # mirror, set this to 1. Most users can safely set this to 1. Users
  459. # who have a dual homed cobbler server, or are installing laptops that
  460. # will not always have access to the cobbler server may wish to leave
  461. # this as 0. In that case, the cobbler mirrored yum repos are still
  462. # accessable at http://cobbler.example.org/cblr/repo_mirror and yum
  463. # configuration can still be done manually. This is just a shortcut.
  464. yum_post_install_mirror: 1
  465.  
  466. # the default yum priority for all the distros. This is only used
  467. # if yum-priorities plugin is used. 1=maximum. Tweak with caution.
  468. yum_distro_priority: 1
  469.  
  470. # Flags to use for yumdownloader. Not all versions may support
  471. # --resolve.
  472. yumdownloader_flags: "--resolve"
  473.  
  474. # sort and indent JSON output to make it more human-readable
  475. serializer_pretty_json: 1
  476.  
  477. # replication rsync options for distros, kickstarts, snippets set to override default value of "-avzH"
  478. replicate_rsync_options: "-avzH"
  479.  
  480. # replication rsync options for repos set to override default value of "-avzH"
  481. replicate_repo_rsync_options: "-avzH"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement