You are using a registered policy.  I recommend you look at my blog AMGH
How-To: http:blogs.sun.som/bobd

In a registered policy configuration, we recommend that you use "insert_token"
rather than "token".  I would look at adapting one of the reference scripts
to take care of this, or modifying the libutamghref_token source to handle
insert_token. These are reference scripts/libs, not designed for production use,
but merely as examples.

-Bob

Lars Tunkrans wrote:
Hi ,

I appearantly need to understand how AMGH libraries work better than I do now.

I have done   the following operations  to try to set it up  .


utinstall

utadm -A 192.168.1.0

utconfig /opt/SUNWut/sbin/utamghadm -l /opt/SUNWutref/amgh/libutamghref_token.so

created  /opt/SUNWutref/amgh/back_end_db   with single entry

token=MicroPayflex.5002a89300130100 host=192.168.1.40


However dtlogin reports that it can find any matching hosts when I put the "MicroPayflex.5002a89300130100" smartcard in the reader:

What is missing in my setup ?
this a truss  of the  dtlogin process:


*16014: open("/opt/SUNWutref/amgh/libutamghref_token.so", O_RDONLY) = 12*
16206:  llseek(6, 0xFFFFFFFFFFFFF80B, SEEK_CUR)         = 5074
16206:  close(6)                                        = 0
16014: mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 12, 0) = 0xFE470000 16206: open("/usr/openwin/lib/locale/sv_SE.UTF-8/conv_tables/U32_TO_CS_16", O_RDONLY) = 6 16014: mmap(0x00010000, 73728, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFDB00000
16206:  fstat64(6, 0x080457E0)                          = 0
16206: d=0x01980040 i=180778 m=0100644 l=1 u=0 g=2 sz=196612
16206:          at = Feb 10 16:55:45 CET 2008  [ 1202658945 ]
16206:          mt = Nov 24 19:28:34 CET 2004  [ 1101320914 ]
16206:          ct = Dec  1 15:23:39 CET 2007  [ 1196519019 ]
16206:      bsz=8192  blks=416   fs=ufs
16014: mmap(0xFDB00000, 4248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 12, 0) = 0xFDB00000
16206:  read(6, "02\0\003", 4)                          = 4
16014: mmap(0xFDB11000, 304, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 12, 4096) = 0xFDB11000
16206:  brk(0x08193C90)                                 = 0
16014:  munmap(0xFDB02000, 61440)                       = 0
16206:  brk(0x081C1C90)                                 = 0
16206: mmap(0x00000000, 196612, PROT_READ, MAP_SHARED, 6, 0) = 0xFE16E000
16014:  memcntl(0xFDB00000, 2268, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
16014:  close(12)                                       = 0
16014:  xstat(2, "/lib/libX11.so.4", 0x08045AF0)        Err#2 ENOENT
16014:  xstat(2, "/usr/lib/libX11.so.4", 0x08045AF0)    = 0
16014: d=0x01980040 i=8569 m=0100755 l=1 u=0 g=2 sz=1325504
16014:          at = Feb 10 16:56:18 CET 2008  [ 1202658978 ]
16014:          mt = Jun 27 19:28:22 CEST 2007  [ 1182965302 ]
16014:          ct = Dec  1 14:50:03 CET 2007  [ 1196517003 ]
16014:      bsz=8192  blks=2608  fs=ufs
16014: resolvepath("/usr/lib/libX11.so.4", "/usr/openwin/lib/libX11.so.4", 1023) = 28
16014:  mprotect(0xFDB00000, 4248, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
16014:  mprotect(0xFDB00000, 4248, PROT_READ|PROT_EXEC) = 0
16014:  munmap(0xFE470000, 4096)                        = 0
*16014:  access("/opt/SUNWutref/amgh/back_end_db", R_OK) = 0
16014:  open("/opt/SUNWutref/amgh/back_end_db", O_RDONLY) = 12*
16014:  fstat64(12, 0x08045100)                         = 0
16014:      d=0x01980044 i=37464 m=0100644 l=1  u=0     g=0     sz=54
16014:          at = Feb 10 16:55:45 CET 2008  [ 1202658945 ]
16014:          mt = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:          ct = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:      bsz=8192  blks=2     fs=ufs
16206:  munmap(0xFE16E004, 196612)                      Err#22 EINVAL
16014:  fstat64(12, 0x08045230)                         = 0
16014:      d=0x01980044 i=37464 m=0100644 l=1  u=0     g=0     sz=54
:16014:          at = Feb 10 16:55:45 CET 2008  [ 1202658945 ]
16014:          mt = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:          ct = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:      bsz=8192  blks=2     fs=ufs
16206:  close(6)                                        = 0
16014:  fstat64(12, 0x08045170)                         = 0
16014:      d=0x01980044 i=37464 m=0100644 l=1  u=0     g=0     sz=54
16014:          at = Feb 10 16:55:45 CET 2008  [ 1202658945 ]
16014:          mt = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:          ct = Feb 10 16:16:14 CET 2008  [ 1202656574 ]
16014:      bsz=8192  blks=2     fs=ufs
16014:  ioctl(12, TCGETA, 0x08045204)                   Err#25 ENOTTY
16206: access("/usr/lib/iconv/geniconvtbl/binarytables/UTF-8%UTF-32.bt", R_OK) Err#2 ENOENT
*16014:  read(12, 0x080A5C2C, 8192)                      = 54
16014: t o k e n = M i c r o P a y f l e x . 5 0 0 2 a 8 9 3 0 0 1 3 0
16014:     1 0 0   h o s t = 1 9 2 . 1 6 8 . 1 . 4 0\n*
16206:  access("/usr/lib/iconv/UTF-8%UTF-32.so", R_OK)  = 0
16014:  read(12, 0x080A5C2C, 8192)                      = 0
16014:  llseek(12, 0, SEEK_CUR)                         = 54
16014:  close(12)                                       = 0
16206:  xstat(2, "/usr/lib/iconv/UTF-8%UTF-32.so", 0x080455C8) = 0
16206:      d=0x01980040 i=5724  m=0100555 l=1  u=0     g=2     sz=5076
16206:          at = Feb 10 16:55:45 CET 2008  [ 1202658945 ]
16206:          mt = Jan 23 04:16:23 CET 2005  [ 1106450183 ]
16206:          ct = Dec  1 15:06:13 CET 2007  [ 1196517973 ]
16206:      bsz=8192  blks=10    fs=ufs
16206: resolvepath("/usr/lib/iconv/UTF-8%UTF-32.so", "/usr/lib/iconv/UTF-8%UTF-32.so", 1023) = 30
16014:  munmap(0xFDB00000, 4248)                        = 0
16206:  open("/usr/lib/iconv/UTF-8%UTF-32.so", O_RDONLY) = 6
16014:  munmap(0xFDB11000, 304)                         = 0
16206: mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 6, 0) = 0xFE460000
16014:  fxstat(2, 9, 0x08044928)                        = 0
16014: d=0x04480000 i=30466 m=0020000 l=0 u=0 g=0 rdev=0x005400C9
16014:          at = Feb 10 16:56:18 CET 2008  [ 1202658978 ]
16014:          mt = Feb 10 16:56:18 CET 2008  [ 1202658978 ]
16014:          ct = Feb 10 16:56:18 CET 2008  [ 1202658978 ]
16014:      bsz=8192  blks=0     fs=BADVFS
16206: mmap(0x00010000, 69632, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFE150000
16014:  time()                                          = 1202658978
16206: mmap(0xFE150000, 2385, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 6, 0) = 0xFE150000
16014:  getpid()                                        = 16014 [825]
16014:  putmsg(9, 0x080452E8, 0x080452F4, 0)            = 0
16014: ctl: maxlen=24 len=24 buf=0x080449B0: " @\f @ #\0 10\0"..
16014:     @\f @ #\0  10\002\0\0\0\0\0\0\0 u f s\00E\0\0\0
16014: dat: maxlen=1280 len=261 buf=0x080449C8: " F e b 1 0 1".. *16014: F e b 1 0 1 6 : 5 6 : 1 8 d t l o g i n [ 1 6 0 1 4 ] : 16014: [ I D 1 1 8 6 8 5 F A C I L I T Y _ A N D _ P R I O R I T Y 16014: ] p a m _ s u n r a y _ a m g h : : [ D P Y = 3 ] A M G H _ 16014: S U M M A R Y : t o k e n = u s e r . 1 2 0 2 6 5 6 4 1 9 - 7 16014: 0 5 3 , u s e r n a m e = , A M G H _ D o n e ? = N O ( L o 16014: c a l S e s s i o n ) , D e t a i l s = A M G H l o o k u 16014: p l i b r a r y d i d n o t p r o v i d e a n y t a 16014: r g e t A M G H h o s t s , A M G H _ T a r g e t = * N O
16014:     N E *\n\0*





------------------------------------------------------------------------

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to