Set an ip unnumbered from radius

Hi all,
I was reading a lot documentation and testing a lot of scenarios but i can not set template configuration from RADIUS…
This it my configuration,
aaa new-model
aaa authentication login admin local
aaa authentication ppp default local group radius
aaa authorization template
aaa authorization network default group radius local
aaa accounting delay-start
aaa accounting update newinfo
aaa accounting network default start-stop group radius
bba-group pppoe pruebavrf
virtual-template 33
sessions per-mac limit 48
sessions per-vlan limit 1400
interface Loopback10
ip address 192.168.44.1 255.255.255.0
interface FastEthernet0/0.8
description PRUEBAS
encapsulation dot1Q 8
pppoe enable group pruebavrf
interface Virtual-Template33
no ip address
no ip redirects
no ip unreachables
ip mtu 1480
ip tcp adjust-mss 1400
peer default ip address pool pool_local
ppp authentication pap chap
radius-server attribute 44 extend-with-addr
radius-server attribute 8 include-in-access-req
radius-server attribute nas-port format d
radius-server configure-nas
radius-server host X.X.X.X auth-port 1812 acct-port 1813 key xxxx
radius-server retransmit 2
radius-server timeout 6
radius-server vsa send accounting
radius-server vsa send authentication
ip local pool pool_local x.x.x.x
And this is RADIUS configuration
testvdsl@knetip Auth-Type := local, User-Password == "xxxx"
Service-Type = Framed-User,
cisco-avpair += "template:ip-unnumbered=Loopback 10",
Framed-Protocol = PPP
I think that with this configuration virtual-access would be take the ip of Loopback 10 as unnumbered but doesn't work.
Router#sh int Vi2.1
Virtual-Access2.1 is up, line protocol is up
Hardware is Virtual Access interface
MTU 1492 bytes, BW 100000 Kbit/sec, DLY 100000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation PPP, LCP Open
PPPoE vaccess, cloned from Virtual-Template33
Vaccess status 0x0
Keepalive set (10 sec)
128 packets input, 1803 bytes
128 packets output, 1799 bytes
Last clearing of "show interface" counters never
This is the RADIUS debug,
.Nov 10 12:38:42: RADIUS(000E4E19): Send Access-Request to x.x.x.x:1812 id 1645/79, len 135
.Nov 10 12:38:42: RADIUS: authenticator 3C 22 8C 1E AE 21 20 82 - B9 58 57 E3 16 6D C9 8B
.Nov 10 12:38:42: RADIUS: Vendor, Cisco [26] 41
.Nov 10 12:38:42: RADIUS: Cisco AVpair [1] 35 "client-mac-address=xxxx"
.Nov 10 12:38:42: RADIUS: Framed-Protocol [7] 6 PPP [1]
.Nov 10 12:38:42: RADIUS: User-Name [1] 17 "testvdsl@knetip"
.Nov 10 12:38:42: RADIUS: User-Password [2] 18 *
.Nov 10 12:38:42: RADIUS: NAS-Port-Type [61] 6 Ethernet [15]
.Nov 10 12:38:42: RADIUS: NAS-Port [5] 6 8
.Nov 10 12:38:42: RADIUS: NAS-Port-Id [87] 9 "0/0/0/8"
.Nov 10 12:38:42: RADIUS: Service-Type [6] 6 Framed [2]
.Nov 10 12:38:42: RADIUS: NAS-IP-Address [4] 6 x.x.x.x
.Nov 10 12:38:42: RADIUS: Received from id 1645/79 x.x.x.x:1812, Access-Accept, len 74
.Nov 10 12:38:42: RADIUS: authenticator E5 D8 63 D4 D5 EE EC C8 - F7 BB 4A B9 6A C8 60 F6
.Nov 10 12:38:42: RADIUS: Service-Type [6] 6 Framed [2]
.Nov 10 12:38:42: RADIUS: Vendor, Cisco [26] 42
.Nov 10 12:38:42: RADIUS: Cisco AVpair [1] 36 "template:ip-unnumbered=Loopback 10"
.Nov 10 12:38:42: RADIUS: Framed-Protocol [7] 6 PPP [1]
.Nov 10 12:38:42: RADIUS(000E4E19): Received from id 1645/79
Somebody can help me?
Thank you in advance.

Hi,
I'll try to guide you through this though I'm not sure of all the words in English...Well you see, I had just the same problem as you and tried about evertyhing. And I hopes someone would give you tje answer but they didn't so I almost gave up when I suddenly solved the problem.
What you do is this. Step by step. (On your mac-computer.) (Question-mark (?) means I'm not sure what the term is in Englis but I try to translate it word by word from Swedish)
1. Open your "Finder"
2. Click on "Programs"
3. Open the map called "tool-programs?"
4. Open the "Airport administration tools?" (It has the symbol of a roundshaped airport.)
5. Click on Setup. (In the upper left corner there are four different buttons. The third says Setup)
6. Enter the password for your basestation
7. Click on Password (the fourth button in the upper left corner with a lock as a symbol)
8. There you will have a HEX equivalent password (WEP-key) which you need for your PC.
Then you just type in this password on your PC-computer and you will soon be able to use the internet via your airport and the airtunes as well.
Good luck!
/Emanuel

Similar Messages

  • IP pool selection from RADIUS

    Hi,
    I'm trying to assign different ip addresses to each vpn client depending the group the belong to. To do so, I create three different pools locally to the router and configure the radius server to send the Cisco-AVPair=”ip:addr-pool=poolname”  attribute. The radius server is sending this attribute correctly but the router isn't using it. If I try with the Framed-IP-Address it works fine, but not for the pool.
    Here is the related router config:
    aaa new-model
    aaa authentication login RemoteUsers group radius
    aaa authorization network UsersGroup group radius
    aaa session-id common
    crypto isakmp policy 100
    encr aes 256
    authentication pre-share
    group 2
    crypto isakmp client configuration group Users
    key xxxx
    pool pool1
    acl UsersSplit
    crypto isakmp profile UsersProfile
       match identity group Users
       client authentication list RemoteUsers
       isakmp authorization list UsersGroup
       client configuration address respond
       virtual-template 1
    crypto ipsec transform-set Transf-Users esp-aes esp-sha-hmac
    mode transport
    crypto ipsec profile Prof-Users
    set transform-set Transf-Users
    set isakmp-profile UsersProfile
    ip local pool pool1 192.168.110.10 192.168.110.20
    ip local pool pool2 192.168.120.10 192.168.120.20
    ip local pool pool3 192.168.130.10 192.168.130.20
    Freeradius config:
    testuser Auth-Type := Local, User-Password == "testpass"
    Service-Type = Framed-User,
    Framed-Protocol = PPP,
    cisco-avpair = "ip:addr-pool=pool1",
    Without enabling authorization, testuser connects succesfully, but after I enable authorization to instruct the router to accept pool configuration, it automatically authenticate using the isakmp Users user, without asking for the real vpn testuser client and the connection fails.
    Is authorization essential? Using authentication I can assign ip addresses from Radius.
    I also used the Framed-IP-Pool value without success.
    What I'm missing?
    Thanks in advance.

    Hi Jatin,
    Thanks for your quick reply. Here is the new configuration and the debugs. I'm using IOS c890-universalk9-mz.152-1.T.bin and Cisco VPN client 5.0.07.0290 version.
    IOS Configuration with authorization and accounting enabled:
    aaa new-model
    aaa authentication login RemoteUsers group radius
    aaa authorization network UsersGroup group radius
    aaa accounting network default
    aaa session-id common
    IOS Debugs:
    Jun  4 21:20:46.133: AAA/BIND(00000010): Bind i/f
    Jun  4 21:20:46.149: AAA/AUTHOR (0x10): Pick method list 'UsersGroup'
    Jun  4 21:20:46.153: RADIUS/ENCODE(00000010):Orig. component type = VPN IPSEC
    Jun  4 21:20:46.153: RADIUS:  AAA Unsupported Attr: interface         [222] 11
    Jun  4 21:20:46.153: RADIUS:   31 30 2E 31 34 2E 31 34 2E         [ 10.14.14.]
    Jun  4 21:20:46.153: RADIUS(00000010): Config NAS IP: 0.0.0.0
    Jun  4 21:20:46.153: RADIUS(00000010): Config NAS IPv6: ::
    Jun  4 21:20:46.153: RADIUS/ENCODE(00000010): acct_session_id: 6
    Jun  4 21:20:46.153: RADIUS(00000010): sending
    Jun  4 21:20:46.153: RADIUS/ENCODE: Best Local IP-Address 10.14.14.30 for Radius-Server 10.14.14.17
    Jun  4 21:20:46.153: RADIUS(00000010): Send Access-Request to 10.14.14.17:1812 id 1645/4, len 98
    Jun  4 21:20:46.153: RADIUS:  authenticator 01 A1 34 BE 06 3D C2 C5 - 4F EE 98 D7 47 4D BF AB
    Jun  4 21:20:46.153: RADIUS:  User-Name           [1]   10  "Users"
    Jun  4 21:20:46.153: RADIUS:  User-Password       [2]   18  *
    Jun  4 21:20:46.153: RADIUS:  Calling-Station-Id  [31]  13  "10.14.14.17"
    Jun  4 21:20:46.153: RADIUS:  NAS-Port-Type       [61]  6   Virtual                   [5]
    Jun  4 21:20:46.153: RADIUS:  NAS-Port            [5]   6   0
    ruc#
    Jun  4 21:20:46.153: RADIUS:  NAS-Port-Id         [87]  13  "10.14.14.30"
    Jun  4 21:20:46.153: RADIUS:  Service-Type        [6]   6   Outbound                  [5]
    Jun  4 21:20:46.153: RADIUS:  NAS-IP-Address      [4]   6   10.14.14.30
    Jun  4 21:20:46.153: RADIUS(00000010): Sending a IPv4 Radius Packet
    Jun  4 21:20:46.153: RADIUS(00000010): Started 5 sec timeout
    ruc#
    Jun  4 21:20:48.205: RADIUS: Received from id 1645/4 10.14.14.17:1812, Access-Reject, len 20
    Jun  4 21:20:48.205: RADIUS:  authenticator 2A B6 91 42 DF 70 2B 89 - AF D5 59 82 31 3B EA 53
    Jun  4 21:20:48.205: RADIUS(00000010): Received from id 1645/4
    As you can see, the router authenticates automatically using the Users user configured under at the isakmp client configuration group. The VPN client software does not prompt for the real user account and fails. Why the router is not asking for the user? I was expecting the router performs authentication first and authorization later. Take a look at the FreeRadius debug:
    FreeRadius debug:
    Ready to process requests.
    rad_recv: Access-Request packet from host 10.14.14.30:1645, id=4, length=98
            User-Name = "Users"
            User-Password = "cisco"  <--Where does this password comes from?!
            Calling-Station-Id = "10.14.14.17"
            NAS-Port-Type = Virtual
            NAS-Port = 0
            NAS-Port-Id = "10.14.14.30"
            Service-Type = Dialout-Framed-User
            NAS-IP-Address = 10.14.14.30
      Processing the authorize section of radiusd.conf
    modcall: entering group authorize for request 0
      modcall[authorize]: module "preprocess" returns ok for request 0
    radius_xlat:  '../var/log/radius/radacct/10.14.14.30/auth-detail-20130604.log'
    rlm_detail: ../var/log/radius/radacct/%{Client-IP-Address}/auth-detail-%Y%m%d.lo
    g expands to ../var/log/radius/radacct/10.14.14.30/auth-detail-20130604.log
      modcall[authorize]: module "auth_log" returns ok for request 0
      modcall[authorize]: module "chap" returns noop for request 0
      modcall[authorize]: module "mschap" returns noop for request 0
        rlm_realm: No '@' in User-Name = "Users", looking up realm NULL
        rlm_realm: No such realm "NULL"
      modcall[authorize]: module "suffix" returns noop for request 0
      rlm_eap: No EAP-Message, not doing EAP
      modcall[authorize]: module "eap" returns noop for request 0
        users: Matched entry DEFAULT at line 188
      modcall[authorize]: module "files" returns ok for request 0
    rlm_pap: WARNING! No "known good" password found for the user.  Authentication m
    ay fail because of this.
      modcall[authorize]: module "pap" returns noop for request 0
    modcall: leaving group authorize (returns ok) for request 0
      rad_check_password:  Found Auth-Type System
    auth: type "System"
      ERROR: Unknown value specified for Auth-Type.  Cannot perform requested action
    auth: Failed to validate the user.
    Login incorrect: [Users/cisco] (from client vpnServer port 0 cli 10.14.14.17)
    Delaying request 0 for 1 seconds
    Finished request 0
    Going to the next request
    --- Walking the entire request list ---
    Waking up in 1 seconds...
    --- Walking the entire request list ---
    Waking up in 1 seconds...
    --- Walking the entire request list ---
    Sending Access-Reject of id 4 to 10.14.14.30 port 1645
    Waking up in 4 seconds...
    --- Walking the entire request list ---
    Cleaning up request 0 ID 4 with timestamp 51ae5a41
    Nothing to do.  Sleeping until we see a request.
    Any idea Jatin?

  • Dynamic VLAN-Assignment from RADIUS with Aironet 1242AG doesn't work properly

    Hello All,
    our setting is to assign VLANs dynamically from RADIUS (freeradius) to Clients connected to the 1242 Access-Points with one SSID. We have Firmware
    12.4(10b)JA/JDA on the Aironet 1242.
    The clients should be connected to one of three VLANs - one for staff, one for students and one for guests. I use the Web-Interface of
    the 1242, because I'm not very familiar with IOS cli.
    After assigning the first VLAN to the SSID -> click Accept, assigning the second VLAN to the SSID (overwriting the previous one) -> click Accept,
    assigning the third VLAN to SSID (overwriting again) -> click Accept,  the assignment of VLANs works really fine,
    (the only thing i change on the page is VLAN, the SSID is set to mandatory WPAv2)
    BUT...
    when the 1242 is rebooted (due a building power off or similar) it doesn't work anymore. Clients end up in an endless authentication loop.
    After doing the procedure again from above - assigning all VLANs sequently once, it works fine again !  till next reboot...
    All VLANs have same encryption, cypher, TKIP+AES CCM. On the Cisco-Site I found a command, which i also tried with no success:
    'aaa authorization network default group radius'.
    I also tried to save the working config and load it into the 1242 again, this also did not work.
    It seems that i'm doing something wrong, but what ?
    Thanks for some help,
    Frank

    All you really need to do is make sure the subinterfaces/vlans are created for each VLAN you need, then have radius push down IETF attributes 64, 65, and 81.

  • LNS to provide IP from Radius

    Hello:
    We currently use a 7301 router as an LNS and have it configured to use a local IP pool and dynamically assigns an IP address to connecting DSL modems.  We would like to start providing a static IP to a username that autheticates to a radius server. I was wondering what the LNS config should have to support receiving an IP address from the radius and not using the local pool on the router.  We want the LNS to take the IP address that radius would provide and send that to the dsl modem.
    If anyone could help with what config items are needed to support this I would appreciate it.  What we are seeing now is radius authenticates the user, sends the IP address in the FRAMED-IP but the LNS picks an IP address from the local pool and assigns it. Just wondering what we are missing here to make the 7301 assign the ip from radius.
    Thank you.
    aaa authentication ppp vpdn local group radius
    aaa authorization network vpdn group radius local
    aaa authorization configuration default group radius
    aaa accounting delay-start
    aaa accounting update periodic 5
    aaa accounting network default
    action-type start-stop
    group radius
    vpdn enable
    vpdn-group NAME-HERE
    ! Default L2TP VPDN group
    accept-dialin
      protocol l2tp
      virtual-template 1
    lcp renegotiation always
    l2tp tunnel password 7 XXXx
    l2tp tunnel framing capabilities all
    interface Virtual-Template1
    mtu 1492
    ip unnumbered Loopback0
    no ip redirects
    no ip unreachables
    no ip proxy-arp
    ip tcp adjust-mss 1392
    timeout absolute 1440 0
    peer default ip address pool dslpool
    ppp mtu adaptive
    ppp authentication pap vpdn
    ppp timeout idle 597600
    ip local pool dslpool x.x.x.x y.y.y.y

    Thank you for the suggestion.  I added debug radius and this is what was returned.  instead of the user getting the IP y.y.y.20 the next available IP in the DHCP local pool y.y.y.13 is assigned to the user instead. 
    Any other suggestions now that you are looking at ths output?
    Tor1-LNS1#test aaa group radius [email protected] password2 new-code
    User successfully authenticated
    Sep  3 01:57:59.682: AAA/AUTHEN/LOGIN (00000000): Pick method list 'default'
    Sep  3 01:57:59.682: RADIUS/ENCODE(00000000):Orig. component type = INVALID
    Sep  3 01:57:59.682: RADIUS/ENCODE(00000000): dropping service type, "radius-server attribute 6 on-for-login-auth" is off
    Sep  3 01:57:59.682: RADIUS(00000000): Config NAS IP: x.x.x.x
    Sep  3 01:57:59.682: RADIUS(00000000): sending
    Sep  3 01:57:59.682: RADIUS(00000000): Send Access-Request to x.x.x.x:1812 id 1645/49, len 65
    Sep  3 01:57:59.682: RADIUS:  authenticator 7E 70 CF 47 95 E5 89 1A - C3 10 3E 3E 18 9F 3B D2
    Sep  3 01:57:59.682: RADIUS:  User-Password       [2]   18  *
    Sep  3 01:57:59.682: RADIUS:  User-Name           [1]   21  "[email protected]"
    Sep  3 01:57:59.682: RADIUS:  NAS-IP-Address      [4]   6   y.y.y.y              
    Sep  3 01:57:59.710: RADIUS: Received from id 1645/49 x.x.x.x:1812, Access-Accept, len 68
    Sep  3 01:57:59.710: RADIUS:  authenticator AF CA 04 C3 A0 89 A5 69 - B7 33 6D A4 7E 56 B5 D9
    Sep  3 01:57:59.710: RADIUS:  Service-Type        [6]   6  
    Tor1-LNS1#Framed                    [2]
    Sep  3 01:57:59.710: RADIUS:  Idle-Timeout        [28]  6   86400                    
    Sep  3 01:57:59.710: RADIUS:  Framed-IP-Address   [8]   6   y.y.y.y.20             
    Sep  3 01:57:59.710: RADIUS:  Framed-IP-Netmask   [9]   6   255.255.255.255          
    Sep  3 01:57:59.710: RADIUS:  Framed-MTU          [12]  6   1500                     
    Sep  3 01:57:59.710: RADIUS:  Message-Authenticato[80]  18 
    Sep  3 01:57:59.710: RADIUS:   81 C4 3A 66 96 11 D3 E6 CF AD AF D2 A5 84 08 CA  [??:f????????????]
    Sep  3 01:57:59.710: RADIUS(00000000): Received from id 1645/49

  • Setting the JMS Header from Payload

    Hi Experts,
    My requirement is to send the payment data coming from ECC to non sap system.Sender adapter is proxy and receiver is JMS.ECC will be sending the filename in one field and payload content as a string in another field.PI has to set the filename coming from ECC in JMS header property.What configuration changes should i need to make in JMS adapter to achieve it?
    Converting the XML to string is possible in PI.But my question is converting the string XML data into XML fields is possible in SAP PI?If so how to do that?
    Please provide your suggestion.
    Regards,
    Karthiga

    Hi Karthiga,
    The UDF is there in blog
    DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");
                DynamicConfigurationKey dynamicconfigurationkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/JMS", "DCJMSMessageProperty0");
                String s = dynamicconfiguration.get(dynamicconfigurationkey);
                CorrID.append(s);
    Please let me know if you have any issue.
    regards,
    Harish

  • How to set up all requests from users should go through a specific module

    I want to set up all request from users go throuth a module.
    for example, when user request a page the request go through log module to write it.
    so please tell me the setting if it's possible, or should i make it with nsapi?

    I want to set up all request from users go throuth a module.
    for example, when user request a page the request go through log module to write it.
    so please tell me the setting if it's possible, or should i make it with nsapi?

  • Can I set a default Reply-From email address on my iPad/iPhone?

    In Mail for the Mac, there is an option under the Compose settings to set a default Reply-From email address for all your emails, so that, regardless of which account any email came from, you will always reply by default from one specific address. Is there a way to set a default Reply-From address on the iPad/iPhone?

    [EDIT: Sorry, mis-read question. Ignore me.]

  • HT4623 I have an ipad 2 on ops 4.3 and have just updated to 7.1 via itunes. I backed up first and have synced repeatedly but keep getting a message on my ipdad screen that the ipad is not set up - I chose the set up option restore from itunes back up

    I have an ipad 2 on ops 4.3 and have just updated to 7.1 via itunes. I backed up first and have synced repeatedly but keep getting a message on my ipdad screen that the ipad is not set up - I chose the set up option restore from itunes back up

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • I just purchased the airport Express to use in hotels while traveling to create a wireless network from the hotels wired dsl.  A friend said to set up the network from home prior to traveling.  How do I set this up?  Thanks.

    I just purchased the airport Express to use in hotels while traveling to create a wireless network from the hotels wired dsl.  A friend said to set up the network from home prior to traveling.  How do I set this up?  Thanks.

    In addition to RyanJC's comments, the 802.11n AirPort Express Base Station (AXn) can store up to five different http://docs.info.apple.com/article.html?artnum=108081 configuration profiles. You will need to use the AirPort Utility to create & save these profiles.
    To create a new profile:
    Open AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    Click "+" to create a new profile; give it a name, and then, click OK.
    Set options, such as network name, passwords, Internet connection method, etc.
    When done setting the options, click Update.
    To switch profiles:
    Open the AirPort Utility, select your AX from the list, and then, click "Manual Setup."
    From the AirPort Utility menu, select "Base Station," and then "Manage Profiles."
    Click on the desired profile, and then, click OK to apply the new profile and restart the AX.
    Just remember to switch to the desired configuration profile before removing power from the AX.

  • I set up Firefox sync from my old computer. This has had its hard drive replaced and been sold. I now want to retrieve the information and got my bookmarks on my new computer. I can't see any way to do this!

    I set up Firefox sync from my old computer. This has had its hard drive replaced and been sold. I now want to retrieve the information and get my bookmarks on my new computer. I can't see any way to do this!
    Help please

    To build on the second option provided by The Edmeister make sure that you have your Sync Key, if this is not the case Firefox Sync will not help you (data is encrypted with that Key).
    Finally, if the last sync happened long time ago, it may be the case that your data is not on the servers anymore. Firefox Syn wasn't designed as a back up service.

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • How to set an Application Item from PL/SQL

    I am attempting to set an Application Item
    After login to my app, I want to retrieve a row from my SETTINGS table and populate some Application Items with the settings information so that I can
    display some of that settings information on every page.
    Just to start, I created one Application Item named F106_YEAR
    I then created a Shared Components Application Process which executes on New Session: After Authentication
    I created this process as an Anynomous PL/SQL block.
    declare
    aucyr varchar(4);
    begin
    select year into auctyr
    from settings;
    :F106_YEAR := aucyr;
    end;
    I've tried a couple of other Syntax tricks attempting to reference the Application Item F106_YEAR from within PL/SQL (like V('F106_YEAR') but nothing seems to be working.
    I'm sure that I am missing something simple. Can someone tell me how to set an Application Item from PL/SQL?
    Thanks in advance.

    I'm still doing something wrong because this is not working for me.
    I've tried both of the following versions as an Application Process set to run on New Session after Authentication:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    :F106_AUCTION_YEAR:=auction_year;
    end;
    and I also tried:
    declare
    auction_year varchar(4);
    begin
    select year into auction_year
    from PBUUC.SETTINGS where rownum < 2;
    APEX_UTIL.SET_SESSION_STATE (p_name, p_value);
    end;
    F106_YEAR is a global Item (shared components).
    The select statement works just fine in SQL*PLUS so I know that it is correct.
    If I run the debugger and log into the application, here is the output. Shouldn't I see my Application Process get called if it is set to run on New Session after Validation?
    My Application process is named RETRIEVE_AUCTION_SETTINGS
    0.01: A C C E P T: Request="P101_PASSWORD"
    0.01: Metadata: Fetch application definition and shortcuts
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Fetch session state from database
    0.02: ...Check session 695371898690095 owner
    0.02: ...Check for session expiration:
    0.02: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.02: Session: Fetch session header information
    0.02: ...Metadata: Fetch page attributes for application 106, page 101
    0.03: ...Validate item page affinity.
    0.03: ...Validate hidden_protected items.
    0.03: ...Check authorization security schemes
    0.03: Session State: Save form items and p_arg_values
    0.03: ...Session State: Save "P101_USERNAME" - saving same value: "jps"
    0.03: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.03: Branch point: BEFORE_COMPUTATION
    0.03: Computation point: AFTER_SUBMIT
    0.03: Tabs: Perform Branching for Tab Requests
    0.03: Branch point: BEFORE_VALIDATION
    0.03: Perform validations:
    0.03: Branch point: BEFORE_PROCESSING
    0.03: Processing point: AFTER_SUBMIT
    0.03: ...Process "Set Username Cookie": PLSQL (AFTER_SUBMIT) begin owa_util.mime_header('text/html', FALSE); owa_cookie.send( name=>'LOGIN_USERNAME_COOKIE', value=>lower(:P101_USERNAME)); exception when others then null; end;
    0.04: ...Process "Login": PLSQL (AFTER_SUBMIT) wwv_flow_custom_auth_std.login( P_UNAME => :P101_USERNAME, P_PASSWORD => :P101_PASSWORD, P_SESSION_ID => v('APP_SESSION'), P_FLOW_PAGE => :APP_ID||':1' );
    0.06: ...Process "Clear Page(s) Cache": CLEAR_CACHE_FOR_PAGES (AFTER_SUBMIT) 101
    0.06: Nulling cache for application "106" page: 101
    0.00:
    0.00: S H O W: application="106" page="1" workspace="" request="" session="695371898690095"
    0.01: alter session set nls_language="AMERICAN"
    0.01: alter session set nls_territory="AMERICA"
    0.01: ...NLS: Set Decimal separator="."
    0.01: ...NLS: Set NLS Group separator=","
    0.01: ...NLS: Set date format="DD-MON-RR"
    0.01: ...Setting session time_zone to -04:00
    0.01: NLS: wwv_flow.g_flow_language_derived_from=0: wwv_flow.g_browser_language=en-us
    0.01: Application 106, Authentication: CUSTOM2, Page Template: 2904114531488186
    0.01: ...Session ID 695371898690095 can be used
    0.01: ...Application session: 695371898690095, user=JPS
    0.01: ...Determine if user "JPS" workspace "1040027630222986" can develop application "106" in workspace "1040027630222986"
    0.01: ...Check for session expiration:
    0.01: Session: Fetch session header information
    0.01: ...Metadata: Fetch page attributes for application 106, page 1
    0.01: Fetch session state from database
    0.02: Branch point: BEFORE_HEADER
    0.02: Fetch application meta data
    0.02: Computation point: BEFORE_HEADER
    0.02: Processing point: BEFORE_HEADER
    0.03: Show page template header
    0.03: Computation point: AFTER_HEADER
    0.03: Processing point: AFTER_HEADER     
    0.04: Computation point: BEFORE_BOX_BODY
    0.04: Processing point: BEFORE_BOX_BODY
    0.04: Region: Auction_Title F106_AUCTION_YEAR

  • Acrobat 9.0 Standard. Setting PDF file password from Excel VBA

    Acrobat 9.0 Standard. Setting PDF file password from Excel VBA
    Hi: I am trying to find a call to set the password of a PDF file that I am creating from Excel Workbook using a VBA call.
    I basically have this Excel VBA code that works fine and creates a file.
                pBook.PrintOut Copies:=1, preview:=False, ActivePrinter:="Adobe PDF", _
                               PrintToFile:=True, collate:=True, PrToFileName:=PSFileName
                ' Convert the postscript file to .pdf
                Dim myPDF As PdfDistiller
                Set myPDF = New PdfDistiller     
                myPDF.FileToPDF PSFileName, "", ""
    BUT, I need to set the password on this PDF file and do not see an option to do so.
    Can you provide a solution for this situation? Appreciate your response in advance.
    Thanks.

    There is no way to set password programmatically using any other dll or any other kit?
    I am creating a bunch of PDF files for users programmatically but then they have to go in and set password themselves? This is very inconvenient for users.

  • Cookie set on the request from flex disappers

    All,
    I need to set cookie for calls from flex. So on the server side I set the cookie and send the response back to flex. I used tools like tamperdata and debugbar to monitor the request calls and I found that the cookie i set is available + a
    JSessionID cookie is also available in the response headers "
    Set-Cookie".Since cookie is set on the response headers, it is expected to be available in all the next successive calls.
    But on my next successive call I see only the the Jsession id for all the calls. And in some call i see the cookie I set. 
    I use caringorm framework. So far I have analysed and found that if the call goes from same delegate I see my cookie, but if its from different delegate then i don't see the cookie in the request. I tried using same delegate for all my commands by creating objects of the same delegate but still it didn't work. 
    I feel creazy when i thing why only JseesionId is available in the cookie and not the one which i set in the calls irrespective of the delegate. I am not sure where i am going wrong. Even when i try to do document.cookie in the external interface call or in the URL using Javascript alert I only see a empty string not ven the Jsession id in the document.cookie. some thing is really creazy. 
    Sicne result event does not have the option of cookie, is flex eating the cookie set on the response. Then why on Jsessionid is available? I have also seen that in HTTPServiceMessage has an option of recordHeaders. Is my isseu is related to this. If so please let me know an example to use this. I am going insane with this issue. Please help!!

    It's probably not the same delegate you need to hit, but exactly the same HTTPService.
    This is a bit I've gleaned from encountering similar issues, so it might not be exactly right!
    The Flash Player attaches the cookie info into the Channel that is used to make the call. If you want the same cookie, you need to use the same Channel.
    The jsessionid you are seeing is the way the same session is indicated to back end resources, so if two Flash apps hit the same service it knows they are different.
    The way I'm currently playing with, is to keep the ChannelSet around and inject it into Services as I need them, that's covering most of my problems!

  • Setting primary key fields from sequence. Please advise

    What is the most logical place to automatically set primary key fields from
    sequence?
    jdoPrestore seems to be a little late - my instance will not have id till
    it's committed. I can not do it in constructor because it gets called every
    time Kodo needs to construct an instance. What other options do I have for
    automatic pk assignment except do it in my code (hate it)?
    I wish I could use store managed OIDs but I need access to OID underlying
    data
    Please also see my previous message "Application Identity Extention"

    I came up with following pattern:
    public class OrgUnit implements InstanceCallbacks {
    private long orgUnitId = -1;
    private transient long tempOrgUnitId = -1;
    public long getOrgUnitId() {
    if (orgUnitId < 0) {
    if (tempOrgUnitId < 0) {
    tempOrgUnitId = JDOFactory.getNextSequenceId(getClass());
    return tempOrgUnitId;
    } else {
    return orgUnitId;
    public void jdoPreStore() {
    if (!JDOHelper.isDeleted(this)) {
    if (orgUnitId < 0) {
    setOrgUnitId(getOrgUnitId());
    I use -1 as an indicator that ID has not been assigned yet. If you use Long
    instead of long it will be cleaner since we can test for null
    "Alex Roytman" <[email protected]> wrote in message
    news:9q27co$r35$[email protected]..
    What is the most logical place to automatically set primary key fieldsfrom
    sequence?
    jdoPrestore seems to be a little late - my instance will not have id till
    it's committed. I can not do it in constructor because it gets calledevery
    time Kodo needs to construct an instance. What other options do I have for
    automatic pk assignment except do it in my code (hate it)?
    I wish I could use store managed OIDs but I need access to OID underlying
    data
    Please also see my previous message "Application Identity Extention"

Maybe you are looking for

  • IPhone Genius bar...

    when i go online to reserve a time the earliest i can get is for tomorrow. if i go to the apple store today i can just sign in and be seen today correct? i was doing so well with my 3G service. i would have it most of the day. occasionally it would g

  • IN OPERATOR IN AND CLASS

    Hi all, Please assist me to write the correct query with in operator and mtl_trn_type.transaction_type_name IN (select case when mtl_trn.organization_id=114 then ( select 'ABC','DEF' FROM DUAL )else 'DEF' end from dual) It show me error too many valu

  • Mac Pro files to new iMac via my Time Capsule

    I've read a lot of post, but still am scared... In a nutshell I got my new iMac quad core. I have my intel Mac Pro and Macbook Pro both hooked up to my time capsule for internet and back-up. What are the safest/best steps for transfering my files fro

  • Safari 5.1 update Snow Leopard Java no longer works

    I've been doing quite a bit of reading regarding how the Lion update changed the rules of how Java works (or doesnt work) for the new Safari 5.1 browser.  I also had quite a time with existing plugins after my SN 10.6.8 was updated with the new safar

  • Setting for Nokia 202

    how to set GPRS for Nokia 202 daul sim and it's internet connection.