Unable to find module....

Bryan Graham bryan at cs.tamu.edu
Tue Apr 7 17:07:42 CEST 2009


  Bryan Graham wrote:  >> /opt/csg/etc/raddb/sites-enabled/default[198]: 
Failed to find module >> "attr_rewrite". >> 
/opt/csg/etc/raddb/sites-enabled/default[62]: Errors parsing authorize 
 >> section.

Alan DeKok wrote:
>  That message is produced when the module doesn't exist, OR when it has
>failed to initialize properly.
>
>  e.g. There is an error in it's configuration, or in the files that it
>is reading.  The error WILL be printed just above the lines you quoted.
>
>  Alan DeKok.

Well, I didn't want to include the whole thing, because it's long, but here goes:

/opt/csg/sbin/radiusd -X
FreeRADIUS Version 2.1.5, for host sparc-sun-solaris2.10, built on Mar 10 2009 at 15:36:40
Copyright (C) 1999-2008 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
Starting - reading configuration files ...
including configuration file /opt/csg/etc/raddb/radiusd.conf
including configuration file /opt/csg/etc/raddb/clients.conf
including files in directory /opt/csg/etc/raddb/modules/
including configuration file /opt/csg/etc/raddb/modules/acct_unique
including configuration file /opt/csg/etc/raddb/modules/always
including configuration file /opt/csg/etc/raddb/modules/attr_filter
including configuration file /opt/csg/etc/raddb/modules/attr_rewrite
including configuration file /opt/csg/etc/raddb/modules/chap
including configuration file /opt/csg/etc/raddb/modules/checkval
including configuration file /opt/csg/etc/raddb/modules/counter
including configuration file /opt/csg/etc/raddb/modules/detail
including configuration file /opt/csg/etc/raddb/modules/detail.example.com
including configuration file /opt/csg/etc/raddb/modules/detail.log
including configuration file /opt/csg/etc/raddb/modules/digest
including configuration file /opt/csg/etc/raddb/modules/echo
including configuration file /opt/csg/etc/raddb/modules/etc_group
including configuration file /opt/csg/etc/raddb/modules/exec
including configuration file /opt/csg/etc/raddb/modules/expiration
including configuration file /opt/csg/etc/raddb/modules/expr
including configuration file /opt/csg/etc/raddb/modules/files
including configuration file /opt/csg/etc/raddb/modules/inner-eap
including configuration file /opt/csg/etc/raddb/modules/ippool
including configuration file /opt/csg/etc/raddb/modules/krb5
including configuration file /opt/csg/etc/raddb/modules/ldap
including configuration file /opt/csg/etc/raddb/modules/linelog
including configuration file /opt/csg/etc/raddb/modules/logintime
including configuration file /opt/csg/etc/raddb/modules/mac2ip
including configuration file /opt/csg/etc/raddb/modules/mac2vlan
including configuration file /opt/csg/etc/raddb/modules/otp
including configuration file /opt/csg/etc/raddb/modules/mschap
including configuration file /opt/csg/etc/raddb/modules/pam
including configuration file /opt/csg/etc/raddb/modules/pap
including configuration file /opt/csg/etc/raddb/modules/passwd
including configuration file /opt/csg/etc/raddb/modules/perl
including configuration file /opt/csg/etc/raddb/modules/policy
including configuration file /opt/csg/etc/raddb/modules/preprocess
including configuration file /opt/csg/etc/raddb/modules/radutmp
including configuration file /opt/csg/etc/raddb/modules/realm
including configuration file /opt/csg/etc/raddb/modules/smbpasswd
including configuration file /opt/csg/etc/raddb/modules/smsotp
including configuration file /opt/csg/etc/raddb/modules/sql_log
including configuration file /opt/csg/etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /opt/csg/etc/raddb/modules/sradutmp
including configuration file /opt/csg/etc/raddb/modules/unix
including configuration file /opt/csg/etc/raddb/modules/wimax
including configuration file /opt/csg/etc/raddb/policy.conf
including files in directory /opt/csg/etc/raddb/sites-enabled/
including configuration file /opt/csg/etc/raddb/sites-enabled/default
including dictionary file /opt/csg/etc/raddb/dictionary
main {
        prefix = "/opt/csg"
        localstatedir = "/opt/csg/var"
        logdir = "/opt/csg/var/log/radius"
        libdir = "/opt/csg/lib"
        radacctdir = "/opt/csg/var/log/radius/radacct"
        hostname_lookups = no
        max_request_time = 30
        cleanup_delay = 5
        max_requests = 1024
        allow_core_dumps = no
        pidfile = "/opt/csg/var/run/radiusd/radiusd.pid"
        checkrad = "/opt/csg/sbin/checkrad"
        debug_level = 0
        proxy_requests = no
 log {
        stripped_names = no
        auth = yes
        auth_badpass = no
        auth_goodpass = no
 } 
 security {
        max_attributes = 200
        reject_delay = 1
        status_server = yes
 } 
}  
radiusd: #### Loading Realms and Home Servers ####
radiusd: #### Loading Clients ####
 client localhost {
        ipaddr = xxx.xxx.xxx.xxx
        require_message_authenticator = no
        secret = "ihatetesting"
        shortname = "localhost"
        nastype = "other"
 } 
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_exec
 Module: Instantiating exec
  exec {
        wait = no
        input_pairs = "request"
        shell_escape = yes
  }
 Module: Linked to module rlm_expr
 Module: Instantiating expr
 Module: Linked to module rlm_expiration
 Module: Instantiating expiration
  expiration {
        reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating logintime
  logintime {
        reply-message = "You are calling outside your allowed timespan  "
        minimum-timeout = 60
  }
 } 
radiusd: #### Loading Virtual Servers ####
 modules {
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_krb5
 Module: Instantiating krb5
  krb5 {
        keytab = "/opt/csg/etc/raddb/radius.keytab"
        service_principal = "admin/radius"
  }
rlm_krb5: krb5_init ok
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating preprocess
  preprocess {
        huntgroups = "/opt/csg/etc/raddb/huntgroups"
        hints = "/opt/csg/etc/raddb/hints"
        with_ascend_hack = no
        ascend_channels_per_line = 23
        with_ntdomain_hack = no
        with_specialix_jetstream_hack = no
        with_cisco_vsa_hack = no
        with_alvarion_vsa_hack = no
  }
 Module: Linked to module rlm_files
 Module: Instantiating files
  files {
        usersfile = "/opt/csg/etc/raddb/users"
        acctusersfile = "/opt/csg/etc/raddb/acct_users"
        preproxy_usersfile = "/opt/csg/etc/raddb/preproxy_users"
        compat = "no"
  }
 Module: Linked to module rlm_ldap
 Module: Instantiating ldap
  ldap {
        server = "ldap.somedomain.com"
        port = 389
        password = "AequieCi8"
        identity = "cn=radius,ou=Special,dc=cs,dc=tamu,dc=edu"
        net_timeout = 1
        timeout = 4
        timelimit = 3
        tls_mode = no
        start_tls = no
        tls_require_cert = "allow"
   tls {
        start_tls = yes
        require_cert = "allow"
   }
        basedn = "ou=People,dc=cs,dc=tamu,dc=edu"
        filter = "(uid=%{%{Callback-Number}:-%{User-Name}})"
        base_filter = "(objectclass=radiusprofile)"
        auto_header = no
        access_attr_used_for_allow = yes
        groupname_attribute = "cn"
        groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
        dictionary_mapping = "/opt/csg/etc/raddb/ldap.attrmap"
        ldap_debug = 0
        ldap_connections_number = 5
        compare_check_items = no
        do_xlat = yes
        set_auth_type = no
  }
rlm_ldap: Registering ldap_groupcmp for Ldap-Group
rlm_ldap: Registering ldap_xlat with xlat_name ldap
rlm_ldap: reading ldap<->radius mappings from file /opt/csg/etc/raddb/ldap.attrmap
rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use
rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
rlm_ldap: LDAP radiusNASIpAddress mapped to RADIUS NAS-IP-Address
rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
rlm_ldap: LDAP radiusClass mapped to RADIUS Class
rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link
rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network
rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone
rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
conns: 87848
/opt/csg/etc/raddb/sites-enabled/default[198]: Failed to find module "attr_rewrite".
/opt/csg/etc/raddb/sites-enabled/default[62]: Errors parsing authorize section.
 } 
Errors initializing modules


That's my radiusd output, and I don't see anything about attr_rewrite at all.  In addition, here's the contents of some of my lib dir (the whole thing is long):

[root]@radius /opt/csg/lib> (08:03:07 04/07/09)
:: ls rlm_attr*
rlm_attr_filter-2.1.5.la  rlm_attr_filter.a   rlm_attr_filter.so         rlm_attr_rewrite-2.1.5.so  rlm_attr_rewrite.la
rlm_attr_filter-2.1.5.so  rlm_attr_filter.la  rlm_attr_rewrite-2.1.5.la  rlm_attr_rewrite.a         rlm_attr_rewrite.so

This is the same dir were rlm_ldap and rlm_krb5 (successfully loaded) all reside as well, so you can understand my confusion.

thanks,
Bryan Graham




More information about the Freeradius-Users mailing list